How can I get rid of this error? The error that I am getting is as follows


  Strict warning: Only variables should be passed by reference in include() (line 73 of /Applications/MAMP/htdocs/.../sites/all/themes/bootstrap/templates/page.tpl.php).


The code producing this error is 

&lt;?php
$path = drupal_get_path_alias($_GET['q']);
$block = block_load('block','2');
if ($path == 'home') {
  print render(_block_get_renderable_array(_block_render_blocks(array($block))));
}
?&gt;


I don't know why this error is coming up because the code is working perfectly.

Could anyone Helo me please?
The solution for this will be to do the same thing with the code below.



$region = _block_get_renderable_array(_block_render_blocks(array($block)));
print render($region); 


After changing your code make sure that you clear your cache. And try refreshing. Also make sure you have made this changes every where.

So you know what the problem is:
The render() function takes a parameter by reference. In that case you must pass in a variable, not a function call, because the function call is not something that can be passed as a reference.