WordPress: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2 bytes) [closed]

1

Does anyone know how to resolve this error? I have already set up the wp-admin.php and .htaccess file, but it still has the same error

    
asked by anonymous 28.06.2017 / 02:12

1 answer

2

Your code may be in infinite loop, causing high consumption of server resources. Another reason that causes this is a page with many images with wrong file path. You can try to increase the resources available for your PHP, in the file php.ini, search for:

memory_limit = 128M;

Increase to 512 for example and see if the problem continues.

Also, you can try to put this in your config.php:

ini_set('memory_limit', '-1');

Try to find the reason for high consumption. Restart the server after the changes. If you use cPanel in your hosting, changing the memory limits should be done there.

    
28.06.2017 / 02:29