I am working on D6->D8 migration. We initially stared the site out using the [drupal-project](https://github.com/drupal-composer/drupal-project template), and I had my migration working. However, the site is hosted on Acquia, and Acquia requires a different file structure, so to get started, I spun up a D8 site on the Acquia free tier, and cloned that repo to my local. I got all my contrib modules and themes installed via Composer, and installed our custom modules, including my migration module. However, I am unable to bring up my site or even run a drush command (including trying to uninstall/install my migration module) because I get the following error:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "migration" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 133 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).

I have removed the migration configuration records from the config table and run a cache rebuild, but to no avail. I've also tried to run the drush migrate-upgrade --configure-only command, but I get this error:

Argument 3 passed to migrate_plus_migrate_prepare_row() must be an instance of Drupal\migrate\Entity\MigrationInterface, instance of    [error]
Drupal\migrate\Plugin\Migration given migrate_plus.module:66

How do I get around this?



The proof is in your last error message, it was expecting an Entity but it is now getting a Plugin. Migrate changed from using Config Entities to Plugins in Drupal 8.1.x so I'm presuming you've somehow triggered an upgrade.

See the change record: https://www.drupal.org/node/2668742

  • I am using core 8.2.4, which uses plugins, and my code was written with the same code, which is using plugins. – wonder95 Jan 17 '17 at 16:06
  • Turns out that @benjy was correct. The composer.json I was using was installed the 8.1.* versions of the migrate_* modules, and the 8.3.x versions are required for core 8.2.x because of the change from entities to plugins. – wonder95 Jan 17 '17 at 20:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.