Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
MigrateItemJSON::clean() constructItemUrl count() on a variable that may not be an array. In PHP 7.2 this generates a exception with the following text:
Migration for TestMigrateMigration failed with source plugin exception: count(): Parameter must be an array or an object that implements Countable
File contrib/migrate/plugins/sources/json.inc, line 157
Comment | File | Size | Author |
---|---|---|---|
#2 | 3027630-migrate-php72-count-2.patch | 525 bytes | xlin |
|
Comments
Comment #2
xlin CreditAttribution: xlin as a volunteer commentedPlease see attached patch.
Comment #3
xlin CreditAttribution: xlin as a volunteer commentedComment #4
brianfisher CreditAttribution: brianfisher at Chapter Three commented+1
Comment #5
pifagorComment #7
pifagorComment #9
joseph.olstadhttps://www.drupal.org/project/migrate/releases/7.x-2.12