Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get this error message after installing module and then setting one page from basic content type (the parent menu) to display title and teaser in blocks for submenu items.
Strict warning: Only variables should be passed by reference in theme_submenu_tree_teasers...
My Theme is Nucleus with custom subtheme developed from the themes stater kit (no modifications to tpl's).
It looks like this has been an issue in previous versions 2.x-dev and seems related to similar issue in version 2.3.
Also get same error in dev version of 2.3.
Thanks for any help!
Comment | File | Size | Author |
---|---|---|---|
#3 | submenutree-drupal_render-usage-2186519-3.patch | 1.29 KB | tobiasb |
Comments
Comment #1
justawayfarer CreditAttribution: justawayfarer commentedComment #2
justawayfarer CreditAttribution: justawayfarer commentedI followed step #5 given by e.r.n.i.e (including the last part of the patch in step #3 given by athos99) at the end of the Issue thread titled Just remove drupal_render() , it fixed the error message and seems to be working fine.
I am leaving this open since the solution has not been added as of this date to submntree 7.x-2.3 nor to 7.x-2.3-dev.
I'd really love to see this committed.
Thanks!
Comment #3
tobiasbI added all fixes in one patch.
Comment #4
spacetaxi CreditAttribution: spacetaxi commentedReviewed and tested.
Comment #5
prakashsingh CreditAttribution: prakashsingh commentedJust used the patch part of submenutree.module and worked..
Comment #6
thekurt CreditAttribution: thekurt commentedApplied patch and worked.
All three changes have to be done in the same file: submenutree.module.
I don't know enough of creating patches, so I'll leave this to someone who can.
The second change is around line 730
The third change is around line 751
Comment #8
vuilThe patch is committed! I close the issue as Fixed. Thanks!