Tagged: php 7.4
Hello,
I am currently running WordPress 5.8.1 and Enfold 4.8.6.5
When I enable PHP 7.4 on my VPS my site throws the following errors. How can I resolve the error related to Enfold.
Errors I am receiving with debug mode turned on
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 32768 bytes) in /home/mysite/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-html-helper.php on line 1701
Any help much appreciated,
Thanks,
John O Connor
Hey John,
Thanks for contacting us!
Please contact your hosting provider and ask them to increase PHP memory limit to 256M and that should help :)
Regards,
Yigit
Hello again,
I have resolved the issue by doing the following.
I increased the memory limit in wp-includes/default-constants.php
done a find for
define( ‘WP_MEMORY_LIMIT’, ’40M’ );
and replaced with
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
Hope this helps anyone who sees “Allowed memory size bytes exhausted issues when enabling php 7.4
Thanks,
John O Connor.