hook_menu requires a non-null title

Created on 21 December 2018, over 6 years ago
Updated 19 March 2023, about 2 years ago

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

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States aitala

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024