TypeError: Illegal offset type in template_preprocess_tb_megamenu_nav()

Created on 12 February 2025, about 2 months ago

We installed "The Better Mega Menu" module but encountered an error when we adding a new mega menu with the user menu.

Steps to reproduce

1: Install "The Better Mega Menu" module using the following command:
composer require drupal/tb_megamenu:^3.0@alpha

2: Navigate to Structure > TB Mega Menu.

3: Click on "Add new mega menu", then select "User menu" under Menu options.

4: Click the Save button.

5: An error occurs:

TypeError: Illegal offset type in template_preprocess_tb_megamenu_nav() (line 406 of modules\contrib\tb_megamenu\includes\tb_megamenu.theme.inc).

An attached image illustrates the steps taken before encountering the error.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇮🇳India aman_lnwebworks

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