1

我正忙着为 Magento 编写一些观察者,遇到了一个问题,其中包含各种奇怪的错误消息,我无法轻易找到解决方案。

症状是:

  • 在 Magento 管理页面中保存商店视图时,Apache 会因 /var/log/apache2/error.log 中的分段错误 (11) 而崩溃
  • 在 Magento 管理页面中保存产品时,我会看到空白页面或(登录错误)我会看到“致命错误:在第 578 行的 ProductController.php 中调用成员函数 getId()”并且不会保存更改
4

2 回答 2

0

由于我找不到答案,因此需要一些时间才能找到解决方案。在我在 Magento 中搜索正确事件时,我启用了将所有 Magento 事件记录到 Mage.php 的单独日志文件中。

在演示环境中使用了一天后,这个文件变成了大约 13Mb 大。禁用所有事件的日志记录功能可以解决上述两个问题。这对我来说仍然有点奇怪,因为其他功能仍然有效,而且我能够保存其他管理页面。

于 2012-11-21T20:11:23.460 回答
0

您可以查看 magento 日志tail -15 var/log/system.log

ERR (3): Warning: include(): Unable to allocate memory for pool.  in /data/www/dev-store/lib/Varien/Autoload.php on line 93

问题在于 /tmp 文件夹中的空间已耗尽。您可以列出具有大小的文件

cd /tmp
ls -lha

删除大文件sudo rm filename

于 2013-07-22T16:54:43.880 回答