Report this

What is the reason for this report?

Strict warning: Only variables should be passed by reference in include() (line 26 of page.tpl.php).

Posted on January 20, 2014

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.