English 中文(简体)
2. 在将错误升级到Magento 1.7时
原标题:Getting error while upgrading to Magento 1.7

I get following error:

SQLSTATE[23,000]:廉正制约因素的违反:1052栏“定位”的定序条款是模糊的。

我拿着Magento 1.4版本,首先,我成功地将其升级为1.6.2,但当我尝试将其升级为1.7时,我就犯了上述错误。

请帮助

问题回答

你可以尝试这一解决办法:

  1. Locate table eav_attribute in phpmyadmin, which was related to catalog_eav_attribute. Located column position in table eav_attribute and dropped it.

  2. 清除所有海滩并重新确定所有数据

  3. 现在访问前页。 现在,你可能会出现新的错误:

54STATE[42S22]:Column没有发现:1054个“不知”栏“主要” 页: 1

  1. Locate and open file 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’);

You can find a step by step guide at: expertmagentodevelopers[dot]com/blog/how-to-upgrade-from-magento-1-6-1-to-1-7-0-using-connect-manager/

上述解决办法基于我自己的经验。





相关问题
Magento addFieldToFilter allow NULLs

When using the Magento collection method addFieldToFilter is it possible to allow filtering by NULL values? I want to select all the products in a collection that have a custom attribute even if no ...

Get product link from Magento API

I am new to Magento and using their API. I need to be able to get the product url from the API call. I see that I can access the url_key and url_path, but unfortunately that s not necessarily what ...

magento extension installation

I want to install a Magento extension in WAMP, but not from the Magento connect system. How can I do this? I have the module (extension) code and I already installed the sample data in the Magento ...

Link to a specific step in onepage checkout

Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it? I m working on a payment module and have a sort of "cancel" action that i would ...

How do I filter a collection by a YesNo type attribute?

I have a ‘featured’ attribute, which has a Yes/No select-list as the admin input. I presume that the values for Yes and No are 1 and 0, as they are for every other Yes/No list. However, if I try and ...

热门标签