On a clean standard install, after enabling mayo i get the following warning:

strict warning: Only variables should be passed by reference in include() (line 216 of mayo\templates\page.tpl.php).

CommentFileSizeAuthor
#3 mayo-passed-reference-1064792-3.patch633 bytesmermentau

Comments

Anonymous’s picture

I am experiencing the same error message. Any idea how to resolve?

ezfranca’s picture

I got same error here on a new installation.

mermentau’s picture

Status: Active » Needs review
StatusFileSize
new633 bytes

Here is my first stab at a patch and when tested it worked for me.

mermentau’s picture

Title: strict warning: Only variables should be passed by reference page.tpl.php. » strict warning: Only variables should be passed by reference page.tpl.php

@88888, Please don't change this title without stating a good reason.

Remon’s picture

@bumpaw. 88888 is apparently a spam, this account has been reported.

cbecker22’s picture

How do I use this file to fix the problem

ezfranca’s picture

Same problem here.

Fresh Install

ezfranca’s picture

Well, I applied the patch and the error is gone. Thank you :)

ezfranca’s picture

Hey @cbecker22 :

This is the way to patch your file ...

cd /var/www/<your-drupal-site-root>/sites/all/themes/mayo
wget http://drupal.org/files/issues/mayo-passed-reference-1064792-3.patch
patch -p1 < mayo-passed-reference-1064792-3.patch
mermentau’s picture

Status: Needs review » Fixed

Committed patch from #3.

Status: Fixed » Closed (fixed)

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