Fatal PHP Error - Visual Composer

Hello,

I recently updated PHP on my server’s WHM backend, and my websites running x functioned ok for a day. They started having fatal errors that prevent me from even accessing domain.com/wp-admin.

Downloading my log file, I see three common repeated errors:
13-Jun-2019 15:00:58 UTC] PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 32768 bytes) in /home/DOMAIN_PLACEHOLDER/public_html/wp-content/themes/x/framework/functions/plugins/visual-composer.php on line 2991
[13-Jun-2019 15:10:37 UTC] PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 65536 bytes) in /home/DOMAIN_PLACEHOLDER/public_html/wp-content/themes/x/framework/functions/portfolio.php on line 400
[13-Jun-2019 15:10:37 UTC] PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 65536 bytes) in /home/DOMAIN_PLACEHOLDER/public_html/wp-includes/class-wp-hook.php on line 286
[13-Jun-2019 15:11:38 UTC] PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 32768 bytes) in /home/DOMAIN_PLACEHOLDER/public_html/wp-content/themes/x/framework/functions/plugins/visual-composer.php on line

Please note that “DOMAIN_PLACEHOLDER” is text I pasted in, to not publicly share the domain with issue.

What is my next course of action? Based on searching for forums, I’m guessing to go to backend file manager and to manually replace the theme with an updated version. I don’t want to start making those changes until I’m sure.

Also not sure if I still have support coverage, but if I don’t, I’d be willing to pay for support to get this resolved. Thank you for your time!

Hello Andrew,

Thanks for writing in!

The error indicates that you have exhausted your PHP memory limit. To resolve this, ​we recommend that you increase your memory allocated to PHP. To increase it, please edit your wp-config.php file and insert these lines:

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

You can add it before the line
/*That's all, stop editing! Happy Blogging. */

We would love to know if this has worked for you. Thank you.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.