我知道产品也有类似的问题,但是现在我遇到了类别错误。
我不记得自己做了什么不同的事情,当我进入前端的类别页面时,突然就开始抛出此错误。
有时在管理员中重新保存类别可以解决问题,但大多数情况下并不能解决问题。此错误来自何处?如何解决?还有其他人也遇到此错误吗?
编辑
看起来类别页面要求URL重写表提供URL。它生成此查询:
SELECT `e`.*, 
   IF(at_is_active.value_id > 0, at_is_active.value, 
   at_is_active_default.value) AS 
   `is_active`, 
   `url_rewrite`.`request_path` 
FROM   `catalog_category_entity` AS `e` 
   INNER JOIN `catalog_category_entity_int` AS `at_is_active_default` 
           ON ( `at_is_active_default`.`entity_id` = `e`.`entity_id`) 
              AND ( `at_is_active_default`.`attribute_id` = '46' ) 
              AND `at_is_active_default`.`store_id` = 0 
   LEFT JOIN `catalog_category_entity_int` AS `at_is_active` 
          ON ( `at_is_active`.`entity_id` = `e`.`entity_id` ) 
             AND ( `at_is_active`.`attribute_id` = '46' ) 
             AND ( `at_is_active`.`store_id` = 1 ) 
   LEFT JOIN `url_rewrite` 
          ON ( url_rewrite.entity_id = e.entity_id ) 
             AND ( url_rewrite.is_autogenerated = 1 
                   AND url_rewrite.store_id = 1 
                   AND url_rewrite.entity_type = 'category' ) 
WHERE  ( IF(at_is_active.value_id > 0, at_is_active.value,   
     at_is_active_default.value) 
            = 
            '1' ) 
   AND ( `e`.`entity_id` IN( '10', '170', '171', '172', 
                             '173', '175', '176', '177', 
                             '178', '179', '180', '189', '276' ) ) 
ORDER  BY `e`.`position` ASC 但是,如果您的url_rewrite-table已损坏(在我的情况下极有可能),那么它最终将具有重复的ID。
                  我有同样的问题,但是重新保存类别无济于事。
                
                
                  
                    —
                    奥利弗·施密德
                    
                  
                
              
                  有人找到了解决办法?我遇到了同样的问题,对我来说很奇怪。在只有3个商店中创建了10个商店,而默认商店中有1个是创建目录目录的,而在其他商店中则没有。我已经设置好主页为目录页面
                
                
                  
                    —
                    Gianni Di Falco 
                    
                  
                
              
Sometimes re-saving the category in the admin resolved the issue这对我有用,谢谢!