I have got this message after enabling "Clientside Validation" module.

Here enclosed a screen capture of the complete message.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ng.ahchi’s picture

Same error here when I create a new product variation type.

Yazzbe’s picture

Same error here when creating a new content type

ahaomar’s picture

I am getting same issue. is any patch up to now ? please guide me

realskorpion’s picture

Same issue here, we need a fix/patch

thanks

jawad.shah’s picture

I'm also facing this issue, while adding fields in content type :-(

zeropoint.IT

realskorpion’s picture

Probably this bug is related to this one: http://drupal.org/node/949604
There's a patch here: http://drupal.org/node/1914286#comment-7055150.
I haven't tested it yet.
Please confirm if that solves the issue.

Thanks

oana.hulpoi’s picture

Indeed, the error appears on a new content type creation, but the patch http://drupal.org/node/1914286#comment-7055150 doesn't fix the current error. The problem was in hook_field_update_instance function, when adding new fields on content type.

I think that the current error is raised because of the comment_body (from comment entity type) which doesn't have a widget type.
And we are trying to access an uninitialized variable here ($object['widget']):

function link_i18n_string_list_field_alter(&$strings, $type = NULL, $object = NULL) {
	drupal_set_message(print_r($object, true));
  if ($type == 'field_instance' && $object && $object['widget']['type'] == 'link_field') {
    if (isset($object['settings']['title_value'])) {
      $strings['field'][$object['field_name']][$object['bundle']]['title_value']['string'] = $object['settings']['title_value'];
    }
  }
}
jsacksick’s picture

Status: Active » Needs review
FileSize
790 bytes

The attached patch fixes the issue.

jsacksick’s picture

This patch adds the title_value check at the same level.

Gyver06’s picture

Thank you for this #9 patch, it seems to work. I'll confirm that later after some more testing.

malberts’s picture

I got the following error messages:

Notice: Undefined variable: instance in link_i18n_string_list_field_alter() (line 1316 of ...
Notice: Undefined index: type in link_i18n_string_list_field_alter() (line 1317 of ...

The patch in #9 fixes/removes those messages.

mettam’s picture

The patch in #9 seems to work for me. I've not had that error pop up again.

hswong3i’s picture

Status: Needs review » Reviewed & tested by the community

#9 also works for me, which I had already apply it to DruStack as reference from Commerce Kickstart.

jcfiala’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Merged into 7.x-1.x.

Please give 7.x-1.x-dev a try in a day or so.

mgifford’s picture

Any ETA on the next release?

eiriksm’s picture

word ^^

jasom’s picture

#9 made error to disappear.

nicodv’s picture

#9 fixed it for me too. Thanks much.

:)