WebSite X5Help Center

 
Donald M.
Donald M.
User

Response form returning parse error  en

Author: Donald M.
Visited 738, Followers 1, Shared 0  

I have a site with a response form which has started showing the following error when the user tries to use  it to send a message:

Parse error: syntax error, unexpected ':', expecting ';' or '{' in /freeola/users/3/7/sr2621473/htdocs/res/x5engine.php on line 5475

My ISP is set to PHP 7.4. It was changed up to this fairly recently after a previous issue and this new issue may have happened at around the same time but I can't be sure, however ----

---- I note that in a previous question it was stated that the problem must lie with the ISP, however I have three other sites with the same ISP, also containing response forms, and they are still working normally.

The website is www.furniturerenewservice.co.uk 

I have attached a copy of the X5engine.php file referred to above.

Posted on the
2 ANSWERS - 1 CORRECT
Franz-Josef H.
Franz-Josef H.
Moderator

Check out if it works when you go back to php 7.3 or change up to php 8.0.

Read more
Posted on the from Franz-Josef H.
Donald M.
Donald M.
User
Author

As it turns out, my ISP had given me incorrect information-they were actually on PHP 7.3. A switch to PHP 7.4 solved the problem.

Doesn't explain why the form worked for a couple of years and then suddenly stopped working,

Read more
Posted on the from Donald M.