Please see the patch attached.

We are dealing with fields that have been migrated from d5 to d7 and we were getting 'Fatal error: Unsupported operand types' for the statement:
$display['settings'] += field_info_formatter_settings($display['type']);

After applying the patch our problem got fixed. I wonder whether this issues is related with migration or actual core issue!

CommentFileSizeAuthor
field.info.inc_.patch529 bytesjunaidpv

Comments

pounard’s picture

Project: Core Library » Drupal core
Version: 7.x-1.0-beta9 » 7.10
Component: Code » field system
Category: support » bug
Status: Active » Postponed (maintainer needs more info)

Except this is not for this module, wrong issue queue, I'm routing the issue to core. I don't know for which version to tag, so I put it in 7.10, I hope someone will triage this issue. I'm putting in postponed hoping that you will restore the right version number yourself or confirm the bug.

junaidpv’s picture

Yes you are right, it is 7.10 drupal version. I might have been in hurry.

webchick’s picture

Status: Postponed (maintainer needs more info) » Needs review

Marking needs review, since there's a patch.

suresh7787’s picture

field.info.inc_.patch queued for re-testing.

dddave’s picture

Version: 7.10 » 7.x-dev
Status: Needs review » Needs work

Setting against dev and to needs work as a lot has happened in the meantime.

sinasalek’s picture

Issue summary: View changes

Just tried the patch and it fixed my problem

nareshbw’s picture

This patch is working for me too.

Status: Needs work » Needs review

cilefen queued field.info.inc_.patch for re-testing.

cilefen’s picture

@nareshbw Would you like to offer a review so this could be committed?

Status: Needs review » Needs work

The last submitted patch, field.info.inc_.patch, failed testing.

sinasalek’s picture

Status: Needs work » Fixed

This issue is resolved in the latest Drupal. here is the new core code: i'm marking this as fixed

function field_info_formatter_settings($type) {
  $info = field_info_formatter_types($type);
  return isset($info['settings']) ? $info['settings'] : array();
}

Status: Fixed » Closed (fixed)

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