1. Try adding this line to your wp-config.php file:
define('WP_MEMORY_LIMIT', '64M');
2. If you have access to your PHP.ini file, change the line in PHP.ini
If your line shows 32M try 64M:
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)
3. If you don't have access to PHP.ini try adding this to an .htaccess file:
php_value memory_limit 64M
4. Talk to your host.

I have tried placing define('WP_MEMORY_LIMIT', '64M'); into wp-config.php – However this did not make any difference.

Then I tried placing php_value memory_limit 64M into .htaccess but that actually made the whole site to go down. It could not be loaded and came up with “Internal Server Error”. As soon as I removed the line from .htaccess it all went back to normal.

I have also contacted my host, but I doubt if they will do anything about it. The error is re-produce-able.

*** Here we consider 64M as good configuration. Depending on your need, server codition, how is your site, you could use 32M, 96M, 128M, 256M, 512M, 1024M, 2048M, 4096M. Make sure your server allow you to use that much dedicated memory.

It sounds svery similar. I tried everything you said but it’s not working.

1. Try adding this line to your wp-config.php file:
define(‘WP_MEMORY_LIMIT’, ’64M’);
****This made no difference

2. If you have access to your PHP.ini file, change the line in PHP.ini
If your line shows 32M try 64M:
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)
****This made no difference

3. If you don’t have access to PHP.ini try adding this to an .htaccess file:
php_value memory_limit 64M
****This crashed the entire site

I got this error too. Fatal error: Allowed memory size of 67108864 bytes exhausted….
Fortunately, it was just after I had installed the plugin ‘Event-Registration’.
So, I used my CPanel access and deleted the entire plugin from my Plugin Folder (public_html/wp-content/plugins/
And my site came back up.

Well, after I went back in, I decided to deactivate some plugins (about 17). I re-installed ‘Event-Registration’ just to check. Everything worked just fine.
So, it’s a memory issue. Either increase it as suggested above, or delete some stuff.

It’s been years since I had this problem but the wp-config trick wasn’t working anymore. So, I did the plug-in tests and sure enough, it was my caching program. I had to disable it and now everything works normally.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Fatal error: Allowed memory size of 67108864 bytes exhausted’ is closed to new replies.