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

升級到 1.6 版后無法重新索引新產(chǎn)品

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

問題描述

我已將我的網(wǎng)站從 1.4.0.1 版升級到 1.6 版.我已經(jīng)從網(wǎng)站上刪除了所有產(chǎn)品,并成功完成了重新索引所有".當(dāng)我嘗試創(chuàng)建新產(chǎn)品而不是再次重新編制索引時,我收到此錯誤:

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?

推薦答案

這只會刪除不應(yīng)該存在的惡意數(shù)據(jù).

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

我已經(jīng)擴(kuò)展了上面的內(nèi)容,因為它可以節(jié)省幾個小時的挖掘時間:

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);

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

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

相關(guān)文檔推薦

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 設(shè)置?)
Auto populate a select box using an array in PHP(使用 PHP 中的數(shù)組自動填充選擇框)
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 產(chǎn)生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
主站蜘蛛池模板: 久久机热 | 日韩视频免费 | www.国产.com| 日韩精品免费播放 | 国产免费人成xvideos视频 | 欧美激情欧美激情在线五月 | 91av免费版 | 国产精品揄拍一区二区 | 91国自视频| 四虎精品在线 | 亚洲久在线 | 97国产精品| 久久99精品国产99久久6男男 | 欧美日韩一区二区视频在线观看 | 毛片一区二区 | 国产精品视频免费 | 久久久久国产精品午夜一区 | 成人欧美一区二区三区色青冈 | 波多野结衣一二三区 | 免费成人高清在线视频 | av在线播放国产 | 欧美亚洲第一区 | 欧美精品1区2区3区 免费黄篇 | 99精品欧美一区二区三区 | 天天爽天天干 | 在线免费小视频 | 欧美在线视频a | 狠狠狠色丁香婷婷综合久久五月 | 国产欧美精品区一区二区三区 | 天天曰夜夜 | av在线一区二区 | av男人的天堂av | 九九伦理电影 | 在线观看涩涩视频 | 一本色道精品久久一区二区三区 | 成人精品在线观看 | 成人久久18免费网站图片 | 99国产精品视频免费观看一公开 | 亚洲 成人 在线 | 美女在线国产 | 九九热精品免费 |