amool / migrate_drupal7 Goto Github PK
View Code? Open in Web Editor NEWIts a Drupal 8 module which uses Drupal 8 Migration API to migrate "content" (users, nodes along with fields) of drupalladder.org site from Drupal 7 to Drupal 8.
Its a Drupal 8 module which uses Drupal 8 Migration API to migrate "content" (users, nodes along with fields) of drupalladder.org site from Drupal 7 to Drupal 8.
did you manage to get your nodes migrated? I managed to migrate users, but nodes simply does happen nothing at all.
I'm trying this:
drush migrate-manifest modules/contrib/migrate_drupal7/config/install/
migrate.migration.d7_user.yml --legacy-db-url=mysql://DrupalAdminUser:[email protected]/DrupalDDBB
but I get:
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to a member function getLoadPlugin() on a non-object in
/www/drupal8/core/modules/migrate_drupal/src/MigrationStorage.php, line 73
Any idea?
thanks in advance.
PS: full log:
rray_flip(): Can only flip STRING and INTEGER values! EntityStorageBase.php:220 [warning]
PHP Fatal error: Call to a member function getLoadPlugin() on a non-object in /www/drupal8/core/modules/migrate_drupal/src/MigrationStorage.php on line 73
PHP Stack trace:
PHP 1. {main}() /opt/drush7/vendor/drush/drush/drush.php:0
PHP 2. drush_main() /opt/drush7/vendor/drush/drush/drush.php:16
PHP 3. Drush\Boot\DrupalBoot->bootstrap_and_dispatch() /opt/drush7/vendor/drush/drush/drush.php:76
PHP 4. drush_dispatch() /opt/drush7/vendor/drush/drush/lib/Drush/Boot/DrupalBoot.php:46
PHP 5. call_user_func_array:{/opt/drush7/vendor/drush/drush/includes/command.inc:178}() /opt/drush7/vendor/drush/drush/includes/command.inc:178
PHP 6. drush_command() /opt/drush7/vendor/drush/drush/includes/command.inc:178
PHP 7. _drush_invoke_hooks() /opt/drush7/vendor/drush/drush/includes/command.inc:210
PHP 8. call_user_func_array:{/opt/drush7/vendor/drush/drush/includes/command.inc:359}() /opt/drush7/vendor/drush/drush/includes/command.inc:359
PHP 9. drush_migrate_manifest() /opt/drush7/vendor/drush/drush/includes/command.inc:359
PHP 10. entity_load_multiple() /opt/drush7/vendor/drush/drush/commands/core/migrate.d8.drush.inc:48
PHP 11. Drupal\migrate_drupal\MigrationStorage->loadMultiple() /www/drupal8/core/includes/entity.inc:203
Fatal error: Call to a member function getLoadPlugin() on a non-object in /www/drupal8/core/modules/migrate_drupal/src/MigrationStorage.php on line 73
Call Stack:
0.0004 238800 1. {main}() /opt/drush7/vendor/drush/drush/drush.php:0
0.0285 290784 2. drush_main() /opt/drush7/vendor/drush/drush/drush.php:16
0.2887 2469480 3. Drush\Boot\DrupalBoot->bootstrap_and_dispatch() /opt/drush7/vendor/drush/drush/drush.php:76
1.0266 6020640 4. drush_dispatch() /opt/drush7/vendor/drush/drush/lib/Drush/Boot/DrupalBoot.php:46
1.3560 8205856 5. call_user_func_array:{/opt/drush7/vendor/drush/drush/includes/command.inc:178}() /opt/drush7/vendor/drush/drush/includes/command.inc:178
1.3560 8206344 6. drush_command() /opt/drush7/vendor/drush/drush/includes/command.inc:178
1.3567 8207512 7. _drush_invoke_hooks() /opt/drush7/vendor/drush/drush/includes/command.inc:210
1.3582 8242520 8. call_user_func_array:{/opt/drush7/vendor/drush/drush/includes/command.inc:359}() /opt/drush7/vendor/drush/drush/includes/command.inc:359
1.3582 8243040 9. drush_migrate_manifest() /opt/drush7/vendor/drush/drush/includes/command.inc:359
1.3720 8274032 10. entity_load_multiple() /opt/drush7/vendor/drush/drush/commands/core/migrate.d8.drush.inc:48
1.3811 8355688 11. Drupal\migrate_drupal\MigrationStorage->loadMultiple() /www/drupal8/core/includes/entity.inc:203
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to a member function getLoadPlugin() on a non-object in
/www/drupal8/core/modules/migrate_drupal/src/MigrationStorage.php, line 73
without migrating users if you migrate nodes, then the uid fields of nodes are getting messed up. Somehow make it a dependency
without migrating users if you migrate nodes, then the uid fields of nodes are getting messed up. Somehow make it a dependency
Currently only latest revision is being migrated. Also migrate all the revision content of nodes, body field & other fields.
Currently the fields are not migrated. Migrate them.
The innerJoin
that is used in Plugin/migrate/source/Node.php doesn't let migration of all the nodes. It only migrates the nodes which are in both node
table and field_data_body
. Which are only nodes of type page
The recent commit: 47781b3 which added support for migration of multiple values of field_lesson_drupal_version field is buggy. It is not migrating the multiple values. It is migrating only nodes whose field_lesson_drupal_version field has single values, for nodes which has multiple values for this field an error message is logged in migrate_message_d7_lesson table:
SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1: INSERT INTO {node__field_lesson_drupal_version} (entity_id, revision_id, bundle, delta, langcode, field_lesson_drupal_version_value) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5_0, :db_insert_placeholder_5_1, :db_insert_placeholder_5_2); Array
(
[:db_insert_placeholder_0] => 3
[:db_insert_placeholder_1] => 129
[:db_insert_placeholder_2] => lesson
[:db_insert_placeholder_3] => 0
[:db_insert_placeholder_4] => en
[:db_insert_placeholder_5_0] => 6
[:db_insert_placeholder_5_1] => 7
[:db_insert_placeholder_5_2] => 8
)
(H:\xampp\htdocs\d8.x-dev_test\core\lib\Drupal\Core\Entity\ContentEntityDatabaseStorage.php:681)
Right now roles for users are not migrated. Migrate them along with users.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.