TypeError: reset(): Argument #1 ($array) must be of type array, null given in reset() in DestinationBase

Created on 8 August 2022, almost 2 years ago
Updated 15 February 2024, 4 months ago

Problem/Motivation

Seems like DestinationBase::getDestinationModule assumes $this->migration->provider exists and is an array.

TypeError: reset(): Argument #1 ($array) must be of type array, null given in reset() (line 134 of core/modules/migrate/src/Plugin/migrate/destination/DestinationBase.php).

This is happening on plugin id entity:action from \Drupal\migrate\Plugin\migrate\destination\EntityConfigBase

Steps to reproduce

Drupal 7 to Drupal 9 migration through the UI on the upgrade/review path, TBD on more details

Proposed resolution

Remove the assumption and check if it's an array and/or find another way to determine provider

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Migration 

Last updated about 4 hours ago

Created by

🇨🇦Canada joelpittet Vancouver

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024