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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

phenaproxima created an issue. See original summary.

phenaproxima’s picture

Status: Active » Needs review
Issue tags: +Needs tests
FileSize
665 bytes

Initial patch.

phenaproxima’s picture

Now with a fail patch, a happy patch, and an interdiff. Boom!

The last submitted patch, 3: 2562089-3-FAIL.patch, failed testing.

neclimdul’s picture

Status: Needs review » Reviewed & tested by the community

looks good to me.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.0.x. Thanks!

  • webchick committed 1ce074c on 8.0.x
    Issue #2562089 by phenaproxima: d7_field_formatter_settings migration...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.