Giter Club home page Giter Club logo

migrate_drupal7's People

Contributors

amool avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

migrate_drupal7's Issues

migrating nodes

did you manage to get your nodes migrated? I managed to migrate users, but nodes simply does happen nothing at all.

Call to a member function getLoadPlugin() on a non-object

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

Migration of multi-value fields is buggy.

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.