In modules/field_ui/field_ui.admin.inc on line 142 a while loop of $list starts, elements in $list are only unset on line 150 if the condition on line 147 is met. If one element of $list not provides for the condition on line 147 to become true this element stays in $list, and while($list) loop becomes infinite, and "Manage Display" will not load. Not sure what triggered the condition for me, but I think I did not wait for the ajax loading to finish after moving a range of fields from hidden to content.

Comments

just_like_good_vibes’s picture

hello,
just had this issue with one of my website, after (apparently) some ajax calls in the field_ui admin page did not succeed (unknown reason, maybe server too slow or network error). after this, i had some visible fields that had invisible elements as parent.
so, it ended up with an infinite loop on corresponding field_ui admin page as described above in the original post.

to fix my install, i did a quick edit of file modules/field_ui/field_ui.admin.inc
in function "field_ui_table_pre_render($elements)"
in loop "while ($list) {"
just before the statement "if (empty($parent) || isset($parents[$parent])) {" (near line 147 of my drupal 7.38)

i added the following lines

if(!empty($parent) && !isset($parents[$parent])) {
          $parent = '';
}
pookmish’s picture

Thanks. that worked for me as well.

Version: 7.31 » 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.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.