Problem/Motivation

Fatal error: Call to undefined method Drupal\migrate_tools\Controller\MigrationGroupListBuilder::label() in /assets/d8/releases/20160202195254/modules/migrate_tools/src/Controller/MigrationGroupListBuilder.php on line 50

Steps to reproduce:

  1. Start with a clean D8 install
  2. Download and enable Migrate Tools, Migrate Plus, and Migrate Example (included in Migrate Plus)
  3. Navigate to /admin/structure/migrate
  4. Notice error.

Proposed resolution

Change line 50 of src/Controller/MigrationGroupListBuilder.php from

    $row['label'] = $this->label();

to

   $row['machine_name'] = $entity->id();
CommentFileSizeAuthor
#2 fatal_error_undefined-2661440-2.patch1.06 KBdraenen
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

draenen created an issue. See original summary.

draenen’s picture

Status: Active » Needs review
FileSize
1.06 KB

Patch attached.

draenen’s picture

Assigned: draenen » Unassigned
heykarthikwithu’s picture

Status: Needs review » Reviewed & tested by the community

Was able to reproduce the bug, but was having WSOD.

by having $row['machine_name'] = $entity->id(); in buildRow(EntityInterface $entity), resolves the WSOD.

Tested it, works fine.

  • mikeryan committed 565cbe1 on authored by draenen
    Issue #2661440 by draenen: Fatal error: undefined function...
mikeryan’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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