Error in preprocessing local tasks in Drupal CMS

Created on 11 March 2025, 25 days ago

Problem/Motivation

Getting error on Drupal CMS:

Error: Call to a member function isAllowed() on true in _civictheme_preprocess_menu_local_tasks() (line 22 of themes/contrib/civictheme/includes/local_tasks.inc).

civictheme_preprocess_menu_local_tasks()
call_user_func_array() (Line: 261)
Drupal\Core\Theme\ThemeManager->render() (Line: 446)
Drupal\Core\Render\Renderer->doRender() (Line: 203)
Drupal\Core\Render\Renderer->render() (Line: 484)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 90)

Caused by the 'Duplicate' local task having a boolean for $link['#access'] rather than an AccessInterface object.

Requires update to preprocessing to take this into account as it's a valid value.

🐛 Bug report
Status

Active

Version

1.9

Component

Code

Created by

🇦🇺Australia RichardGaunt Melbourne

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

Comments & Activities

Production build 0.71.5 2024