Hi everyone,
I bought the enfold theme years ago and it worked very well for all these years. Now I got a message from my hoster that I had to update to php version 8.0 (I’m on 7.4) and so I’ve done that. Now I got another mail that said that I’m still using 7.4 despite having it turned to 8.0 in the settings of the hoster. Now I found that in the .htaccess file there is this entry:
AddType application/x-httpd-php74 .php
I’ve then set it to AddType application/x-httpd-php8 .php which gave me errors. I’ve removed the entry but still get a critical error. I’ve debugged with wordpress and debug.log gave me following errors:
PHP 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 /mnt/web005/b0/99/58640899/htdocs/WordPress_SecureMode_01/wp-content/themes/enfold/functions-enfold.php on line 313
I’m on enfold version 4.4
Can somebody help me please? :(
Hey carlo2007,
Could you try to update to the latest version (5.6.2) to see if that helps please? The update to 5.6.2 has to be done manually from the version you are running, please refer to my replies in this thread: https://kriesi.at/support/topic/enfold-4-5-theme-update-update-failed-download-failed-a-valid-url-was-not-pro/#post-1021541
You can either update manually via FTP: https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update, or use a plugin to upload the theme zip file: https://wordpress.org/plugins/update-theme-and-plugins-from-zip-file/
If that doesn’t work then please try to delete the whole theme folder, then replace it with the new version. Make sure that you have backups of the site before starting updating.
Also please read this after you have updated: https://kriesi.at/documentation/enfold/theme-registration/
Best regards,
Rikard