Error: Call to a member function toString() on string in cookiebot_preprocess_menu()

Created on 22 May 2025, 16 days ago

I am using:

  • Drupal 10.3.14
  • PHP 8.3.17
  • Gin admin theme 4.0.6
  • Gin Toolbar 2.0

I installed the latest alpha20 version of the cookiebot module and got a "The website encountered an unexpected error. Try again later."

After disabling the module and looking at the logs, I see the following error:

Error: Call to a member function toString() on string in cookiebot_preprocess_menu() (line 202 of /home/site/wwwroot/test/web/modules/contrib/cookiebot/cookiebot.module).

Initially, I thought it was this error - https://www.drupal.org/project/cookiebot/issues/3468922 🐛 Error: Call to a member function toString() on null in cookiebot_preprocess_menu() Fixed - but it seems to be something different again?

To clarify, I am not using the Navigation or Navigation Top Bar.

Thank you for your help!

🐛 Bug report
Status

Active

Component

Code

Created by

🇦🇺Australia ajlow

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