After upgrading from 6.0.2 to 6.0.4

Created on 5 September 2024, 3 months ago
Updated 16 September 2024, 2 months ago

Problem/Motivation

Hi,

After upgrading from 6.0.2 to 6.0.4 "drush migrate:status" and other migrate commands gives this error:

PHP Fatal error:  Declaration of Drupal\migrations\Plugin\migrate_plus\data_parser\LocationsJson::getSourceData($url): array must be compatible with Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Json::getSourceData(string $url, string|int $item_selector = '') in /var/www/html/site/web/modules/custom/migrations/src/Plugin/migrate_plus/data_parser/LocationsJson.php on line 20
 [warning] Drush command terminated abnormally.

I am on Drupal 10.3
latest drush and php8.3

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

6.0

Component

Miscellaneous

Created by

🇫🇮Finland anaconda777

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

Comments & Activities

  • Issue created by @anaconda777
  • 🇨🇷Costa Rica VikSabo

    The method getSourceData has a new signature, you need to update your custom module to make it compatible, i.e:
    getSourceData($url, string|int $item_selector = '' )

Production build 0.71.5 2024