After upgrading from 7.8 to 7.9, I am consistently but randomly getting Notice: undefined index errors. When it happens, it happens immediately after creating a new content type and trying to add a new field. Here are examples:

Notice: Undefined index: comment_node_panel in _field_ui_bundle_admin_path() (line 320 of /modules/field_ui/field_ui.module)

Notice: Undefined index: promotion in _field_ui_bundle_admin_path() (line 320 of /modules/field_ui/field_ui.module).

Other people are having similar issues: http://drupal.org/node/1304664, http://drupal.org/node/1334522

In my experience, it has nothing to do with these posts. Clearing cache does not help. However, if I disable a module, any module, and then reenable it, this seems to fix the issue. Marked as 'major' since, once this error starts happening, I cannot add or edit any field components.

Thanks for the help!

Comments

xjm’s picture

Category: bug » support
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Hi @Gastonia,

There is a good chance this issue is being caused by a bug in some contributed module. Here are some things that would help sort out the issue:

  1. Try to identify when, exactly, you get these error messages (list steps to reproduce).
  2. Provide a backtrace for the error message. (The devel module can be configured to display backtraces.)
  3. Try to determine what module might be causing the problem. If it does not become clear from the backtrace, you can try following those steps with some modules disabled, until you determine which might be the cause. If you do determine which module is causing the problem, I'd suggest moving this issue to that module's queue.

Thanks!

njcheng’s picture

Just wanted to add some related threads with reports of the same error message in hopes that it helps maintainers figure out where the real problem lies. It seems to be affecting many modules in many contexts when a content or field is deleted:

http://drupal.org/node/1304664
http://drupal.org/node/1334522
http://drupal.org/node/686938
http://drupal.org/node/1351506
http://drupal.org/node/1332872
http://drupal.org/node/1327038

pfrenssen’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing this as there has not been a response for a long time. If this is still relevant please reopen the issue, but first check if your problem was perhaps solved in any of the issue linked above in #2.

Hetta’s picture

Patch # 13 in this https://drupal.org/node/1351506#comment-7119128 removed the warnings for a 7.23 install.

Alan D.’s picture

Status: Closed (cannot reproduce) » Closed (duplicate)