繁体   English   中英

升级到Magento 1.7时出错

[英]Getting error while upgrading to Magento 1.7

我收到以下错误:

SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'position' in order clause is ambiguous

我使用的是Magento 1.4版本,首先我成功将其升级到1.6.2,但是当我尝试将其升级到1.7时,出现了上述错误。

请帮忙

您可以尝试以下解决方案:

  1. 查找表eav_attribute在phpMyAdmin,这是相关catalog_eav_attribute 在表eav_attributeposition并将其删除。

  2. 清除所有缓存并重新索引所有数据

  3. 现在访问首页。 现在您可能会收到一个新错误:

SQLSTATE [42S22]:找不到列:1054“ where子句”中的未知列“ main_table.include_in_menu”

  1. 找到并打开文件app/code/core/Mage/Catalog/Model/Resource/Category/Flat.php

注释掉以下行:267

->where(‘main_table.is_active = ?’, ’1′)
// ->where(‘main_table.include_in_menu = ?’, ’1′)
->order(‘main_table.position’);

您可以在以下位置找到分步指南:expertmagentodevelopers [com] / blog / how-to-to-upgrade-from-magento-1-6-1-to-1-7-0-using-connect-manager /

以上解决方案基于我自己的经验。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM