2016-04-26 92 views
0

Magento的1.9.x的与XAMPP-win32-7.0.4显示以下类型的错误随机我该如何解决Magento内存不足致命错误?

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 

我尝试如下链接,但没有发生

https://indiestechtips.wordpress.com/2012/10/13/magento-fatal-error-out-of-memory-allocated-14680064-tried-to-allocate-1245184-bytes/

+0

好吧,但增加内存限制在.htaccess后分配内存的数量会发生变化吗? – Deus777

+0

由于Stack Overflow是一个[编程相关](http://stackoverflow.com/help/on-topic)问答网站,因此我正在投票关闭此问题。你的问题不是关于编程。也许你应该在http://magento.stackexchange.com上发布它呢? – Enigmativity

+0

@Enigmativity,我不会没有实际的magento或xampp或其他问题 – matinict

回答

0

将此代码添加到index.php

ini_set('memory_limit', 256M); 

如果问题仍然存在,则会增加限制。

+0

我也添加这个,但没有解决 – matinict

1

您可以尝试将Magentos根文件夹.htaccess中的内存限制增加到512。只要找到以下行和memory_limit的调整值:

<IfModule mod_php5.c> 

    ############################################ 
    ## adjust memory limit 

    php_value memory_limit 512M 

如果仍然运行内存不足,有可能对你的Magento安装另一个问题,消耗这么多。

相关问题