1

我将 mageto 1.4 更新到 1.5 一切正常,但产品页面返回跟随错误。我也无法索引

索引类别/产品关联和索引产品价格标签显示处理当我单击重新索引时,它出现重新索引过程出现问题

我尝试删除 loc 文件和缓存以及 db 上的一些操作,但没有人能帮我解决这个问题,谢谢

http://hellteam.bizarsoftware.com.au/technical-downloads/general-tech-essays-misc.html

Invalid attribute name: custom_use_parent_settings.

    Trace:
    #0 /home/hellteam/public_html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1166): Mage::exception('Mage_Eav', 'Invalid attribu...')
    #1 /home/hellteam/public_html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1255): Mage_Eav_Model_Entity_Collection_Abstract->_addAttributeJoin('custom_use_pare...', 'inner')
    #2 /home/hellteam/public_html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(292): Mage_Eav_Model_Entity_Collection_Abstract->_getAttributeConditionSql('custom_use_pare...', 0, 'inner')
    #3 /home/hellteam/public_html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(312): Mage_Eav_Model_Entity_Collection_Abstract->addAttributeToFilter('custom_use_pare...', 0)
    #4 /home/hellteam/public_html/app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Category.php(589): Mage_Eav_Model_Entity_Collection_Abstract->addFieldToFilter('custom_use_pare...', 0)
    #5 /home/hellteam/public_html/app/code/core/Mage/Catalog/Model/Category.php(841): Mage_Catalog_Model_Resource_Eav_Mysql4_Category->getParentDesignCategory(Object(Mage_Catalog_Model_Category))
    #6 /home/hellteam/public_html/app/code/core/Mage/Catalog/Model/Design.php(348): Mage_Catalog_Model_Category->getParentDesignCategory(Object(Mage_Catalog_Model_Category))
    #7 /home/hellteam/public_html/app/code/local/FastDivision/Comet/controllers/Catalog/CategoryController.php(38): Mage_Catalog_Model_Design->getDesignSettings(Object(Mage_Catalog_Model_Category))
    #8 /home/hellteam/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(420): FastDivision_Comet_Catalog_CategoryController->viewAction()
    #9 /home/hellteam/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch('view')
    #10 /home/hellteam/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #11 /home/hellteam/public_html/app/code/core/Mage/Core/Model/App.php(340): Mage_Core_Controller_Varien_Front->dispatch()
    #12 /home/hellteam/public_html/app/Mage.php(627): Mage_Core_Model_App->run(Array)
    #13 /home/hellteam/public_html/index.php(80): Mage::run('', 'store')
    #14 {main}
4

1 回答 1

0

在 magento 数据库升级后,我在访问产品列表页面时遇到了类似的问题。在 var/report/ 下记录的错误是:

SQLSTATE [42S22]:未找到列:1054 'where 子句'中的未知列'custom_use_parent_settings',查询是:SELECT main_table.* FROM catalog_category_flat_store_1AS main_tableWHERE (entity_id IN ('105', '9', '5', '1') ) AND (custom_use_parent_settings = 0) AND ( level!= 0) 按levelDESC 排序

我所做的修复是:

  1. 在系统中刷新 Magento 缓存 -> 缓存管理

  2. 在系统 > 索引管理中重建所有索引

于 2015-05-01T13:05:59.963 回答