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'];
}
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | localhost.png | 94.6 KB | lyricnz |
| field_list.png | 30.45 KB | aspilicious |
Comments
Comment #1
aspilicious commentedFixed
Comment #2
lyricnz commentedI get the same error. The code in question is the last line of:
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")
Comment #3
lyricnz commentedaspilicious 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.
Comment #4
yched commentedGot 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.