Skip to main content
deleted 14 characters in body
Source Link

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/dotMobi-corporate.../sites/all/themes/bootstrap/templates/page.tpl.php).

The code producing this error is

<?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))));
}
?>

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

Could anyone Helo me please?

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/dotMobi-corporate/sites/all/themes/bootstrap/templates/page.tpl.php).

The code producing this error is

<?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))));
}
?>

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

Could anyone Helo me please?

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

<?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))));
}
?>

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

Could anyone Helo me please?

improved formatting
Source Link
AjitS
  • 10.9k
  • 7
  • 41
  • 73

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/dotMobi-corporate/sites/all/themes/bootstrap/templates/page.tpl.php)."

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

The code producing this error is

<?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))));
     }
?>

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

Could anyone Helo me please?

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/dotMobi-corporate/sites/all/themes/bootstrap/templates/page.tpl.php)."

The code producing this error is

<?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))));
     }
?>

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

Could anyone Helo me please?

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/dotMobi-corporate/sites/all/themes/bootstrap/templates/page.tpl.php).

The code producing this error is

<?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))));
}
?>

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

Could anyone Helo me please?

Source Link

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/dotMobi-corporate/sites/all/themes/bootstrap/templates/page.tpl.php)."

The code producing this error is

<?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))));
     }
?>

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

Could anyone Helo me please?