Allowed Memory Size Exhausted

This happens when you exceed your default Memory Limit to execute a php code.
A typical message can be like this one:
Fatal error: Allowed memory size of 54525952 bytes exhausted (tried to allocate 17280 bytes) in /path/public_html/system/library/image.php on line 32

Solutions

You need to increase your memory
There are numerous solutions for it, but in this article we will share the simplest one out of all:
  1. Use your favourite FTP programme and download php.ini on your local PC
  2. Open this file and take a look at this row:
    memory_limit = 64M;
    	
  3. Change 64M with 128M (or 256M or 512M)
  4. Save and overwrite to your online installation

The alternative method

If this modification does not help you:
  1. Use your favourite FTP programme and download .htaccess on your local PC
  2. Open this file and add:
    <IfModule mod_php5.c>
    php_value memory_limit 128M
    </IfModule>
    	
  3. You can use 256M or 512M depending on your hosting plan
  4. Save and overwrite to your online installation
Note: if you are using PHP as CGI module, you cannot use php values.: you'll see an "internal server error" message.

Anyway some hosts do not allow these modifications and we suggest you to contact your host.
Help Topics: Support | Last updated 23 Apr 2014

OpenCart Common Errors
other FAQs

  1. 500 Internal Server Error or Blank White Page
  2. Allowed Memory Size Exhausted
  3. Headers already sent
  4. Notice: Undefined index
  5. Notice: Undefined index: count in
  6. Solving vQmod Error 500
  7. vQmod does not work after updating an OpenCart installation
Join our Newsletter!

Please Wait!

Please wait... it will take a second!