Wordpress: wp_update_post returns Error "Allowed memory size exhausted"

Asked
Active3 hr before
Viewed126 times

3 Answers

errorwordpressreturns
90%

I am not sure of the exact reason but you can try to unset $xml variable once the loaded file has been processed, similarly try removing large variables( file_get_contents returns ) when no longer in use. This could lower the memory requirement for each for loop. , Building equilateral triangles by reflecting tokens , I have added a generalized code now. I cutted out extensive variable declarations. You can search for "wp_update_post" to find the line with the memory problem. – Matthias Apr 23 '14 at 9:45 ,Find centralized, trusted content and collaborate around the technologies you use most.

I am not sure of the exact reason but you can try to unset $xml variable once the loaded file has been processed, similarly try removing large variables( file_get_contents returns ) when no longer in use. This could lower the memory requirement for each for loop.

$xml
load more v
88%

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 35 bytes) in /home/content/22/11685822/html/wp-includes/taxonomy.php on line 2790,So I would sugegst to try to figure out the problem instead of increase the memory size.,First open your wp-config.php which is located in the root WordPress directory. Then add the following line inside the main php tag:,I have installed wordpress on my client's server . The website has 10,0000 posts . When I had less number of posts, there was no issue but now is throws this error

First open your wp-config.php which is located in the root WordPress directory. Then add the following line inside the main php tag:

define('WP_MEMORY_LIMIT', '64M');
72%

Updating beyond WordPress 4.2.1 yields “allowed memory size exhausted”,PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 65488 bytes) in C:\Inetpub\vhosts\butterflyvista.com\subdomains\pastrychefblog\wp-admin\includes\file.php on line 159,Note: default values are 128M and 256M. I also updated the memory_limit for PHP to 512M, up from 128M., advanced-custom-fields

Yes, I did an edit of the wp-config.php file and set

/** Memory Limit: Increase to avoid update errors. */
define('WP_MEMORY_LIMIT', '512M');
define('WP_MAX_MEMORY_LIMIT', '512M');
load more v

Other "error-wordpress" queries related to "Wordpress: wp_update_post returns Error "Allowed memory size exhausted""