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.
Problem/Motivation
The d7_field_formatter_settings migration does not sanitize the formatter settings coming from the source database. At the very least, it needs to be an array before the formatter settings are saved, but occasionally the settings are NULL in the source database, and this gets passed through to the destination plugin, causing an "unsupported operand types" fatal.
Proposed Resolution
Use the field_formatter_default_settings process plugin, which normalizes the formatter settings before they're saved.
Remaining Tasks
Patch, review, commit.
API/UI Changes
None.
Comment | File | Size | Author |
---|---|---|---|
#3 | interdiff-2562089-3.txt | 509 bytes | phenaproxima |
#3 | 2562089-3.patch | 3.43 KB | phenaproxima |
#3 | 2562089-3-FAIL.patch | 2.77 KB | phenaproxima |
#2 | 2562089-2.patch | 665 bytes | phenaproxima |
Comments
Comment #2
phenaproximaInitial patch.
Comment #3
phenaproximaNow with a fail patch, a happy patch, and an interdiff. Boom!
Comment #5
neclimdullooks good to me.
Comment #6
webchickCommitted and pushed to 8.0.x. Thanks!