Magento 1.9.x,xampp-win32-7.0.4随机显示以下类型错误
Fatal error: Out of memory (allocated 14680064) (tried to allocate 790528 bytes) in lib\Less\Parser.php on line 3719
Fatal error: Out of memory (allocated 134217728) (tried to allocate 16384 bytes) in lib\Varien\Image\Adapter\Gd2.php on line 74
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 16384 bytes) in lib\Zend\Db\Statement\Pdo.php on line 228
我尝试以下链接但没有任何事情发生
答案 0 :(得分:1)
您可以尝试在Magentos根文件夹.htaccess中将内存限制增加到512。只需找到以下行并调整memory_limit的值:
<IfModule mod_php5.c>
############################################
## adjust memory limit
php_value memory_limit 512M
如果内存不足,Magento安装中可能会出现另外一个耗费太多问题。
答案 1 :(得分:0)
将此代码添加到index.php
ini_set('memory_limit', 256M);
如果问题仍然存在,则增加限制。