Magento 1.6 can be quite memory intensive due to its robust design. You can adjust the memory limits to reduce or eliminate the memory errors all together. You'll have to add code to 2 separate files and we'll walk you through the process using the file manager in cPanel.

  1. Log into cPanel and open File Manager
  2. Navigate to the root folder for your Magento Installation
  3. magento_memory_error_1

  4. Right click on the "index.php" file by right clicking on the file and selecting "Code Edit"
  5. magento_memory_error_2

  6. click "OK"
  7. Add the following line after the first line of code:
  8. ini_set("memory_limit","512M");

  9. Click "Save Changes" in the upper right corner
  10. magento_memory_error_3

  11. Go back to File Manager and open the app/Mage.php file with the code editor in the same manner you opened the index.php file above
  12. After the first line of code add the following line of code:
  13. ini_set("memory_limit","512M");

  14. Click "Save Changes" in the upper right corner
  15. magento_memory_error_4

At this point you should be able to re-load your website and the errors should no longer appear on your pages.

If you need further assistance please feel free to ask a question on our Support Center.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
2013-08-16 10:37 am
That did work a treat thank you very much!
2014-02-06 9:28 pm
after i followed instruction ..../app/mage.php & wrote code: ini_set("memory_limit","512M");.. now my website is not visible again. If I login website there is nothing visible here. looks out of memory. Any suggestions?
Staff
15,484 Points
2014-02-07 1:11 am
Hello Raihanmazumder,

If you're still getting memory errors, then first make sure that your PHP memory limit is set to 512M and above. You can find this in the PHP.INI file. Check out our article on fixing the allowed memory error. Make sure to follow the directions for making the directory recursive so that it applies to all the subdirectories in your installation. If you have any further questions on updating the PHP settings, then check out the documentationhere.

Regards,
Arnel C.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

3 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!