Hello,

I'm attempting to upgrade a D7 site to D8 and when running from Drush (drush migrate-upgrade) or the UI /upgrade I'm getting:

"The d6_field_group plugin must define the source_module property."

Not sure where/how to define this, but I assume it may be a bug with the latest release of D8 with migrating. I'm using Drupal 8.5.0 and Field Group 8.x-3.0-beta1. I also tried with 8.x-3.x-dev and get same result.

Thanks for any help!

- Joseph

Comments

Anonymous’s picture

josephgut created an issue. See original summary.

Anonymous’s picture

Issue summary: View changes
Anonymous’s picture

Priority: Normal » Major
Anonymous’s picture

Issue summary: View changes
Anonymous’s picture

Issue summary: View changes
Anonymous’s picture

Component: Miscellaneous » Code
nebel54’s picture

Version: 8.x-3.0-beta1 » 8.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new1.31 KB

The reason is the change in the migrate api described here: https://www.drupal.org/node/2911881

I added a patch to address this issue.

ronaldmulero’s picture

Works to remove the error.
Drupal 8.5.0
Field Group 8.x-3.0-beta1

rovo’s picture

I was having the same issue, Drupal 8.5.0. Patch in #7 resolved it for me.
Thank you.

ethomas08’s picture

The patch in #7 also worked for me. Thank you so much for identifying it so quickly!

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, that's a quickfix

nchase’s picture

the patch in 7 against latest dev doesn't change a thing.

jon pollard’s picture

Having the same problem - "Resolve all issues below to continue the upgrade. The d7_field_group plugin must define the source_module property."

The patch changes lines in a comment - how can that fix it???! :o)

nebel54’s picture

@Jon Pollard, thats because this comment is an annoation. That means, that this is actual metadata that the plugin-system reads and interpretes. For more details see: https://www.drupal.org/docs/8/api/plugin-api/annotations-based-plugins

jon pollard’s picture

Thanks @Nebel 54 - that's an unusual use of comments! But hey, who am I to question how these things work?

Has something changed since the patch rolled against 8.x-3.x to stop this working? My d8 site that I'm trying to migrate to is 8.5.4, should I be using 8.6? Would that help?

Jude P’s picture

Issue tags: -migrate migrate-upgrade +migrate D6 migrate-upgrade

@Nebel54
Excuse me my understanding of programming is really basic maybe I should not go into this D6-D8 migration thing... :-/ it's supposed to save me time - I have like 500 articles in the site I'm trying to upgrade.
I've tried to apply the patch#7 but still get the error mentioned above.
Drupal 8.5.4
Field Group 8.x-3.0-beta1
PHP 7.0.30

In modules / field_group / contrib / field_group_migrate / src / Plugin / migrate / source / d6 / FieldGroup.php
I've not uncommented and simply replaced

/**
* Drupal 6 field_group source.
*
* @MigrateSource(
* id = "d6_field_group"
* )
*/

WITH

/**Drupal 6 field_group source.
*
* @MigrateSource(
* id = "d6_field_group",
* source_module = "field_group",
* destination_module = "field_group"
* )
*/

is that it...?

Thanks for your understanding & time

  • zuuperman committed daa070a on 8.x-3.x authored by Nebel54
    Issue #2951335 by Nebel54, josephgut, rovo, ethomas08, joelpittet,...
nils.destoop’s picture

Status: Reviewed & tested by the community » Fixed

Thx for the patch + reviewing it. I have no errors, so committed to dev

Jude P’s picture

@zuuperman does the community consider the patch fixed the problem for good ?
I can't mp anyone here... clueless

nebel54’s picture

@Jude P: Yes that should be enough. Did you clear the caches with drush cr after applying the patch?

Jude P’s picture

@Nebel54 thanks yes I did ! I cleared the cache through PHPMyAdmin (Truncate command) - apparently it should do the trick...but it doesn't. Still the same error message

Jude P’s picture

@Nebel54 I don't use Drush I've cleared the cache through PHPMyAdmin (Truncate all cache_ tables), also tried updating the database (/update.php) like I read somewhere. is it not enough ?

Jude P’s picture

@Nebel54 sorry to bother you, I've posted in the forum but no one cares.. I've tried rebuilding the cache in nearly every possible way and the error remains...

Sorting this out would probably save me a lot of time. Provided someone helps.

Status: Fixed » Closed (fixed)

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

edysmp’s picture

I am fixing something of this on this issue

fortunamj’s picture

Trying to install this patch gets me - the "error: contrib/field_group_migrate/src/Plugin/migrate/source/d6/FieldGroup.php: No such file or directory"

I don't have Field Group in D6, so I'm a little confused how this patch is supposed to help migrate it?

drupal-ramesh’s picture

After applying patch #7 still, I am still getting an error "The d6_field_group plugin must define the source_module property".

I am migrating content from Drupal 7.61 to Drupal 8.64. This patch not worked for me.

rewted’s picture

Issue of "The d6_field_group plugin must define the source_module property." Remains in Drupal 8.6.9.

sebastix’s picture

My installation:
Drupal 8.6.9
Field group 8.3.x-dev

Patch in issue #3002645 as stated by @edysmp fixed this error