1) go to reports
2) go to field list

I get these warnings (see attachment)

It's caused by the last line of this block of code. As I don't know enough about the core and php yet, I don't know how to fix this.

/**
 * Helper function to create the right administration path for a bundle.
 */
function _field_ui_bundle_admin_path($obj_type, $bundle_name) {
  $bundles = field_info_bundles($obj_type);
  $bundle_info = $bundles[$bundle_name];
  return isset($bundle_info['admin']['real path']) ? $bundle_info['admin']['real path'] : $bundle_info['admin']['path'];
}
CommentFileSizeAuthor
#2 localhost.png94.6 KBlyricnz
field_list.png30.45 KBaspilicious

Comments

aspilicious’s picture

Status: Active » Fixed

Fixed

lyricnz’s picture

Status: Fixed » Active
StatusFileSize
new94.6 KB

I get the same error. The code in question is the last line of:

function _field_ui_bundle_admin_path($obj_type, $bundle_name) {
  $bundles = field_info_bundles($obj_type);
  $bundle_info = $bundles[$bundle_name];
  return isset($bundle_info['admin']['real path']) ? $bundle_info['admin']['real path'] : $bundle_info['admin']['path'];
}

It looks like $bundle_info doesn't contain 'admin' when $bundle_name is one of {comment_node_article, comment_node_page, comment_node_thingy} - on my site at least. (I have a custom content type called "thingy")

lyricnz’s picture

Status: Active » Fixed

aspilicious was probably referring to the activity at #537750: Field UI for comments, in particular his comment at #16

The patch in #13 there, and clearing cache *twice*, fixed this error for me, too.

yched’s picture

Status: Fixed » Closed (duplicate)

Got reported again in #686938: Undefined index: admin in _field_ui_bundle_admin_path(). We need to fix that even if comment eventually get their Field UI.

Posted a patch over there. Thus marking as duplicate.