I'm trying to install Ubercart but it fails with "Fatal error: Allowed memory size of 8388608 bytes exhausted"

Category: 
User
Topic: 
Installation

On many web hosts, PHP is configured by default with a memory limit of 8M. While the minimum installation of Drupal will work with that, once you start adding a lot of other modules, like Ubercart, you will run into a problem. Ubercart/Drupal will need a minimum of around 12M (for nothing but the core modules and its dependencies) to a maximum around 18M (for all Ubercart modules enabled); you might have to try 24M or even 32M if you plan on using more Drupal or Ubercart contrib modules.

The solution is to increase PHP's memory limit in one of these three ways, in order of preference:

  1. Add the line memory_limit = 24M to your php.ini file (A value of -1 can be used instead, meaning "no limit")
  2. Add the line ini_set('memory_limit', '24M'); to your sites/default/settings.php file
  3. Add the line php_value memory_limit 24M to your .htaccess file in the Drupal root directory

Only one of these is needed. If you have problems making this work, your web host provider should be able to help.

These solutions can be found at http://drupal.org/node/29268
This problem is also the cause of the "white screen of death" described at http://www.ubercart.org/faq/2246