PHP allowed memory size exhausted

InteractM

Well-Known Member
Apr 2, 2013
135
1
18
cPanel Access Level
Root Administrator
I have set PHP memory_limit to 512M and one of hosted sites (Wordpress) suddenly started causing 500 internal server error on

Code:
PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /public_html/wp-includes/compat.php on line 123
Any idea what can be wrong?
 

amdbuilder

Member
PartnerNOC
Feb 5, 2013
14
1
3
Durham, NC
cPanel Access Level
DataCenter Provider
Twitter
There is a good chance you have a programming error on the site, causing the increased memory usage. Regardless of how much you increase the limit you will continue having the problem.

You might try disabling any recent plugins, to see if that resolves the problem.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

You can also check to see if any third-party plugins are installed on that WordPress installation. It's possible a plugin could result in excessive memory usage.

Thank you.