Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 65488 bytes) In Magento 1.9.1

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 65488 bytes) In Magento 1.9.1

我已将不安全的基础 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 dir}/var/cache

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

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

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