Mean menu plugin Error: Using $this when not in object context after upgrade to 2.0.0-beta1.

Created on 24 April 2024, 2 months ago
Updated 25 April 2024, 2 months ago

Problem/Motivation

The error occurs after upgrade drupal 9.5.11 to 10.2.5 also Responsive Menus module to 2.0.0-beta1.

When try to acces the config form using the mean menu plugin tigger this error:

Error: Using $this when not in object context in Drupal\responsive_menus\Plugin\ResponsiveMenus\MeanMenu::getSelectorInfo() (line 24 of modules/contrib/responsive_menus/src/Plugin/ResponsiveMenus/MeanMenu.php).

Proposed resolution

Replacing $this->t() with t() in MeanMenu.php line 24 solve the problem.

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇧🇬Bulgaria i.koychev Sofia

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024