Question
Strict warning: Only variables should be passed by reference in include() (line 26 of page.tpl.php).
Hello Support Team,
I have got this error after upgrade my php version from 5.3.10 to 5.5.7.
My application is running in drupal 7.23 in ubuntu 12.04.
Error : Strict warning: Only variables should be passed by reference in include() (line 26 of /var/www/avcdistributor.com/sites/all/themes/tejas/templates/page.tpl.php).
Line 24-28 Says :
if($user->uid != 0){
$block = block_load('block', '7');
$output = drupal_render(_block_get_renderable_array(_block_render_blocks(array($block))));
print $output;
}
Can you please help me what is the issue,
it will perfectly worked on php 5.3.10, but after upgrade php version it will not working.
Thanks,
Tejas
Add a comment
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×