The PHP memory limit on your server is set to 32MB, which is too low. You should increase the value of memory_limt to say 128M. This can either be done via .htaccess (if PHP run as an Apache module), or via a custom php.ini file. If that does not help, you should contact your host and ask them to increase it for you. Please note that many shared hosts do not allow a higher memory limit, as it could have a negative impact on their servers.
If your host is not willing to increase the memory limit, or you cannot override it in .htaccess/custom php.ini, there is no workaround for this. If you get out of memory warnings, that means Magento simply is trying to allocate more memory than what is available/allowed.
I think this is a serious bug in the memory management of magento for my site gets the same error at the bottom of almost every page. I asked my host increase the php value of memory_limit to 128M but the fatal error continue to occur persistently even if the memory_limit has been raised to 128M. It’s very discouraging that every upgrade fixes old issues but introduces new more serious bugs and this would push people to seek other eCommerce solution.
the only workaround is to move from a shared hosting environment to either a VPS or dedicated server. Ive seen some pretty reasonable VPS packages going around that could be used. Yes there is a cost impact, but at least this way allows you more flexibility & control in your hosting envirionment
I started to constantly receive error message while doing export using profiles after upgrading to version 1.3. If I lower count of product using filter I can solve this problem, but is very annoying. Total count of items is not too big, just about 2600.
I talked to my host and changed memory limit from 64 (default limit in Magento .htaccess file) to 128MB, but it did not help.
When I create file using gbase.php it works fine, no problem. I believe that there should be a way to redesign export profiles to avoid “out of memory” problem.
Unfortunately, we still waiting response from Magento team and it looks like it may be forever.
Sometimes I think I better stay with version 1.21, version 1.31 didn’t bring me any real advantages.
I found that the problem still there. Guys change some Magento core files to avoid the problem with hope that Varien will take changes into account. These changes been made for version 1.2.
My post was a cry out in hope that Magento team will do some changes and fix the problem or at least tell us something.
I understand that they are busy now with commercial version of Magento, free version is not that attractive anymore. I just hope that they still do some fixes as they did before.
Tried that line of code, it only prouces an eror. This is sad, I really like Magento but I am only on my second product in ONE Category and am getting Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3508 bytes) in place of showing me the second picture. I have the memory bumped up to 128M in .htaccess too. I need a solution
I was also facing this problem and i have corrected it by putting this code on the first line of \app\design\frontend\default\default\template\page\html\header.phtml
This one Worked for me properly
Hope it’ll work for someone else too.
I placed the line of code above like this:
<?php ini_set(’memory_limit’, ‘64M’); /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE_AFL.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to firstname.lastname@example.org so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category design_default * @package Mage * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ ?>
It works for me, so far. I am able to log into admin without the ‘our of memory’ error message, so I thank you so much. Every other suggestion never worked and I tried them all. Thanks so much for your help! I will let everyone know if I get the error message again.