- Issue created by @iaacristobal
- Merge request !97Issue #3502972: Adding user account menu in mega menu causes error → (Merged) created by Unnamed author
- 🇮🇳India vinayakmk47
Fixed Issue: When adding the User account menu to TB Mega Menu, it threw an error:
TypeError: Illegal offset type in template_preprocess_tb_megamenu_subnav().
Resolution: Ensured $title is cast to a string before using it as an array key.
Testing: Verified with User account menu, rendering correctly without errors.
Created a merge request please review and let me know if there are any changes. @vinayakmk47 i also work for this issue i apply little changes to resolve this issue. please check it .
- 🇮🇳India vinayakmk47
Thank you, @niharika.s, for working on this issue and applying additional changes. I’ll review your modifications to see how they align with the current implementation. Let’s ensure the solution works seamlessly across all scenarios. I’ll provide feedback after testing your changes.
- 🇺🇸United States pcfoster
https://www.drupal.org/u/aman_lnwebworks → suggested same solution in https://www.drupal.org/project/tb_megamenu/issues/3506094 🐛 TypeError: Illegal offset type in template_preprocess_tb_megamenu_nav() Active . So considering that work to be a Review and Test, moving status and suggesting maintainer consider giving credit to that user as well.
Note, https://www.drupal.org/project/tb_megamenu/issues/3228907 → is identical problem in the 8x branch; linking to this issue for context.
- Status changed to RTBC
3 days ago 1:44pm 28 August 2025 -
themodularlab →
committed f69ad244 on 3.x authored by
vinayakmk47 →
Issue #3502972 by vinayakmk47, niharika.s, iaacristobal, themodularlab,...
-
themodularlab →
committed f69ad244 on 3.x authored by
vinayakmk47 →