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:
- Start with a clean D8 install
- Download and enable Migrate Tools, Migrate Plus, and Migrate Example (included in Migrate Plus)
- Navigate to /admin/structure/migrate
- Notice error.
Proposed resolution
Change line 50 of src/Controller/MigrationGroupListBuilder.php from
$row['label'] = $this->label();
to
$row['machine_name'] = $entity->id();
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fatal_error_undefined-2661440-2.patch | 1.06 KB | draenen |
Comments
Comment #2
draenen commentedPatch attached.
Comment #3
draenen commentedComment #4
heykarthikwithuWas able to reproduce the bug, but was having WSOD.
by having
$row['machine_name'] = $entity->id();inbuildRow(EntityInterface $entity), resolves the WSOD.Tested it, works fine.
Comment #6
mikeryanCommitted, thanks!