Disclaimer: I have no previous php/html coding knowledge! I'm a complete beginner trying to create a website using the latest version of Joomla and ContentBuilder.
When trying to add a new view on the CB Views tab, I'm redirected to an error page that show the following message: Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` .
I have navigated to the file in question, but I'm at a loss for where to include the parenthesis.
I have the latest version of php installed 8.0.7.
Please let me know if this is a php version issue or if there is a workaround.
When is support for php8 coming?
This error is related to php8 and in php7.4 already throws a warning not be used in that way.
I have just installed this component again on my php8 running local installation and this error was the first one here.
There are other code errors in breezingforms as well that I had to change to get it to work with php8, but I can't remember them all yet again out of my head and I probably haven't stumbled upon all of the errors related to php8 in neither breezingforms nor contentbuilder yet.
So a code update for php8 would be much appreciated.
Most issues should be catchable on php7.4 as well, since they are marked there as deprecated errors, though in 8 some of those deprecations are now classified as fatal errors.
Lines 1192 , 1193, 1332 and 1333 need parentheses, which is what threw this fatal error.
I have added my edited form.php as form.php.txt
This change in php has been done to remove ambiguity in the decision tree so that there is an explicit order of condition execution.