Problem with new While action

Great - that’s fixed it.

I had forgotten I had set WAMP to use PHP 5.6 when working on old site. I changed it to 7.2 and the problem is fixed. On the server I had created a subdomain for temporary use and it was using the default PHP 5.6 too. I’ve changed it to 7.2 and it’s all working fine now.