PHP error in drush

Created on 4 September 2023, 10 months ago
Updated 20 September 2023, 9 months ago

Problem/Motivation

I'm getting a rather obscure fatal PHP error when trying to run a migration for Drush, or even just running the "drush" command by itself:

[xxx@dev public_html]$ drush mim upgrade_d7_entityform_type --update
[warning] Undefined array key 1 Application.php:199
PHP Fatal error:  Type of Drupal\migrate_file_to_media\Generators\MediaMigrateGeneratorV1::$name must not be defined (as in class DrupalCodeGenerator\Command\BaseGenerator) in /path/to/modules/contrib/migrate_file_to_media/src/Generators/MediaMigrateGeneratorV1.php on line 0

Drush Commandline Tool 10.6.1
Drupal core 9.5.10
PHP 8.1.0

I'm not sure if it's a drush problem or a MFTM problem but thought I'd start here. One problem I'm having in troubleshooting is finding where the BaseGenerator class is defined. And of course it says the error is on line zero.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rclemings

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024