I have many mistakes on every page. The message is following:
Notice: Undefined index: module в FieldInfo->prepareInstanceWidget() (line 591 from /modules/field/field.info.class.inc).
The number of them is various. I don't know, what to do. the code at the line 591 is following:

 public function prepareInstanceWidget($widget, $field_type) {
    $field_type_info = field_info_field_types($field_type);

//requested line is
    $widget['module'] = $widget_type_info['module'];
//was requested line
    $widget['settings'] += field_info_widget_settings($widget['type']);

    return $widget;
  }

how can I solve it?

CommentFileSizeAuthor
#2 issue.PNG225.59 KBdiriy

Comments

diriy created an issue. See original summary.

diriy’s picture

StatusFileSize
new225.59 KB
benjbmc’s picture

I have the same issue with the last version 7.54 of Drupal. It seems that the field_info_widget_types() function just before does not return any "module" key, see hook_field_widget_info : https://api.drupal.org/api/drupal/modules%21field%21field.api.php/functi...

All we can do now is to hack the field core module, by adding the condition like below :

$widget['module'] = isset($widget_type['module']) ? $widget_type['module'] : NULL;

Still waiting for the right way to solve it !

lo3001’s picture

#3 is making issues when adding content

Version: 7.41 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.