Fatal error: Allowed memory size of XXX bytes exhausted

If you get PHP error 'Allowed memory size of XXX bytes exhausted' here is one way how you can fix it. This error message can spring up in a previously functional PHP script when the memory requirements exceed the default limit. To change the memory limit for one specific script, include a line such as this at the top of the script: ini_set("memory_limit","128M"); Another way how this could be fixed is by modifying .htaccess file and adding this line to it: php_value memory_limit 128M

Brighten someone's day!