盛冉电脑给客户做站用的是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 的两行代码即可.
登录到mysql后,输入命令:show processlist
查看当前会话列表,左边红框是会话执行的命令,右边红框是会话的时间。通常会话时间太长的多半是因为锁等待活死锁造成的,但也不排除一些慢查询。
我们删除那些时间过长的会话。
输入命令:kill 1110
删除会话列表中等待时间最长的会话
依次删除其他等待时间过长的会话
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)