Easypopulate批量上传时出现的问题,求助

Easypopulate批量上传时出现的问题,求助,第1张

外贸网站用的最多的系统应该是zen Cart了,

盛冉电脑给客户做站用的是zen Cart1.39f,

由于商品数量10000多个,一个一个上传商品非常不现实,

去zenCart.com下载最新的Easy Populate v1.2.5.7,

上传到服务器指定目录。

首先要打开服务器调式开关,见上篇文章《》。

在/temp目录会有一个ep_debug_log.txt文件,下载会来,

发现里面有如下错误

当然是先出现第一个,解决后又出现第二个。4个问题都解决后,

就可以批量上传了。

错误1

现象

MySQL error 1054: Unknown column 'p.EASYPOPULATE_CONFIG_CUSTOM_FIELDS' in 'field list'

When executing:

SELECT

...

p.EASYPOPULATE_CONFIG_CUSTOM_FIELDS as v_EASYPOPULATE_CONFIG_CUSTOM_FIELDS FROM

Zen_products as p,

Zen_categories as subc,

Zen_products_to_categories as ptoc

WHERE

p.products_id = ptoc.products_id AND

ptoc.categories_id = subc.categories_id

解决方法

安装完成后 reinstall :

转到 Tools ->Easy Populate , 在地址栏最后加上

http://your-store.com/admin/easypopulate.php?langer=remove 并回车运行, 根据顶部提示点击 click 重装.

错误2

现象:MySQL error 1366: Incorrect integer value: '' for column 'products_tax_class_id' at row 1

When executing:

INSERT INTO Zen_products SET

products_model='192' ,

products_price='55' ,

products_image='cotton1-12.jpg' ,

products_weight='0' ,

products_tax_class_id='' ,...

解决方法:

错误3

现象:

MySQL error 1292: Incorrect datetime value: '' for column 'products_date_available' at row 1

When executing:

INSERT INTO Zen_products SET

products_model='192' ,

products_price='55' ,

products_image='cotton1-12.jpg' ,

products_weight='0' ,

products_tax_class_id='0' ,

products_date_available='' ,

解决方法:

错误4

现象:

MySQL error 1366: Incorrect integer value: 'NULL' for column 'manufacturers_id' at row 1

When executing:

INSERT INTO Zen_products SET

products_model='192' ,

products_price='55' ,

products_image='cotton1-12.jpg' ,

products_weight='0' ,

products_tax_class_id='0' ,

products_date_available=sysdate() ,

products_date_added='2010-12-25 18:52:02' ,

products_quantity='999999' ,

master_categories_id='66' ,

manufacturers_id='NULL',

解决方法:

错误5

现象: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'

解决方法:

错误原因是 `products_last_modified ` 字段重复定义, 将它们删除即可:

打开 /admin/easypopulate.php , 删除位于行 1776 与 1832 的两行代码即可.

1.打开sqlserver,在对象管理器里找到要搞的库右键-》任务-》生成脚本

2.在d出的向导中跟着向导一步一步做吧,最后可以搞出一个文件

3.一个库就一个文件你就直接在mysql里执行


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/7663010.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-08
下一篇 2023-04-08

发表评论

登录后才能评论

评论列表(0条)

保存