When visiting admin/reports/fields I'm receiving these notices:

Notice: Undefined index: comment_node_blog in _field_ui_bundle_admin_path() (line 325 of /Users/USERNAME/Sites/SITENAME/modules/field_ui/field_ui.module).
Notice: Undefined index: comment_node_blog in field_ui_fields_list() (line 35 of /Users/USERNAME/Sites/SITENAME/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: blog in _field_ui_bundle_admin_path() (line 325 of /Users/USERNAME/Sites/SITENAME/modules/field_ui/field_ui.module).
Notice: Undefined index: blog in field_ui_fields_list() (line 35 of /Users/USERNAME/Sites/SITENAME/modules/field_ui/field_ui.admin.inc).

UPDATE: I get this error in 7.14, not tested in the DEV (I forgot to adjust this field when posting this report...)

Comments

bartvdputte’s picture

Version: 7.x-dev » 7.14
hejazee’s picture

I have the same problem in Drupal 7.14

Maybe it's related to some damaged structures in database

Any idea?

hejazee’s picture

alan d.’s picture

Status: Active » Closed (duplicate)

Go as far to say this is a duplicate of that one. Assigned to field system as this is due to left overs in the database tables, reason / cause is unknown

kmkallen’s picture

Someone suggested this was because the "blog" module was disabled. I re enabled the module and the error alert disappeared.

sunchaser’s picture

Same here ...
Disabled Blog module
Created my own "Blog" content type and boom : error appeared.

I now removed "Blog" content type and created "MyBlog" content type instead, to not interfear with the default Blog content type

corbin’s picture

Version: 7.14 » 7.16

i have similar messages after an upgrade D6/D7 :

Notice : Undefined index: comment_node_image in _field_ui_bundle_admin_path() (ligne 325 dans /***/www/modules/field_ui/field_ui.module).
Notice : Undefined index: comment_node_image in field_ui_fields_list() (ligne 35 dans /***/www/modules/field_ui/field_ui.admin.inc).
Notice : Undefined index: image in _field_ui_bundle_admin_path() (ligne 325 dans /***/www/modules/field_ui/field_ui.module).
Notice : Undefined index: image in field_ui_fields_list() (ligne 35 dans /***/www/modules/field_ui/field_ui.admin.inc).

as the function in modules/field_ui/field_ui.module is
"function _field_ui_bundle_admin_path($entity_type, $bundle_name)"
, is it a problem of migration from $***_type to $entity_type ?

ANNEXE : i'm using two fields image : field_image and field_imagefield;
the last one comes from D6.
i wonder if these messages appeared when i try to :
- include field_image with alt and title in a view
- modify field_imagefield activating alt and title (disactivate don't suppress messages) or when i register it even without changing parameters.

about comment : former comments are in following tables :
. content_node_field_instance
. field_config_instance
. locales_source
. locales_target

their modification are made in :
. field_config_instance
. locales_source

no change on the two other

mgifford’s picture

Getting these errors in eng/admin/reports/fields

Notice: Undefined index: blog in _field_ui_bundle_admin_path() (line 325 of /DRUPAL7/modules/field_ui/field_ui.module).
Notice: Undefined index: blog in field_ui_fields_list() (line 35 of /DRUPAL7/modules/field_ui/field_ui.admin.inc).

This was repeated 13X on the page.

mgifford’s picture

Issue summary: View changes

updated version

DrCord’s picture

Issue summary: View changes

I was able to resolve these messages by going directly into the database in table drupal_field_config_instance and removing the fields that should not be there, they were installed by a module and left when it was uninstalled. You can match the error "undefined index" to the column "bundle" to find the rows to delete and then manually deleted them. I used this query (change placeholder) to find them:

SELECT * FROM cjpDrupal.drupal_field_config_instance where bundle = "<undefinedIndexBundle>";

t.a. barnhart’s picture

i had the same error. went into the db & removed the table for multifield, which should have been gone when i got rid of the module. so far, seems to have worked.

mskicker’s picture

active devel
past this in line 335 and see where is problem

if(!isset($bundles[$bundle_name])){
dpm($entity_type);
}
and fix it in config table manually