General Issues

“Fatal error: Allowed memory size of xx bytes exhausted (tried to allocate xx bytes)”.

2 views September 2, 2018 admin 0

If you see this error at any stage while working on your WordPress website. You can try to solve this by increasing memory_limit on your server in several ways (back up any files you edit to be able to restore them):

1. Try adding this line to your wp-config.php file:

2. If you have access to your website’s PHP.ini file, change the line in PHP.ini

If your line shows 32M, change it to 128M:

memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)

3. If you don’t have access to PHP.ini try adding this to an .htaccess file:

4. If all the methods mentioned above do not help, create a file called “php.ini” in the “wp-admin” folder of WordPress install.

Add the following text to the file;

5. If nothing works for you then contacting your hosting provider should help.

Was this helpful?