Tagged: deprecated, php
-
AuthorPosts
-
January 7, 2020 at 5:54 pm #1171107
Guten Tag zusammen,
Wir laufen auf unserem NGINX-Server seit ein paar Wochen auf PHP 7.4.1. Wir haben Enfold sehr häufig bei Kunden von uns installiert, aber zwei Seiten machen Probleme. Folgende Fehlermeldung habe bekomme ich auch nicht deaktiviert. Sie wird immer angezeigt.
Es scheint Probleme bei Enfold irgendwo zu geben? Habt ihr eine Idee?
Vielen Dank.Deprecated: Unparenthesized
a ? b : c ? d : e
is deprecated. Use either(a ? b : c) ? d : e
ora ? b : (c ? d : e)
in /srv/http/DOMAIN.de/wp-content/themes/enfold/functions-enfold.php on line 332 Warning: Cannot modify header information – headers already sent by (output started at /srv/http/DOMAIN.de/wp-content/themes/enfold/functions-enfold.php:332) in /srv/http/DOMAIN.de/wp-content/themes/enfold/includes/helper-privacy.php on line 264January 8, 2020 at 2:29 am #1171300Hey Julian,
Thank you for the inquiry.
Try to edit the functions-enfold.php file and look for this code around line 332:
$post_type = $image ? "" : get_post_format($post->ID) != "" ? get_post_format($post->ID) : "standard";
Replace it with:
$post_type = $image ? "" : ( get_post_format($post->ID) != "" ? get_post_format($post->ID) : "standard" );
Best regards,
IsmaelJanuary 8, 2020 at 11:00 am #1171381don’t know if it happens only caused by enfold. https://wordpress.org/support/topic/php-7-4-support-deprecated-unparenthesized/
Some plugins will cause this too.January 8, 2020 at 4:38 pm #1171511Hi,
Thanks for reporting this. Probems caused by Enfold will be fixed in next release – but there are also warnings caused by other plugins like e.g. layerslider.
Best regards,
GünterNovember 30, 2023 at 10:28 am #1426779I have the same problem on an old site where the php version has been updated
Versione di WordPress 5.6.2
Tema corrente: Enfold (versione 4.4.1)
Versione PHP 8.2.11Dettagli dell’errore
====================
Un errore di E_COMPILE_ERROR è stato causato nella linea 313 del file /home/priula/public_html/wp-content/themes/enfold/functions-enfold.php. Messaggio di errore: Unparenthesizeda ? b : c ? d : e
is not supported. Use either(a ? b : c) ? d : e
ora ? b : (c ? d : e)
The problem is that I cannot login and therefore update the versions of wordpress and enfold in any way!
I tried uploading enfold via ftp, but it still won’t let me log in.Can you help me? Thanks
November 30, 2023 at 11:57 am #1426786Hey @seremot,
It looks like you’re using Enfold 4.4.1. Updating Enfold to 5.6.8 should fix the issue: https://kriesi.at/documentation/enfold/theme-update/.
Regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.