2016-10-14 42 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

也試過了。 –