Menu clickthrough incompatibility with Group Content Menu

Created on 27 August 2025, 11 days ago

Problem/Motivation

When I try to create a menu item for a group menu I get a fatal error:

TypeError: Drupal\menu_clickthrough\Menu\MenuTreeStorageMenuHelper::isClickthroughEnabled(): Argument #1 ($menu) must be of type Drupal\system\Entity\Menu, null given, called in /var/www/html/docroot/modules/contrib/rocketship_core/modules/menu_clickthrough/menu_clickthrough.module on line 159 in Drupal\menu_clickthrough\Menu\MenuTreeStorageMenuHelper->isClickthroughEnabled() (line 50 of modules/contrib/rocketship_core/modules/menu_clickthrough/src/Menu/MenuTreeStorageMenuHelper.php).

_menu_clickthrough_hide_menu_link_content_field_form() (Line: 105)
menu_clickthrough_form_alter() (Line: 480)
Drupal\Core\Extension\ModuleHandler->alter() (Line: 839)
Drupal\Core\Form\FormBuilder->prepareForm() (Line: 280)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm() (Line: 127)
Drupal\group_content_menu\Controller\GroupContentMenuController->addLink()
...

Steps to reproduce

Go to a route like /group/1/menu/1/add-link
and see the error

Proposed resolution

Check for an existing menu before doing the logic

Remaining tasks

Code

🐛 Bug report
Status

Active

Version

6.2

Component

Code

Created by

🇪🇸Spain rodrigoaguilera Barcelona

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024