Closed (outdated)
Project:
WordPress Migrate
Version:
8.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Dec 2016 at 11:57 UTC
Updated:
29 Apr 2020 at 01:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
fmb commentedUpdated issue summary. Wordpress Migrate appears to be non-functional at the current time: can this be fixed in this module, or do we have to wait until it is fixed in the Migrate module itself (see related issues)? Attached the call stack at the time of the crash (please note that the patch from #2700693: [meta] Make MigratePluginManager::getDefinitions() work cleanly with migrate_drupal enabled was applied, so a RequirementsException is raised instead of a ConnectionNotDefinedException, but the issue is fundamentally the same).
Comment #3
hongpong commented+1 also having this problem. Hmm..
Comment #4
hongpong commentedInterestingly I got a major chunk of my WP import to actually work.
Applied this patch: https://www.drupal.org/files/issues/2830036-28.patch in #2830036: MigrationPluginManager::getDefinitions() blows up in node derivers. That got past the previous error.
I could see the import was primed to go. Not sure where to start it. Went over to drush.
This should be caught better:
Then this:
I open the Content admin page and to my surprise all the blog posts are in. But the post categories have become gibberish like
bochahichiuarostuvakochohunonafruclatruhoji , brekoslesachipichadrutorastowrojodrocruuovacrushutakiburamahap etc. Impressive.
Surprised I got this far considering #2573241: Support adding migrations through the UI is a thing.
At /admin/structure/migrate/manage/my_wordpress_blog/migrations I get :
Migration / machine name / status / total / imported / unprocessed:
Import from WordPress XML blog_wordpress_categories Idle 1 22 -21
So somehow a negative number is unprocessed. In my case I can just not import categories and find another way to set them. Pleasant to get this far and avoid that much data entry, but wow. I will reset my imports and take another spin at it. Interesting stuff, probably almost close enough for our purposes.
Comment #5
berliner commentedWorkaround as described in http://drupal.stackexchange.com/a/227732/8881 is working for me:
Comment #6
splash112 commentedIs this still current or can be marked as fixed? Seems to work fine (with migrate_tools 4.x dev) on my setup.
Comment #7
hongpong commentedYes I believe the upstream issue about nonexistent databases was resolved thanks splash112. If anyone runs into this again please reopen.