Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Notice: Undefined index: "some your type content" in function _field_ui_bundle_admin_path() (line: 320 in ... modules/field_ui/field_ui.module)
Cant find right $bundle_name in array $bundles on this line:
$bundle_info = $bundles[$bundle_name];
Comments
Comment #1
patrickd CreditAttribution: patrickd commentedPlease give more information on how to reproduce this.
Comment #2
matthewv789 CreditAttribution: matthewv789 commentedI am getting this too, using D 7.9. I tried to add a new content type, and it gave this when I tried to edit its fields (and maybe when I first saved the content type? I can't remember).
I am also using Display Suite, and when I went to the display settings for the content type and added a default Display Suite layout (1-column or whatever, sort of like a mini Panel setting within the content region - in DS, the default is none, which means there's no place to display any fields), the error went away.
Comment #3
njcheng CreditAttribution: njcheng commentedJust 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/1327038
http://drupal.org/node/1357792
Comment #4
onegenius CreditAttribution: onegenius commentedI am having the same problem. How to reproduce? basically install ubercart version 7.x-dev and uninstall it. Afterwards goto admin -> report -> fields
And you will see the error messages. Basically occurs when certain fields are not properly uninstalled.
This becomes a critical error when you enable the filed permissions module - it kills the add/edit content page.
$bundle_info = $bundles[$bundle_name];
Change that line to
$bundle_info = !empty($bundles[$bundle_name]) ? $bundles[$bundle_name] : array();
Comment #5
Refineo CreditAttribution: Refineo commentedIssue Summary
User gets error notices:
Steps to reproduce this issue
1. Execute SQL command:
2.Clear cache
3.Go to /admin/reports/fields
Cause
This is probably caused by an incomplete uninstall and leaving orphaned entries in table {field_config_instance}.
Temporary Solution
I can find orpahed entries using SQL command:
SELECT * FROM `field_config_instance` as a WHERE bundle LIKE <undefined_index_name_here>;
Removing of the table entry found above and clearing the cache removed the notice messages for me.
Environment
Drupal 7.12
Comment #6
Refineo CreditAttribution: Refineo commentedWhat needs review:
I personally don't think such database inconsistencies caused by direct sql database manipulations or non-clean uninstall of contributed modules be handled in Core.
Should #5 be enough to close this issue as won't fix ?
Should users fill a new issue for each module causing these notices ? If so, how will users know which module to blame ?
Comment #7
Alan D. CreditAttribution: Alan D. commentedMarked as duplicate of #1351506: Disabling or uninstalling a node-type module (e.g. Forum), or removing a node type, results in "undefined index" notices that actually has a patch to review :)