Magento1 升级 到 Magento2 报错处理

Magento1 升级 到 Magento2 报错处理,遇到两种错误
1,采用最新Magento2.20,做好配置后升级报错
20171018103639
步骤
php bin/magento --version 查询系统版本
composer config repositories.data-migration-tool git https://github.com/magento/data-migration-tool 安装官方升级工具
composer require magento/data-migration-tool:2.2.0 运行相应版本(这里就出现了环境上报错要大于php7.8有没搞错,安装时不用)
这里提示 php环境有问题,这里应该是magento的bug,安装时没有出问题,为什么会升级有问题
这里我就不折腾了,改成了Magento2.1.5版本,安装OK
2.修改配置文件后运行
php bin/magento migrate:settings vendor/magento/data-migration-tool/etc/ce-to-ce/1.9.2.4/config.xml 检测配置环境
这里要注意几个关键(config.xml)
source magento1数据库
destination magento2数据库spcu21_
如果有表前辍:Magento1前辍
php bin/magento migrate:data vendor/magento/data-migration-tool/etc/ce-to-ce/1.9.2.4/config.xml

20171017215255

[2017-10-17 14:49:27][ERROR]: Source documents are not mapped: googlemerchants_cats,shipping_matrixrate,smtppro_email_log
[2017-10-17 14:49:27][ERROR]: Source fields are not mapped. Document: sales_flat_order_item. Fields: base_surcharge_amount,surcharge_amount
[2017-10-17 14:49:27][ERROR]: Source fields are not mapped. Document: sales_flat_order_payment. Fields: repeat_code
[2017-10-17 14:49:27][ERROR]: Source fields are not mapped. Document: sales_flat_quote_address. Fields: base_surcharge_amount,surcharge_amount
[2017-10-17 14:49:27][ERROR]: Source fields are not mapped. Document: sales_flat_quote_address_item. Fields: base_surcharge_amount,surcharge_amount
[2017-10-17 14:49:27][ERROR]: Source fields are not mapped. Document: sales_flat_quote_item. Fields: base_surcharge_amount,surcharge_amount
[2017-10-17 14:49:27][ERROR]: Source fields are not mapped. Document: sales_flat_quote_payment. Fields: sagepay_token_cc_id,repeat_code
可能会遇到的错误,这里列出来

[2017-10-17 14:49:27][ERROR]: Source documents are not mapped: googlemerchants_cats,shipping_matrixrate,smtppro_email_log
这里的意思就是删除该 数据表

[2017-10-17 14:49:27][ERROR]: Source fields are not mapped. Document: sales_flat_order_item. Fields: base_surcharge_amount,surcharge_amount
这里的意思就是删除该数据表的字段

这里全靠经验,大功告成,去年都试过好多次,可能没有遇到这种问题,因为magento2数据库比较严谨对于Magento1中扩展了一些插件的数据表是不支持的,这里要删除

发表评论
Magento2 技术支持 上门服务

工作时间
周一至周六
9:00-18:00
相关咨询电话
15360669780
侨海科技