-
AuthorPosts
-
August 22, 2023 at 9:04 pm #1416884
Dear Enfold support team,
I hope this message finds you well. I am reaching out regarding an issue I’ve encountered with the Enfold theme on our website, https://csrf-southsudan.org/.
Upon upgrading our PHP version to 8.x, our website started displaying the following error: Fatal error: Unparenthesizeda ? b : c ? d : e
is not supported. Use either(a ? b : c) ? d : e
ora ? b : (c ? d : e)
in /home/httpd/vhosts/swisspeace.ch/csrf-southsudan.org/wp-content/themes/csrf-southsudan/functions-enfold.php on line 332.
Although we tried to address the issue by modifying the aforementioned line in the functions-enfold.php file, the problem persists. When we install and update the theme to its latest version, the site operates without the error, but some of our customized posts appear to be disrupted or data seems to be lost.We understand that this might be related to the changes in the ternary conditional operators from PHP 7.4 to 8.x.
We would greatly appreciate your guidance on how to resolve this issue without losing our theme customizations. We are eager to maintain the integrity and functionality of our site and believe that your expertise will be invaluable in this process.
Thank you for your time and assistance. We look forward to your response.
Warm regards,
Tuncay CicekAugust 23, 2023 at 12:09 am #1416892Hey tuncaycicek,
I believe this is the same as this issue which was corrected in an update, please ensure that you are using v5.6.5
Also please note Guenni007’s comment in the thread that a plugin may also cause this, so after updating try disabling your plugins and check.
Also note that if you are using a child theme footer.php & header.php and these do not match the current footer.php & header.php, this will cause errors in your theme. We do not recommend adding these files to your child theme, it is the most common reason for errors when updating. Please remove these files and any customizations you wish to make should be done in your child theme functions.phpBest regards,
MikeAugust 24, 2023 at 2:34 am #1417008Dear Enfold support team,
I hope you’re doing well. I recently reached out regarding a “Fatal error” issue after upgrading our PHP version. We are now encountering another problem and would very much appreciate your guidance once again.
We are currently working on a temporary domain https://csrf-southsudan-project.ch/ for development and testing purposes. The site is showing the following warning:
Warning: Trying to access array offset on value of type bool in /home/httpd/vhosts/csrf-southsudan-project.ch/httpdocs/wp-content/themes/csrf-southsudan/config-templatebuilder/avia-template-builder/php/asset-manager.class.php on line 834
Warning: Trying to access array offset on value of type null in /home/httpd/vhosts/csrf-southsudan-project.ch/httpdocs/wp-content/themes/csrf-southsudan/config-templatebuilder/avia-template-builder/php/asset-manager.class.php on line 834
This warning appears to be related to array offset access on variables of type bool and null. We have tried to identify the issue ourselves but haven’t had much success so far.Given that these issues have occurred after upgrading PHP and are related to the Enfold theme, we would be grateful for any assistance you could provide in resolving them. We are keen on maintaining our website’s performance and usability while ensuring that our theme customizations remain intact.
Thank you for your time and help. We look forward to your prompt response.
Warm regards,
Tuncay CicekAugust 24, 2023 at 8:33 am #1417028Hi,
Thanks for the update. Could you try updating the theme to the latest version (5.6.5) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update.
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.