Magento 目录 URL 重写在处理过程中卡住
正如标题所示,我的目录 URL 重写索引器卡在处理中。
我已经尝试了一切,但找不到解决方案。有谁知道这个问题的可靠解决方法吗?
我尝试截断 core_url_rewrite 表并删除锁,但它仍然处于处理状态。当通过管理运行它时,页面只是继续加载,即使当我对表进行计数时它似乎已经完成。
请原谅我再次问这个问题,但我完全不知所措,经过几天在 www 上寻找解决方案,我却一无所获。
谢谢
As the title says my Catalog URL rewrites indexer is stuck on processing.
I've tried everything and I just can't find a solution to this. Does anyone know a solid fix for this?
I've tried truncating core_url_rewrite table and deleting the locks but it still sits on processing. When running it through the admin the page just conitnues loading even though it appears to have finished when I so a count of the table.
Forgive me for asking this again but I'm at a total loss and after days hunting for solutions on the www I've come up blank.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您的 putty 因“软件导致网络断开”或类似情况而关闭,请使用 & 运行脚本。在命令末尾强制脚本在服务器后台运行,而不是通过终端运行。
我也在学习......甚至更好 - 使用 nohup 命令运行:
sudo nohup /usr/local/zend/bin/php /var/www/html/magento/shell/indexer.php reindex all &
If your putty gets closed from "software caused network disconnection" or similar, run the script with the & at the end of the command to force the script to run in the background on the server instead of via the terminal.
I am learning too....even better - run with the nohup command:
sudo nohup /usr/local/zend/bin/php /var/www/html/magento/shell/indexer.php reindex all &
尝试从 CLI 执行
php shell/indexer.php reindexall
。Try executing
php shell/indexer.php reindexall
from a CLI.好的,我通过编辑找到了修复方法
应用程序/代码/核心/法师/目录/模型/资源/Eav/Mysql4/Url.php
并删除第 253 行的 throwException 调用。
使用此处的信息发现:
http://www.magentocommerce.com/boards/main.php/viewthread/ 198534/
Ok I found the fix by editing
app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Url.php
and removing the throwException call on line 253.
Found using the info here:
http://www.magentocommerce.com/boards/main.php/viewthread/198534/
从 magento 根目录:
From the magento root directory: