An error in the redirect module leads to the following warnings/notices on enabling the redirect module:

* Notice: Undefined index: fieldable in field_group_menu() (regel 48 van D:\Projecten\Drupal7\single-nl\sites\all\modules\field_group\field_group.module).
* Notice: Undefined index: fieldable in field_ui_menu() (regel 72 van D:\Projecten\Drupal7\single-nl\modules\field_ui\field_ui.module).

On debugging I found the following code to assume an entry ''taxonomy_term' will exist in the $info array:

file: redirect.module

/**
 * Implements hook_entity_info_alter().
 */
function redirect_entity_info_alter(&$info) {
  $info['node']['default path'] = 'node/[id]';
  $info['taxonomy_term']['default path'] = 'taxonomy/term/[id]';
  $info['user']['default path'] = 'user/[id]';
}

However, if the taxonomy module is not enabled, this entry will not exist, leading to the creation of an otherwise empty entity_info element, in turn leading to the given notices. So a check on existence of this element is appropriate.

CommentFileSizeAuthor
ScreenHunter_017.jpg29.5 KBfietserwin

Comments

dave reid’s picture

Assigned: Unassigned » dave reid

Ah good find. Fixing now...

dave reid’s picture

Status: Active » Fixed

Fixed with http://drupal.org/cvs?commit=474596 in CVS. Thanks for reporting!

Status: Fixed » Closed (fixed)

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