0

自 4 月以来,我们目前已经安装了 Magento 1.7.0.2,一切都很好,没有问题,但是问题已经到来。

某些用户在点击前端的“我的帐户”时会显示 404 错误页面。不是每个用户都能看到它,如果他们从“我的帐户”的最近订单部分点击单个订单的“查看订单”,该订单将正常显示。

经过一番挖掘,我将其缩小到“sales_flat_order_item”表。如果我浏览每个订单并删除与该订单相关的某个项目,或者只是更改 product_id - 页面将显示正常。该产品存在于 Magento 中,因此不可能是那样。

我试过重新索引、删除缓存——我能想到的一切。

有没有人有什么会导致 404 的建议?浏览 3000 多条记录,查找导致问题的项目并删除它不是出于明显原因的选项。

4

1 回答 1

0

In case anyone else has this issue here's the solution.

The site had been working fine for months so don't know this stopped working BUT copied /sales/order/history.phtml out of the base theme and put it into our own (it didn't exist to start with) and edited line 63

from

if ($this->helper('sales/reorder')->canReorder($_order)) :

to

if(Mage::getStoreConfig('sales/reorder/allow')):

Which fixed my issues.

Not sure why that bit of code would break, nor why it would show a 404 page since the output would have already started and shouldn't redirect?

于 2013-10-10T10:05:38.517 回答