allowed memory size exhausted
If you’re receiving an error like the following;
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 363 bytes) in /path/to/some/file.php on line 799
The cause is because PHP has exhausted the maximum memory limit as set by the configuration value
Typically this PHP configuration value has a very low default of 8MB or 16MB. The Magento documentation recommends at least 64MB, however even this value can fall short on certain script executions.
Increasing this value can be done either by asking your host to increase the global memory_limit in the servers php.ini configuration file. Another option is to increase this via .htaccess file.
Magento comes with a default .htaccess file in the root directory that includes this configuration directive.
php_value memory_limit 64M php_value max_execution_time 18000
You can simply change this value from 64MB to 96M or 128MB depending on your needs. This value should be kept to the minimum necessary to run your application.