Closed (fixed)
Project:
Aperture
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2012 at 22:03 UTC
Updated:
6 Jan 2016 at 14:35 UTC
Jump to comment: Most recent
Using the latest versions of Drupal and Aperture, even after flushing all caches, this message is displayed:
Strict warning: Only variables should be passed by reference in aperture_preprocess_page() (line 21 of D:\_x\Drupal_7_dev\sites\all\themes\aperture\template.php).
The server is running PHP 5.2.5, so that's up-to-date.
The line of code is:
$vars['primary'] = '<div id="primary-menu">' . drupal_render(menu_tree_output($tree)) . '</div>';
Changing that line to the following, resolves the problem:
$menu_tree_output = menu_tree_output($tree);
$vars['primary'] = '<div id="primary-menu">' . drupal_render($menu_tree_output) . '</div>';
Comments
Comment #1
bengtan commentedHi,
Fixed and committed. Thank you.
http://drupal.org/commitlog/commit/15754/0ff98887afe20ae7204bd9ee30e4fc4...
Comment #3
zandrsn commentedHi, I realize that this is a very late reply, but I am having this same issue and the posted fix doesn't work for me. If edit line 21 in the template.php file as suggested it causes my whole site to stop loading and give error 500. Any ideas how I can fix this?
Until then all of my pages have this error:
Strict warning: Only variables should be passed by reference in aperture_preprocess_page() (line 21 of /home3/zandrsnc/public_html/drupal/sites/all/themes/aperture/template.php).