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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Grimreaper created an issue. See original summary.

Grimreaper’s picture

Status: Active » Needs review
FileSize
1.42 KB

Here is the patch.

Thanks for the review.

Grimreaper’s picture

Status: Needs review » Needs work

Sorry I still have the problem with the patch.

I will roll back to the previous version.

heddn’s picture

@Grimreaper, what version of PHP are you running?

Grimreaper’s picture

Hello,

@heddn: I am on PHP 7.0.10

brooke_heaton’s picture

I'm getting the same error on PHP 5.6.25

migrate_source_csv 8.x-2.0-beta1 is working for me.

heddn’s picture

Found the bug. https://github.com/doctrine/common/issues/744. Working on tests and a fix.

heddn’s picture

Status: Needs work » Needs review
FileSize
12.17 KB

Status: Needs review » Needs work

The last submitted patch, 8: fatal_error_plugin_csv-2818891-8.patch, failed testing.

brooke_heaton’s picture

Status: Needs work » Reviewed & tested by the community

#8 worked for me! Thanks for the quick find and fix heddn

heddn’s picture

Let's see if this comes back green from the testbot.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 11: fatal_error_plugin_csv-2818891-10.patch, failed testing.

heddn’s picture

FileSize
11.69 KB
322 bytes
heddn’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 13: fatal_error_plugin_csv-2818891-13.patch, failed testing.

heddn’s picture

Status: Needs work » Needs review
FileSize
11.7 KB
369 bytes

Let's make runtests happy, shall we?

  • heddn committed 060fac2 on 8.x-2.x
    Issue #2818891 by heddn, Grimreaper: Fatal error: plugin csv not found
    
heddn’s picture

Status: Needs review » Fixed
Grimreaper’s picture

Hello,

Thanks heddn, it works very well.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.