TEMA:

Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either... 1 año 7 meses antes #260724

  • Autor del tema
  • Hendrik Nell
  • Fuera de línea
  • Navegador Iniciado
  • Navegador Iniciado
  • Registered
  • Mensajes: 2
  • Gracias recibidas: 0
Good day,

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.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either... 1 año 7 meses antes #260725

  • Avatar de Mirec
  • Mirec
  • Fuera de línea
  • Navegador Platino
  • Navegador Platino
  • Registered
  • Mensajes: 3262
  • Gracias recibidas: 161
Hi,

could you please install PHP 7.4 and then test it again?

Let me know result! :)
Regards,
Mirko

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by Mirec.

Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either... 1 año 7 meses antes #260729

  • Autor del tema
  • Hendrik Nell
  • Fuera de línea
  • Navegador Iniciado
  • Navegador Iniciado
  • Registered
  • Mensajes: 2
  • Gracias recibidas: 0
Hi Mirko,

Thank you for your reply!

In order to solve the issue I had to uninstall the latest version of XAMPP and revert to the previous version that included the PHP 7.4 version.

This has resolved my issue.

Thank you again for your assistance. Greatly appreciated.

Regards,

Hendrik

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either... 1 año 7 meses antes #260731

  • Avatar de Mirec
  • Mirec
  • Fuera de línea
  • Navegador Platino
  • Navegador Platino
  • Registered
  • Mensajes: 3262
  • Gracias recibidas: 161
Hi,

I'm glad I can help you! :)
If you need more help, feel free to ask!

Regards,
Mirko

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either... 11 meses 3 semanas antes #269401

  • Beda123
  • Fuera de línea
  • Navegador Iniciado
  • Navegador Iniciado
  • Registered
  • Mensajes: 5
  • Gracias recibidas: 0
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.

In administrator\components\com_contentbuilder\views\form\tmpl\form.php
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.

Archivo adjunto no encontrado

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either... 11 meses 3 semanas antes #269404

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderador
  • Moderador
  • Registered
  • Mensajes: 12079
  • Gracias recibidas: 778
Hi,

could you please send me login information, backend link and FTP access?

I will fix errors for content builder/breezingforms directly on your page

Use this tag:
[confidential]
[/confidential]

If you can't send this to me then please follow this step:
crosstec.org/en/forums/coding-consultanc...html?start=18#267299

Here is explained how to fix this error in content builder

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by tihana.krivic.
  • Página:
  • 1
  • 2
Moderadores: ForumSupport
Tiempo de carga de la página: 0.068 segundos

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!