In my site I have not enabled the modules blog and forum.
When view /admin/reports/fields, an error say:

Notice: Undefined index: comment_node_page en _field_ui_bundle_admin_path() (línea 325 de .../public_html/modules/field_ui/field_ui.module).
Notice: Undefined index: comment_node_page en field_ui_fields_list() (línea 35 de .../public_html/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: comment_node_forum en _field_ui_bundle_admin_path() (línea 325 de .../public_html/modules/field_ui/field_ui.module).
Notice: Undefined index: comment_node_forum en field_ui_fields_list() (línea 35 de .../public_html/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: comment_node_blog en _field_ui_bundle_admin_path() (línea 325 de .../public_html/modules/field_ui/field_ui.module).
Notice: Undefined index: comment_node_blog en field_ui_fields_list() (línea 35 de .../public_html/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: forum en _field_ui_bundle_admin_path() (línea 325 de .../public_html/modules/field_ui/field_ui.module).
Notice: Undefined index: forum en field_ui_fields_list() (línea 35 de .../public_html/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: blog en _field_ui_bundle_admin_path() (línea 325 de .../public_html/modules/field_ui/field_ui.module).
Notice: Undefined index: blog en field_ui_fields_list() (línea 35 de .../public_html/modules/field_ui/field_ui.admin.inc).

If enable both modules, only first 2 lines repeat:

Notice: Undefined index: comment_node_page en _field_ui_bundle_admin_path() (línea 325 de .../public_html/modules/field_ui/field_ui.module).
Notice: Undefined index: comment_node_page en field_ui_fields_list() (línea 35 de ..../public_html/modules/field_ui/field_ui.admin.inc).

If disable, all errors repeat, even without uninstalling the modules.

?

Thank you.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dpovshed’s picture

Hello Juan,

is this issue still actual with recent Drupal version?

I cannot reproduce this with 7.22

Cheers, Dennis

voger’s picture

Version: 7.19 » 7.22

I have this issue in drupal 7.22. I don't see it otherwise affecting the functionality of the site. I have installed Drupal to follow tutorials so I can learn it so maybe there is something I did wrong.

liuba’s picture

Status: Active » Needs review
FileSize
2.87 KB

This bug happens if blog or forum or other bundles initially were enabled and then disabled. Here is the patch that fixes the issue..

Status: Needs review » Needs work

The last submitted patch, field-ui-undefined-index-notice-1898110-3.patch, failed testing.

liuba’s picture

Status: Needs work » Needs review
dpovshed’s picture

Hi @liuba,

how about to use construction like

if (!isset($bundles[$entity_type][$bundle])) {
  continue;
}

instead of adding another nesting level?

liuba’s picture

Hello denikin,

here it is a patch with the refinement suggested...

wooody’s picture

Thank you liuba ,, #3 fixed my problem after upgrade from D6 to D7

dpovshed’s picture

#7 looks good and functional for me!

apaderno’s picture

Version: 7.22 » 7.x-dev

Bugs are always fixed in the development snapshot.

apaderno’s picture

jzornig’s picture

#7 Works for me D7.23.

dpovshed’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @jzornig for another positive feedback, so I can mark it as RTBC.

sage2046’s picture

thanks, it works

sage2046’s picture

Edit. sorry guys, when i click Permission Tab, all those errors appear again. but no errors when i am on the field list tab

David_Rothstein’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (duplicate)
Salif’s picture

Still exist in drupal 7.26 with commerce kickstart 7x-2.13

Notice: Undefined index: product in _field_ui_bundle_admin_path() (line 325 of /home/.../public_html/modules/field_ui/field_ui.module).
Notice: Undefined index: product in field_ui_fields_list() (line 35 of /home/.../public_html/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: product in _field_ui_bundle_admin_path() (line 325 of /home/.../public_html/modules/field_ui/field_ui.module).
Notice: Undefined index: product in field_ui_fields_list() (line 35 of /home/.../public_html/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: product in _field_ui_bundle_admin_path() (line 325 of /home/.../public_html/modules/field_ui/field_ui.module).
Notice: Undefined index: product in field_ui_fields_list() (line 35 of /home/.../public_html/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: message_type in _field_ui_bundle_admin_path() (line 325 of /.../savabien/public_html/modules/field_ui/field_ui.module).
Notice: Undefined index: message_type in field_ui_fields_list() (line 35 of /home/savabien/public_html/modules/field_ui/field_ui.admin.inc).

andrea.cavattoni’s picture

I'm having the same issue, and i cant fix it.

andrea.cavattoni’s picture

I've solved updating memcached and cleaning out his cache.

JimJS’s picture

I was getteing two notices one with "in _field_ui_bundle_admin_path()" and another with "field_ui_field_list()". I uninstalled the message module and the notices went away.

esod’s picture

I'm getting these notices too. I think it's because I had blog.module enabled and then I disabled it when I made the blog for my site another way. However, the row with type blog was not deleted from the node_type table. I assume similar entries about 'blog' were not deleted in other tables too. Anyway, enabling blog.module eliminates the notices immediately although now I have an unwanted content type.

Hacking core is not an option since I use Pantheon for hosting.

Shane Birley’s picture

I am getting this very same thing with Drupal Commerce. How do we correct this issue properly?