登录后magento无限循环或内存泄漏

时间:2012-02-01 15:37:43

标签: magento magento-1.5

我在Magento商店使用预订模块。所有工作都很好,但在上传产品后我开始面对内存不足错误。所有产品均不是通过导入手动创建的,请注意我使用自定义产品类型“可预订”创建捆绑产品。

从后端创建产品后,现在我尝试登录页面开始摆动,它会抛出致命错误,如下所示,

Fatal error: Out of memory (allocated 188219392) (tried to allocate 81 bytes) in * /public_html/demo/lib/Zend/Db/Select.php on line 166


Fatal error: Out of memory (allocated 181927936) (tried to allocate 3260 bytes) in * /public_html/demo/lib/Zend/Db/Statement.php on line 204

PHP Fatal error:  Out of memory (allocated 217055232) (tried to allocate 81 bytes) in * /public_html/demo/lib/Zend/Db/Statement/Pdo.php on line 290

我将内存限制更改为 512MB。没有运气

我找到了修复,而我禁用预订模块,然后工作正常。在那之后,我使一切运作良好。但我想弄清楚bug的来源。我怎么能找到这个问题。它吃了我一整天。

请一位指导好方法,

编辑: -

http://awesomescreenshot.com/067tfej14

我启用Xdebug来检查内存泄漏。请任何人都能告诉我这是怎么回事。

1 个答案:

答案 0 :(得分:0)

我解决了这个问题!

整个地狱都在我的数据库里。它完全被索引问题损坏,而我将数据库迁移到本地生活我错过了添加波纹管代码

SET FOREIGN_KEY_CHECKS=0; // add at the starting of mysql file

SET FOREIGN_KEY_CHECKS=1; // add at the end of mysql file

所以我在数据库中限制了问题。最后我出了这个,我很幸运地找到了修复数据库here的工具!。

整场噩梦即将结束!希望它会帮助一些人