久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

升級到 1.6 版后無法重新索引新產品

Can#39;t re-index new products after upgrading to version 1.6(升級到 1.6 版后無法重新索引新產品)
本文介紹了升級到 1.6 版后無法重新索引新產品的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我已將我的網站從 1.4.0.1 版升級到 1.6 版.我已經從網站上刪除了所有產品,并成功完成了重新索引所有".當我嘗試創建新產品而不是再次重新編制索引時,我收到此錯誤:

I've upgraded my site from version 1.4.0.1 to version 1.6. I've deleted all the products from the website and did "reindex all" that was finished successfully. When I try to create a new product and than do a re-index again I get this error :

Product Attributes index process unknown error:
exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`.../catalog_product_index_eav`, CONSTRAINT `FK_CAT_PRD_IDX_EAV_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CAS)' in .../lib/Zend/Db/Statement/Pdo.php:228

我曾嘗試TRUNCATE TABLE catalog_product_index_eav,但沒有幫助.

I've tried to TRUNCATE TABLE catalog_product_index_eav but it didn't help.

我該如何解決這個問題?

How can I fix this?

推薦答案

這只會刪除不應該存在的惡意數據.

This only removes rogue data that shouldn't be there.

我已經擴展了上面的內容,因為它可以節省幾個小時的挖掘時間:

I've expanded the above as it may save some hours of digging:

delete FROM `catalog_product_entity_datetime` where entity_id not in (select entity_id from catalog_product_entity);
delete FROM `catalog_product_entity_decimal` where entity_id not in (select entity_id from catalog_product_entity);
delete FROM `catalog_product_entity_gallery` where entity_id not in (select entity_id from catalog_product_entity);
delete FROM `catalog_product_entity_group_price` where entity_id not in (select entity_id from catalog_product_entity);
delete FROM `catalog_product_entity_int` where entity_id not in (select entity_id from catalog_product_entity);
delete FROM `catalog_product_entity_media_gallery` where entity_id not in (select entity_id from catalog_product_entity);
delete FROM `catalog_product_entity_text` where entity_id not in (select entity_id from catalog_product_entity);
delete FROM `catalog_product_entity_tier_price` where entity_id not in (select entity_id from catalog_product_entity);
delete FROM `catalog_product_entity_varchar` where entity_id not in (select entity_id from catalog_product_entity);
#originals with formatting fixed:
delete from `catalog_category_product` WHERE product_id not in(select entity_id from catalog_product_entity);
delete from `catalog_category_product` WHERE category_id not in(select entity_id from catalog_category_entity); 
delete from `catalog_product_website` WHERE product_id not in(select entity_id from catalog_product_entity); 
delete from `catalog_product_index_eav_idx` WHERE entity_id not in(select entity_id from catalog_product_entity); 
delete from `catalog_product_index_eav` WHERE entity_id not in(select entity_id from catalog_product_entity); 
delete from `catalog_product_link` WHERE product_id not in(select entity_id from catalog_product_entity); 
delete from `catalog_product_relation` WHERE parent_id not in(select entity_id from catalog_product_entity);

這篇關于升級到 1.6 版后無法重新索引新產品的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 個表)
How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 設置?)
Auto populate a select box using an array in PHP(使用 PHP 中的數組自動填充選擇框)
PHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 從 MSSQL-SELECT 產生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
主站蜘蛛池模板: 午夜视频免费在线观看 | 亚洲欧美成人 | 欧美日韩一区二区在线观看 | 国产黄色免费网站 | av毛片在线看 | 成年人网站在线免费观看 | 日本高清www | 午夜免费在线 | 亚洲精品久久久久avwww潮水 | 日韩毛片在线观看 | 亚洲成人一区 | 欧美黄色一级视频 | 日本不卡免费 | 欧美一级黄色大片 | 欧美日韩中文 | www.亚洲视频 | 国产欧美在线播放 | www.久久| 日韩精品视频免费播放 | 欧美日韩成人一区二区三区 | a级成人毛片 | 少妇视频在线观看 | 色妞网 | 久久亚洲国产精品 | 99看片| 国产黄视频在线观看 | 亚洲一区二区三区在线视频 | 色交视频 | 18岁毛片 | 国产视频一二区 | 亚洲成人免费在线观看 | 毛茸茸性猛交xxxx | 国产一级二级 | 四虎四虎| 亚洲一区二区在线播放 | 中文字幕在线观看网址 | 三级在线免费观看 | 天天干天天草 | av在线天堂网 | 中文字幕理论片 | 成年人午夜视频 |