zencart批量上傳錯(cuò)誤問(wèn)題
如何解決zencart批量上傳錯(cuò)誤zencart批量上傳,出現(xiàn)如下錯(cuò)誤提示:
ADD NEW PRODUCT FAILED! – Model: no200 – SQL error. Check Easy Populate error log in uploads directoryMySQL error 1054: Unknown column ‘p.EASYPOPULATE_CONFIG_CUSTOM_FIELDS’ in ‘field list’。
zen cart開(kāi)源網(wǎng)店系統(tǒng)是優(yōu)秀的, 這點(diǎn)不用懷疑. Easy Populate 是方便的, 這點(diǎn)也不用懷疑. 從 zencart 官網(wǎng) 下載的到目前為止最新的ep是v1.2.5.7版, 安裝后發(fā)現(xiàn)了兩個(gè)小問(wèn)題:
watches for sale宇塵網(wǎng)絡(luò)幫助中心域名知識(shí)|虛擬主機(jī)知識(shí)|VPS主機(jī)知識(shí)|服務(wù)器知識(shí)|網(wǎng)站建設(shè)知識(shí)|網(wǎng)絡(luò)推廣
1. install_sql 最后少了一行語(yǔ)句, 語(yǔ)句用于寫入 `EASYPOPULATE_CONFIG_CUSTOM_FIELDS` 設(shè)置
2. /admin/easypopulate.php 多了兩行語(yǔ)句, 這兩行語(yǔ)句將引起執(zhí)行錯(cuò)誤, 典型的錯(cuò)誤如下:
MySQL error 1110: Column ‘products_last_modified’ specified twice
When executing:
INSERT INTO zen_products SET
products_model = ‘10001′ ,
products_price = ‘239′ ,
products_image = ‘images/10000.jpg’ ,
products_weight = ‘0′ ,
products_tax_class_id = ” ,
products_last_modified = ‘2009-11-07 10:43:00′ ,
products_date_added = ‘2009-11-07 10:31:00′ ,
products_last_modified = CURRENT_TIMESTAMP ,
products_quantity = ‘15′ ,
master_categories_id = ‘55′ ,
manufacturers_id = ‘NULL’,
products_status = ‘1′,
metatags_title_status = ‘0′,
metatags_products_name_status = ‘0′,
metatags_model_status = ‘0′,
metatags_price_status = ‘0′,
metatags_title_tagline_status = ‘0′
仿牌空間、香港月付空間、韓國(guó)月付空間、日本月付空間、荷蘭VPS、香港VPS
解決方法:
1. 將install_sql最后一個(gè) ” ; ” 替換為 ” , ” 并在下一行加入以下代碼:
(”, ‘Custom Products Fields’, ‘EASYPOPULATE_CONFIG_CUSTOM_FIELDS’, ”, ‘Enter a comma seperated list of fields to be automatically added to import/export file(ie: products_length, products_width). Please make sure field exists in PRODUCTS table.’, ” . last_insert_id() . “, ‘10′, NULL, now(), NULL, NULL);
解決了1054錯(cuò)誤問(wèn)題。
美國(guó)月付空間、月付美國(guó)空間、美國(guó)VPS、美國(guó)服務(wù)器租用
或者在安裝完成后 reinstall :
轉(zhuǎn)到 Tools -> Easy Populate , 在地址欄最后加上 ” ?langer=remove ” 參數(shù)(不包括引號(hào))并回車運(yùn)行, 根據(jù)頂部提示點(diǎn)擊 click 重裝.
2. 錯(cuò)誤原因是 `products_last_modified ` 字段重復(fù)定義, 將它們刪除即可:
打開(kāi) /admin/easypopulate.php , 刪除位于行 1776 與 1832 的兩行代碼即可.
更多技術(shù)知識(shí),更多網(wǎng)絡(luò)服務(wù),盡在宇塵網(wǎng)絡(luò)。我們的成長(zhǎng),離不開(kāi)你們的支持,宇塵網(wǎng)絡(luò),歡迎您的訪問(wèn)。