In last week I have faced one horrible issue in our live website. Due to that issue our live site had stopped working and gave the under given error:
Fatal error: Out of memory (allocated 14680064) (tried to allocate 1245184 bytes)
Inadequate memory limit caused the above error. And to solve that I had searched the web and found a proper solution, which I want to share here.
Now to solve the above error follow the under given steps:
Step 1: Open the .htaccess file from the magento root directory and around line 35 replace the
php_value memory_limit 256M
php_value memory_limit 512M
Step 2: From the magento root directory rename the php.ini.sample file to php.ini
Step 3: Open the php.ini file and replace the
memory_limit = 64M
memory_limit = 512M
Step 4: Go to Admin -> System -> Cache Management and refresh all the cache.
Hope this will help you.