Magento – Fatal error: Out of memory (allocated 14680064) (tried to allocate 1245184 bytes)

Hello friends,
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

with

    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

with

memory_limit = 512M

Step 4: Go to Admin -> System -> Cache Management and refresh all the cache.
That’s it.
Hope this will help you.
Thanks.

Advertisements
Posted in Magento. 1 Comment »

One Response to “Magento – Fatal error: Out of memory (allocated 14680064) (tried to allocate 1245184 bytes)”

  1. mhmd Says:

    it didn’t work


Speak Your Mind

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: