• After upgrading to 3.7.1 I’m having a problem that manifests itself only on the back end. It crawls something terrible. Editing posts are sluggish and even assigning text a header tag from the menu takes forever, as does adding tags. I did what I usually do – turn off plugins and try to isolate – but that didn’t do anything. Same thing with a theme change. I then looked in the error log – nothing. Eventually I ended up with the following error:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /home/mysite/public_html/wp-includes/meta.php on line 578

    There is no way that more memory needs to be assigned to PHP and it already has at least 512MB as a limit.

    I looked at line 578 in meta.php and it is the following:

    $cache[$mpid][$mkey][] = $mval;

    Not quite sure what is going on here but hopefully someone can help diagnose what this issue might be.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I focus on the error message. It says that the meta.php line it failed on was only asking for 71 bytes, so that is not your problem. It also says that it failed on hitting a 256MB memory limit.

    I’ve never personally seen a WordPress Admin (backend) fail on a 256MB limit, but obviously yours is. I would start with WP_MAX_MEMORY_LIMIT as explained here: https://codex.www.ads-software.com/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    Thread Starter thelaw

    (@thelaw)

    I just switched servers and may have had it up higher prior. But yes, 256MB should have been more than fine. Very strange – and it happened after the 3.7.1 upgrade. Thanks.

    Thread Starter thelaw

    (@thelaw)

    Odd – it’s still not working. I raised the limit to 512MB in apache for the limit. In wp-config.php I have

    define( ‘WP_MAX_MEMORY_LIMIT’, ‘384M’ );

    What I’m noticing is that the huge issue occurs primarily in one blog, yet it has less content than other blogs. When I just try to change a theme I get a timeout and this error:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 79 bytes) in /home/mysite/public_html/wp-includes/wp-db.php on line 1557

    I also get the following:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /home/mysite/public_html/wp-includes/meta.php on line 575

    This issue has me stumped.

    Thread Starter thelaw

    (@thelaw)

    Turned off all plugins. Reverted to stock theme. Only have global plugins enabled. Other blogs work perfectly. This one, same issue. I can’t even change themes without it timing out:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 64 bytes) in /home/mysite/public_html/wp-includes/meta.php on line 575

    Has anyone else had this problem with one blog that is incredibly slow and appearing to have memory bloat? I optimized and fixed all tables in the database… can’t figure this one out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error meta.php on line 578’ is closed to new replies.