2016-10-14 41 views
0

每当我尝试对产品进行任何更改并将其保存在magento后端时,出现以下错误。尝试在magento中保存产品时发生错误

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (p.entity_id = '1696') LIMIT 1' at line 3, query was: SELECT DISTINCT p.entity_id FROM `catalog_product_entity` AS `p` INNER JOIN `catalog_product_flat_1` AS `cpf` ON cpf.entity_id = p.entity_id LEFT JOIN `catalog_category_product` AS `ccp` ON ccp.product_id = p.entity_id WHERE (()) AND (p.entity_id = '1696') LIMIT 1 

请让我知道哪里出了问题,我该如何解决这个问题。

+0

由于Stack Overflow是一个[编程相关](http://stackoverflow.com/help/on-topic)问答站点,因此我正在投票结束这个问题。你的问题不是关于编程。也许你应该在http://magento.stackexchange.com上发布它呢? – Enigmativity

回答

0

数据库catalog_product_flat_1表中存在一些不一致,请清空所有平面表并尝试。清空表格前请先备份。

+0

嗨@Suman尝试了你的答案,但没有任何区别。 –

+0

清除缓存并重新从管理区重新索引。 –

+0

也试过了。 –