Installing wp plugins. Fatal error: Allowed memory size. How to resolve it?

  

2
Старт на темата

Hi, while trying to upload some wordpress plugins (in my case W3 Total Cache) I get this error: Fatal error: Allowed memory size;

How can I overcome this error?

Should I add some code somewhere in wordpress files?

1 Отговор
1

I had this problem back in the days: Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 491520 bytes) in (my site's address)

Here is the solution my friend:

1. Go to your php.ini file and change memory_limit = 32M to memory_limit = 128M. However, not all hosting providers give you access to php.ini file in this case read No.2

2. Download your .htaccess file from your root directory and by using a text editor (I use Notepad ++) put this line in the beginning there: php_value memory_limit 128M

if this is not working as well - please read No. 3:

3. Find wp-config.php file form your site, download it with your FTP program (I am using Filezilla), open it with yout text editor (I recommend Notepad++) and simply add this line there (no matter where):

define('WP_MEMORY_LIMIT', '128M');

Good luck! 🙂

Споделете: