WebSite X5Help Center

 
Anders W.
Anders W.
User

Difference php 7 vs php 8  en

Author: Anders W.
Visited 1451, Followers 1, Shared 0  

I using XAMMP to run apache on my server home, when i used early version of XAMMP that has php 7 there was no problem.

Now i installed the new version of XAMMP wich has php 8 in apache.

This error came up when i filled in in a contactform and click send.

Maybe they change the syntax in php8, any solutions to this would be very nice

Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in C:\xampp\htdocs\_domaner\wickes_se\res\x5engine.php on line 5720

Posted on the
2 ANSWERS - 1 CORRECT
Aleksej H.
Aleksej H.
Moderator

Hello.As far as I know, WebSite X5 is not yet PHP 8 compatible. Use PHP 7.

"Maybe they change the syntax in php8, any solutions to this would be very nice" - I think this can be expected in new versions of the program (but I don't know when).

Read more
Posted on the from Aleksej H.
Anders W.
Anders W.
User
Author

Hello Thanks for your answer, yes i have gone back to php 7, it works fine :)

Read more
Posted on the from Anders W.