Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello,
After updating to 8.x-2.0-rc1, I got the following fatal error:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "csv" plugin does not exist. in /project/www/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php:52 [error]
Stack trace:
#0 /project/www/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(25): Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition(Array, 'csv', true)
#1 /project/www/core/modules/migrate/src/Plugin/MigratePluginManager.php(54): Drupal\Core\Plugin\DefaultPluginManager->getDefinition('csv')
#2 /project/www/core/modules/migrate/src/Plugin/Migration.php(335): Drupal\migrate\Plugin\MigratePluginManager->createInstance('csv', Array, Object(Drupal\migrate\Plugin\Migration))
#3 /project/www/core/modules/migrate/src/Plugin/PluginEventSubscriber.php(30): Drupal\migrate\Plugin\Migration->getSourcePlugin()
#4 /project/www/core/modules/migrate/src/Plugin/PluginEventSubscriber.php(48): Drupal\migrate\Plugin\PluginEventSubscriber->invoke('preImport', Object(Drupal\migrate\Event\MigrateImportEvent), 'Drupal\\migrate\\...')
#5 [internal function]: Drupal\migrate\Plugin\PluginEventSubscriber->preImport(Object(Drupal\migrate\Event\MigrateImportEvent), 'migrate.pre_imp...', Object(Drupal\webprofiler\TraceableEventDispatcher))
#6 /project/www/vendor/symfony/event-dispatcher/Debug/WrappedListener.php(61): call_user_func(Array, Object(Drupal\migrate\Event\MigrateImportEvent), 'migrate.pre_imp...', Object(Drupal\webprofiler\TraceableEventDispatcher))
#7 /project/www/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(Object(Drupal\migrate\Event\MigrateImportEvent), 'migrate.pre_imp...',
Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#8 /project/www/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php(140): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('migrate.pre_imp...', Object(Drupal\migrate\Event\MigrateImportEvent))
#9 /project/www/core/modules/migrate/src/MigrateExecutable.php(180): Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('migrate.pre_imp...', Object(Drupal\migrate\Event\MigrateImportEvent))
#10 /project/www/vendor/drush/drush/includes/drush.inc(720): Drupal\migrate\MigrateExecutable->import()
#11 /project/www/vendor/drush/drush/includes/drush.inc(711): drush_call_user_func_array(Array, Array)
#12 /project/www/modules/contrib/migrate_tools/migrate_tools.drush.inc(280): drush_op(Array)
#13 [internal function]: _drush_migrate_tools_execute_migration(Object(Drupal\migrate\Plugin\Migration), 'drupalcampfr_fi...', Array)
#14 /project/www/modules/contrib/migrate_tools/migrate_tools.drush.inc(246): array_walk(Array, '_drush_migrate_...', Array)
#15 /project/www/vendor/drush/drush/includes/command.inc(371): drush_migrate_tools_migrate_import('drupalcampfr_fi...')
#16 /project/www/vendor/drush/drush/includes/command.inc(222): _drush_invoke_hooks(Array, Array)
#17 /project/www/vendor/drush/drush/includes/command.inc(190): drush_command('drupalcampfr_fi...')
#18 /project/www/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#19 /project/www/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#20 /project/www/vendor/drush/drush/drush.php(12): drush_main()
#21 {main}
I found a solution and will update a patch.
Comment | File | Size | Author |
---|---|---|---|
#16 | interdiff_13-16.txt | 369 bytes | heddn |
#16 | fatal_error_plugin_csv-2818891-16.patch | 11.7 KB | heddn |
Comments
Comment #2
GrimreaperHere is the patch.
Thanks for the review.
Comment #3
GrimreaperSorry I still have the problem with the patch.
I will roll back to the previous version.
Comment #4
heddn@Grimreaper, what version of PHP are you running?
Comment #5
GrimreaperHello,
@heddn: I am on PHP 7.0.10
Comment #6
brooke_heaton CreditAttribution: brooke_heaton commentedI'm getting the same error on PHP 5.6.25
migrate_source_csv 8.x-2.0-beta1 is working for me.
Comment #7
heddnFound the bug. https://github.com/doctrine/common/issues/744. Working on tests and a fix.
Comment #8
heddnComment #10
brooke_heaton CreditAttribution: brooke_heaton commented#8 worked for me! Thanks for the quick find and fix heddn
Comment #11
heddnLet's see if this comes back green from the testbot.
Comment #13
heddnComment #14
heddnComment #16
heddnLet's make runtests happy, shall we?
Comment #18
heddnComment #19
GrimreaperHello,
Thanks heddn, it works very well.