-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script stops at step: data migration][step: Url Rewrite Step #46
Comments
Hi,
Try to run the migration with -vvv option like this: |
HI Victor, The output is:Exception trace: Symfony\Component\Console\Application->run() at /var/www/html/magento2/bin/magento:25Looking at the file /var/www/html/magento2/vendor/magento/data-migration-tool/src/Migration/Step/UrlRewrite/Version191to2000.php line 280 and this code causes the error: $destRecord->setValue('redirect_type', $this->redirectTypesMapping[$record->getValue('options')]); Any idea how to fix this? We applied a change in this file but i think this could not lead to the problem right? |
We solved this problem by deleting any custom urls (generated by some extensions) in the source database: delete from core_url_rewrite where is_system = 0; Maybe this would be great to implement this in the tool as this causes the problem. |
Internal issue MAGETWO-47890 was created for properly validation of core_url_rewrite.options filed to prevent such errors |
We are working on the migration from 1.7.0.2 to 2.0.
Now we have a problem that the script just stops at the "URL Rewrite Step" - always at exact 24%!
No error logs are shown and just the notice: [ErrorException] Undefined offset: 0
[2016-01-11 16:40:15][INFO][mode: data][stage: data migration][step: Url Rewrite Step]: started
24% [======>---------------------] Remaining Time: 25 secs
How can we debug this?
We also noticed that our source database has two entries of rewrite tables:
Could this be a problem?
If we empty the core_url_rewrite table the migration works fine but of course all urls are messed up.
Is there maybe a way to rebuild the urls internaly by magento 2.0 itself. We als realized that the core_url_rewrite table is quite huge and also has stored some very old data.
Many thanks!
The text was updated successfully, but these errors were encountered: