From this issue >> https://www.drupal.org/project/drupal/issues/3021824 it appears that hook_menu requires a non-null title or issues can occur on DB CRUD actions.
This module does not set a non-null title, i.e.
$items['<nolink>'] = array(
'page callback' => 'drupal_not_found',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['<separator>'] = array(
'page callback' => 'drupal_not_found',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
I believe I have encountered this issue on a site using Special Menu Items and perhaps a patch is in order.
Screenshot is from the database constraints (credit to @btopro).
E
Comments
Comment #2
aitala commentedComment #3
aitala commentedComment #4
aitala commentedHere is a patch (I think I did this correctly)
E
Comment #5
poker10 commented+1, the patch is working for me. I am using it on some projects to eliminate errors caused by NULL title.
Comment #7
poker10 commentedSimilar approach with empty title is used also in core, so it should be OK. See: https://git.drupalcode.org/project/drupal/-/blob/7.x/modules/overlay/overlay.module#L26
Committed this, thanks @aitala!