Fatal error:Allowed memory....

If you install a plugin or try to upgrade your Wordpress software and receive something similar to this:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 77824 bytes) in /home/username/public_html/wp-includes/afile.php on line yyy

The first port of call is to try to remove the offending plugin. You can do this via phpMyAdmin(found in the Databases section in cPanel). Backup the database first by using the "Export" option. Once that has been backed up, run a query as follows:

SELECT * FROM wp_options WHERE option_name = 'active_plugins';

The result returned represents all active plugins on the Wordpress site. Click "Edit" and copy this into an offline editor(in case you need it again), then delete the code in phpMyAdmin and replace it with:

a:0:{}

This disables all plugins, but, allows them to remain installed. To re-enable them all, you can re-enter the code you striped out or do so manually via the admin section of Wordpress.

To disable them all without keeping the line of code showing the plugins, use the following in the query instead:

UPDATE wp_options SET option_value = 'a:0:{}' WHERE option_name = 'active_plugins';

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Failing to install / upgrade plugins

When Wordpress fails to upgrade or install plugins This is almost always caused by a problem...

WordPress video tutorials

Learn about WordPress. Watch our videos