WordPress – Fatal Error: Allowed Memory Size Of 33554432 Bytes Exhausted

Receive “Fatal error: Allowed memory size of 33554432 bytes exhausted” when try to upload an image with medium file size. To solve this error, try to increase the memory allocated to PHP. You can set the limit to 32MB, 64MB, 128MB or 256MB. It depends on your host.

Solution 1: Edit PHP.Ini

If you’re still allowed to edit your PHP.inifile, update your memory_limit in PHP.ini by modifying the below line

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

If the line is showing 64M in default, try 128M.

Solution 2: Edit .Htaccess File

Add the script below to your .htaccess file.

php_value memory_limit 64M

Solution 3: Edit Wp-Config.Php File

Add the script below to your wp-config.php file

Increasing memory allocated to PHP
define('WP_MEMORY_LIMIT', '64M');

Solution 4: Create A PHP.Ini File To Wp-Admin Folder

  1. Open Notepad.
  2. Insert the following code into Notepad.
    memory_limit = 64M ;
  3. Save as “PHP.ini”.
  4. Upload this file to “wp-admin” directory.
Advertisements

2 thoughts on “WordPress – Fatal Error: Allowed Memory Size Of 33554432 Bytes Exhausted

  1. It is also possible that Zynga’s chosen advertising network is to blame if we consider the case of the New York Times’ website fkgcggdbfkge

  2. Thanks for another magnificent post. Where else may just anybody get that kind of info in such a perfect manner of writing? I have a presentation next week, and I’m at the look for such information. aeefeedfkfkg

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s