Tagged: php 8.1
Hi,
I have problems when updating my php version of the server to php 8.1. I already deactivated the plugin and switched to twenty twenty, the update works. If i activate Enfold theme i get a critical error.
Hope you could please help me out!
Hey webzies,
Thank you for the inquiry.
It looks like the critical error is caused by the create_function() in your child theme. This function was deprecated in php 7.2 and completely removed in PHP 8.0, which is why switching to PHP 8.1 triggers a fatal error.
You’ll need to replace any instances of create_function() in your child theme. Since this change is in your child theme and not Enfold core, you’ll need to make those updates yourself. You can search your child theme files for “create_function” to locate all instances.
Let us know if the issue persists after making those changes.
Best regards,
Ismael
