Fix WordPress Fatal Error: Allowed memory exhausted
Users of WordPress blogging software might have seen the following error when trying to perform memory intensive tasks:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1585313 bytes).
This error happens when trying to update a plugin or WordPress itself, for example. The reason for this error is that WordPress runs out of memory allocated to it by the server, and needs more memory to complete the particular task it was trying to complete. To solve this, you have to tweak memory settings for WordPress.
Solve WordPress memory fatal error
Step 1:
Open your blog’s wp-config.php file for editing.
Step 2:
Add the following line to wp-config.php, after the MySQL connection settings and before the require_once line
ADVERTISEMENT
define('WP_MEMORY_LIMIT', '32M');
Save and re-upload the file.
Now, retry whatever you wanted to do – updating plugins or such. If the error persists, try raising the memory limit to 64M. Note that this edit cannot overrule the server settings for each process and such, so if this fatal error persists, you may have to contact your web host.
0 comments:
Post a Comment