【问题标题】:Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 65488 bytes) In Magento 1.9.1致命错误:Magento 1.9.1 中允许的内存大小为 536870912 字节已用尽(尝试分配 65488 字节)
【发布时间】:2015-02-20 07:10:49
【问题描述】:

我已将不安全的基本 URL 从 {{base_url}} 更改为 {{unsecure_base_url}}。 在此之后我收到此错误 "Fatal error:Allowed memory size of 268435456 bytes exhausted (tried to allocate 65488 bytes)".

我试过ti change set ini_set('memory_limit', '512M')

现在它显示错误"Fatal error:Allowed memory size of 536870912 bytes exhausted (tried to allocate 65488 bytes)"。 我还将数据库core_config_data > unsecure/base_url” andchange中的值更改为“{{base_url}}”;但仍然有相同的错误。谁能帮我?。 提前致谢。

【问题讨论】:

    标签: magento fatal-error


    【解决方案1】:

    听起来您的更改会在清除缓存后执行某些操作。您可以在

    中删除文件
    {Magento dir}/var/cache
    

    将限制设置为 512M 并没有帮助,因为它需要更多(对我来说听起来像是泄漏)。通常会出现问题,但您可以尝试增加内存使用量,直到达到一个合理的数字。

    官方文档规定至少 254 和需要 512 兆字节的 ram。当添加模块/插件、使用自定义布局等时,使用量可能会增加。

    http://magento.com/resources/previous-magento-system-requirements

    【讨论】:

    • 谢谢。删除 {Magento dir}/var/cache 文件后它工作正常。非常感谢
    猜你喜欢
    • 2014-09-27
    • 2021-04-03
    • 2014-01-06
    • 2021-12-01
    • 2014-04-07
    • 1970-01-01
    • 1970-01-01
    • 2013-02-24
    • 2011-09-27
    相关资源
    最近更新 更多