上传CSV文件,提示错误,搜检错误日记
在根目次下tempEP里,打开错误日记ep_debug_log.txt
发明提示如下:
MySQL 错误 1366: Incorrect integer value: """" for column ""products_tax_class_id"" at row 1
运行:
INSERT INTO zen_products (
products_image,
products_model,
products_price,
products_status,
products_last_modified,
products_date_added,
products_date_available,
products_tax_class_id,
products_weight,
products_quantity,
manufacturers_id)
VALUES (
""0004.jpg"",""UGG Sandals Womens Amelie"",
""99"",
""1"",
CURRENT_TIMESTAMP,
"2008-06-14 18:30",
NULL,
"""",
""2"",
""300"",
""NULL"")
很明显""products_tax_class_id""这个值有题目
解决办法:
批改下面的文件
打开 \admin\easypopulate.php
找到
if (isset($v_tax_class_title)){
$v_tax_class_id = ep_get_tax_title_class_id($v_tax_class_title);
}
在厥后加上
if(empty($v_tax_class_id)) {
$v_tax_class_id = 0;
}
补充:若是再传CSV,还有其他类似值的错误,同样对待,比如
if ($v_manufacturer_id == """") {
$v_manufacturer_id = "NULL"; //这里的NULL可能就会失足,如有提示这个值错误的,改成0即可
}