我正在使用预订模块在我的Magento商店。所有的工作之前都很好,但上传产品后,我开始面对内存错误。所有手工创建的产品不是通过导入创建的,注意,我使用自定义产品类型"bookable“创建捆绑产品。
在从后端创建产品之后,现在我尝试登录页面开始摆动,并引发致命错误,如下所示,
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我将内存限制更改为512 no。
当我禁用预订模块时,我找到了一个修复程序,然后工作正常。在那之后,我使一切正常工作。但我想弄清楚臭虫是从哪里来的。我怎么能找到这个问题。它吃了我一整天。
请有人指点好的方法,
编辑:-
http://awesomescreenshot.com/067tfej14
我启用了Xdebug来检查内存泄漏。请任何人都能知道这是在哪里发生的。
发布于 2012-04-02 05:23:48
我解决了这个问题!
全靠我的数据库。当我将数据库迁移到本地的时候,它被索引问题完全破坏了,我错过了添加以下代码的机会
SET FOREIGN_KEY_CHECKS=0; // add at the starting of mysql file
SET FOREIGN_KEY_CHECKS=1; // add at the end of mysql file所以我的数据库里有限制问题。最后,我很幸运地找到了修复数据库这里!
整个噩梦都结束了!希望它能对某人有所帮助
https://stackoverflow.com/questions/9098631
复制相似问题