Migrations are now plugins instead of config entities. This cause an issue with the migration.

AH01071: Got error 'PHP message: Recoverable fatal error: Argument 5 passed to Drupal\\google_analytics\\Plugin\\migrate\\process\\GoogleAnalyticsVisibilityPages::create() must be an instance of Drupal\\migrate\\Entity\\MigrationInterface, instance of Drupal\\migrate\\Plugin\\Migration given, called in /var/www/bbd8/web/core/modules/migrate/src/Plugin/MigratePluginManager.php on line 65 and defined in /var/www/bbd8/web/modules/contrib/google_analytics/src/Plugin/migrate/process/GoogleAnalyticsVisibilityPages.php on line 68\n', referer: http://example.dev/bbd8/web/batch?id=11&op=start

Comments

hussainweb created an issue. See original summary.

hussainweb’s picture

Status: Active » Needs review
Related issues: +#2625696: Make migrations themselves plugins instead of config entities
StatusFileSize
new1.42 KB

This patch fixes the error and allows migration to proceed. Maybe there should be a followup to change the templates as well. See the change record at https://www.drupal.org/node/2668742.

  • hass committed 6935769 on 8.x-2.x authored by hussainweb
    Issue #2691265 by hussainweb: Drupal Migrate Upgrade error
    
hass’s picture

Status: Needs review » Fixed
hass’s picture

Category: Bug report » Feature request

This is not a bug as the code worked in 8.0 and only 8.1 has broken it I guess.

hass’s picture

Also fixed Piwik.

hussainweb’s picture

Yes, migrations were changed to plugins in 8.1. Thanks for committing this.

Status: Fixed » Closed (fixed)

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