This site is a static archive of Process Arts, an open online repository of arts learning resources that was active from 2009 - 2017

Error Notice on drupal 7: Undefined index: module in _field_info_prepare_instance_widget()

I have this warning that keeps showing up on my drupal 7 install - Notice: Undefined index: module in _field_info_prepare_instance_widget() (line 386 of /home1/stockwel/public_html/stockwellstudios/modules/field/

I will give this fix ago and see what happens:

While working on a fresh install of the latest Commons-7.x-3.x-dev version and adding in additional modules, I'd get the same error with any/every scenario - from forgetting a dependency, to rollbacks and/or uninstalls. I came across a similar error report with filefield_paths (, and it prompted a look at the line#386 to see if the same type of fix could apply.

A change from:
$widget['module'] = $widget_type['module'];
$widget['module'] = isset($widget_type['module']) ? $widget_type['module'] : NULL;
seems to have quieted the notice messages.

Commons dev shows the Drupal base at 7.15, and this may have been discovered/fixed in the standard D7 core... so this is more informational for someone in a similar situation


No votes yet
7971 reads
Public Domain Mark 1.0
This Work, Error Notice on drupal 7: Undefined index: module in _field_info_prepare_instance_widget(), by cfollows, is free of known copyright restrictions.