- Issue created by @kjl
A bad argument is sent to field_ui_menu_load by og_ui_menu(). This results in a 404 when trying to delete an OG field from a bundle.
Try to delete an OG from a bundle by visiting "admin/config/group/fields/%/%/%field_ui_menu/delete" when running PHP 8.2.
$items['admin/config/group/fields/%/%/%field_ui_menu/delete'] = array(
...snip...
'load arguments' => array(4, 5, 5, '%map'),
load arguments should be:
array(4, 5, '5', '%map'),
The original code worked "accidentally" in PHP 7 and earlier. The bundle name, rather then its position was sent to Field UI.
function field_ui_menu_load($field_name, $entity_type, $bundle_name, $bundle_pos, $map) {
if ($bundle_pos > 0) {
"$bundle_pos > 0" is FALSE in PHP 7 and TRUE in PHP 8 when the bundle name is erroneously sent by og_ui to field ui.