Print this page
Tuesday, 31 December 2013 14:16

Fatal error: Allowed memory size of 33554432 bytes exhausted

Written by 
Rate this item
(0 votes)
Often receiving "Fatal error: Allowed memory size of 33554432 bytes exhausted" when trying to upload an image with low mb file size. To solve this error, try to increase the memory allocated for PHP. For that you need to set the limit to 32MB, 64MB, 128MB or 256MB. However is based and depends upon your host provider.
Solution 1:
First edit the PHP.ini file

Suppose if you are not allowed to edit your PHP.ini file, update your memory_limit in PHP.ini by modifying the below line

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

If the specified line is showing 64M in default, change it to 128M.

Solution 2: Second step is edit the .htaccess file

Add the follwing script below to your .htaccess file.

php_value memory_limit 64M

Solution 3: In step 3 edit the wp-config.php file

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

Increase the memory allocated to PHP

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

Solution 4: Now create a PHP.ini file to the wp-admin folder

  •     First open the Notepad.
  •     Insert the following code into Notepad.
  •     memory_limit = 64M ;
  •     Save as "PHP.ini".
  •     Upload the created file to "wp-admin" directory using file manager or via ftp.

A simple tip from
Ultimatecine.com
Read 3261 times Last modified on Thursday, 09 January 2014 22:30
sreeram

Email This email address is being protected from spambots. You need JavaScript enabled to view it.
7