Here are the notice I have in my logs:

Emplacement http://toto.com/admin/structure/types/manage/pays/comment/fields?render=...
Référent http://toto.com/content/france
Message Notice : Undefined index: comment_node_pays dans _field_ui_bundle_admin_path() (ligne 325 dans /var/www/toto.com/modules/field_ui/field_ui.module).

CommentFileSizeAuthor
#3 Correct stack trace.png126.4 KBReg
#2 Stack trace.png68 bytesReg
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

star-szr’s picture

Status: Active » Postponed (maintainer needs more info)

Did you try clearing your cache? It sounds a bit like Field UI was looking for a field that was no longer there.

If you can provide the steps to reproduce this error from a clean install that would be very helpful.

Reg’s picture

FileSize
68 bytes

I get this every time I create a new content type even with no 3rd part modules on the latest version, 7.21 .

To reproduce, create a new content type and this is with all cache turned off.

I can offer a little more information as as I have a stack trace which I'm attaching as a graphic.

Somehow I uploaded the wrong screen shot. Please ignore and use the one in the following comment.

Reg’s picture

FileSize
126.4 KB

Correct screen shot.

Edgar Saumell’s picture

Version: 7.12 » 7.22
Status: Postponed (maintainer needs more info) » Active

I did a clean install of 7.22

Steps to repeat:

  1. Install fresh Drupal 7 site
  2. Enable blog module
  3. Disable blog module
  4. Go to Reports->Field list. These notices are listed:

    Notice: Undefined index: comment_node_blog in _field_ui_bundle_admin_path() (line 325 of /Applications/MAMP/htdocs/test/modules/field_ui/field_ui.module).
    Notice: Undefined index: comment_node_blog in field_ui_fields_list() (line 35 of /Applications/MAMP/htdocs/test/modules/field_ui/field_ui.admin.inc).
    Notice: Undefined index: blog in _field_ui_bundle_admin_path() (line 325 of /Applications/MAMP/htdocs/test/modules/field_ui/field_ui.module).
    Notice: Undefined index: blog in field_ui_fields_list() (line 35 of /Applications/MAMP/htdocs/test/modules/field_ui/field_ui.admin.inc).

  5. Enable blog module
  6. Go to Reports->Field list. All notices are gone.

Clearing caches does not solve it.

Doing a search of '_field_ui_bundle_admin_path' on d.o. gives a lot of related issues. This one (same problem with forum module) has some patches: #1351506: Disabling or uninstalling a node-type module (e.g. Forum), or removing a node type, results in "undefined index" notices and a workaround https://drupal.org/node/1351506#comment-5428118

In my case I got rid of this notices running delete from field_config_instance where bundle = 'blog' || bundle = 'comment_node_blog'; on the database and then clearing caches.

Version: 7.22 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

apaderno’s picture

Issue summary: View changes
Issue tags: +Needs issue summary update
apaderno’s picture

Status: Active » Needs work

(The correct status is probably this one, since the issue summary needs to be updated.)