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.
after clearing the cache I get the following notices:
Notice: Undefined index: fieldable in field_ui_menu() (Line 82 in /modules/field_ui/field_ui.module).
Notice: Undefined index: bundles in field_info_bundles() (Line 576 in /modules/field/field.info.inc).
(there are actually some more errors caused by this)
I can fix the first issue by change that line from:
if ($entity_info['fieldable']) {
to:
if (isset($entity_info['fieldable'])) {
furthermore I changed the second one from:
foreach ($info as $type => $entity_info) {
$bundles[$type] = $entity_info['bundles'];
}
to
foreach ($info as $type => $entity_info) {
if(isset($entity_info['bundles'])) {
$bundles[$type] = $entity_info['bundles'];
}
}
I have no idea what this is all about but these are my hotfixes.
Comments
Comment #1
loominade CreditAttribution: loominade commentedComment #2
vasikei can confirm this issue
Comment #3
leonharris CreditAttribution: leonharris commentedi have the first error but not the second;
error occurs when i clear my caches.
i'm running version 7.10 of drupal.