After trying to add new post gives an error: Fatal error: Allowed memory sizeAllowed memory size of 33554432 bytes exhausted (tried to allocate 1600 bytes) in /home/mysite/public_html/wp-includes/media.php on line 253
:(
After trying to add new post gives an error: Fatal error: Allowed memory sizeAllowed memory size of 33554432 bytes exhausted (tried to allocate 1600 bytes) in /home/mysite/public_html/wp-includes/media.php on line 253
:(
You can maximize the memory limit.
Change it manually in /wp-includes/default-constants.php file around line 23.
From:
define('WP_MEMORY_LIMIT', '32M');
Change to:
define('WP_MEMORY_LIMIT', '64M');
That should work.
I got kind of the same error but this happened right after activating the plugin. The whole wp-admin crashed! The above fix worked but I only used it to get back into the wp-admin to disable the plugin and to remove it. Please provide a normal fix without hacking the WP core.
"PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4864 bytes) in ......./wp-admin/includes/deprecated.php on line 106"
WP version 3.0.3 on PHP 5.2.11
Yes. Here is the fixed.
In your .htaccess file, add the bit of code below:
php_value memory_limit 64M
Hope that helps.
This topic has been closed to new replies.