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.
Comment | File | Size | Author |
---|---|---|---|
#7 | field-ui-undefined-index-notice-1898110-7.patch | 1.27 KB | liuba |
#3 | field-ui-undefined-index-notice-1898110-3.patch | 2.87 KB | liuba |
Comments
Comment #1
dpovshed CreditAttribution: dpovshed commentedHello Juan,
is this issue still actual with recent Drupal version?
I cannot reproduce this with 7.22
Cheers, Dennis
Comment #2
voger CreditAttribution: voger commentedI 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.
Comment #3
liuba CreditAttribution: liuba commentedThis bug happens if blog or forum or other bundles initially were enabled and then disabled. Here is the patch that fixes the issue..
Comment #5
liuba CreditAttribution: liuba commented#3: field-ui-undefined-index-notice-1898110-3.patch queued for re-testing.
Comment #6
dpovshed CreditAttribution: dpovshed commentedHi @liuba,
how about to use construction like
instead of adding another nesting level?
Comment #7
liuba CreditAttribution: liuba commentedHello denikin,
here it is a patch with the refinement suggested...
Comment #8
wooody CreditAttribution: wooody commentedThank you liuba ,, #3 fixed my problem after upgrade from D6 to D7
Comment #9
dpovshed CreditAttribution: dpovshed commented#7 looks good and functional for me!
Comment #10
apadernoBugs are always fixed in the development snapshot.
Comment #11
apaderno#7: field-ui-undefined-index-notice-1898110-7.patch queued for re-testing.
Comment #12
jzornig CreditAttribution: jzornig commented#7 Works for me D7.23.
Comment #13
dpovshed CreditAttribution: dpovshed commentedThanks @jzornig for another positive feedback, so I can mark it as RTBC.
Comment #14
sage2046 CreditAttribution: sage2046 commentedthanks, it works
Comment #15
sage2046 CreditAttribution: sage2046 commentedEdit. sorry guys, when i click Permission Tab, all those errors appear again. but no errors when i am on the field list tab
Comment #16
David_Rothstein CreditAttribution: David_Rothstein commentedSee #1351506: Disabling or uninstalling a node-type module (e.g. Forum), or removing a node type, results in "undefined index" notices (that issue is older, and also has a patch that is further along).
Comment #17
Salif CreditAttribution: Salif commentedStill 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).
Comment #18
andrea.cavattoni CreditAttribution: andrea.cavattoni commentedI'm having the same issue, and i cant fix it.
Comment #19
andrea.cavattoni CreditAttribution: andrea.cavattoni commentedI've solved updating memcached and cleaning out his cache.
Comment #20
JimJS CreditAttribution: JimJS commentedI 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.
Comment #21
esod CreditAttribution: esod commentedI'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.
Comment #22
Shane Birley CreditAttribution: Shane Birley commentedI am getting this very same thing with Drupal Commerce. How do we correct this issue properly?