I guess it depends on your hosting provider. I have bluehost but I think this would work for any hosting provider. The problem was that the memory was too low, Magento couldn’t process everything it needed to with the default 32M of memory. You have to increase it to 64M or sometimes even higher 128M (64M worked for me).
If you have CPanel:
1. Login to CPanel
2. If available click on the PHP Config link/icon (For me it was under software and services)
3. Select the second option PHP5 (Single.ini) and click “Save Changes”.
4. Click “Install PHP.INI master file” after you click Save changes.
1. Open FTP Client (Dreamweaver is my choice, but you can use any I.E. FileZilla)
2. Login to FTP Server
3. Open public_html folder
4. Drag over/open the php.ini file
5. Rename the local copy php.ini.txt if you cannot get it to open with notepad or dreamweaver or some other editor.
6. Open the local copy.
7. Find this section of the file
; Resource Limits ;
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 32M ; Maximum amount of memory a script may consume (32MB)
memory_limit = 32M
or higher if this doesn’t fix the problem.
memory_limit = 64M
Then save the file removing the .txt extension if you added it so the file name is “php.ini” then publish it into your public_html folder.
ONLY DO THIS IF YOU CANNOT GENERATE IT FROM CPANEL
If you cannot generate the php.ini file from your hosting provider, a sample one should be available in the root folder of your magento installation. Use the one from your hosting provider first before using the one provided in the magento folder. Then just make the same changes rename it to php.ini and publish it to the public_html folder.
Hope this helps! Happy Holidays!