- Issue created by @iaacristobal
- Merge request !97Issue #3502972: Adding user account menu in mega menu causes error โ (Open) 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.