Fixing PHP Memory Errors in Magento 1.6
Written by Tim SissonMagento 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.
- Log into cPanel and open File Manager
- Navigate to the root folder for your Magento Installation
- Right click on the "index.php" file by right clicking on the file and selecting "Code Edit"
- click "OK"
- Add the following line after the first line of code:
- Click "Save Changes" in the upper right corner
- 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
- After the first line of code add the following line of code:
- Click "Save Changes" in the upper right corner
ini_set("memory_limit","512M");
ini_set("memory_limit","512M");
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.
Like this Article?
Tweet
Troubleshooting Magento 1.6
| 1. | Enabling System and Exception Logging in Magento 1.6 |
| 2. | Enabling the Debug Profiler in Magento 1.6 |
| 3. | Fixing PHP Memory Errors in Magento 1.6 |
Latest Questions
If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Recent QuestionsNeed 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 |





