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!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

justawayfarer’s picture

Issue summary: View changes
justawayfarer’s picture

I 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!

tobiasb’s picture

Title: Variables Should be Passed by Reference » Fix drupal_render usage
Version: 7.x-2.3 » 7.x-2.x-dev
Status: Active » Needs review
FileSize
1.29 KB

I added all fixes in one patch.

spacetaxi’s picture

Status: Needs review » Reviewed & tested by the community

Reviewed and tested.

prakashsingh’s picture

Just used the patch part of submenutree.module and worked..

thekurt’s picture

Applied 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

  • vuil committed c9ab718 on 7.x-2.x authored by tobiasb
    Issue #2186519 by tobiasb, vuil: Fix drupal_render usage
    
vuil’s picture

Status: Reviewed & tested by the community » Fixed

The patch is committed! I close the issue as Fixed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.