If you are getting a php Fatal error like
Then error is because of small memory limit in php. Try to increase php memory limit by following method .
1. Add following line to .htaccess
2. if that doesn’t work open php.ini and look for
Here is a short explanation of memory_limit directive in php.ini
memory_limit integer ( default value 8M)
This sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server. In order to use this directive you must have enabled it at compile time. So, your configure line would have included: –enable-memory-limit. Note that you have to set it to -1 if you don’t want any limit for your memory.