Closed (fixed)
Project:
Fluid Baseline Grid
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 Apr 2012 at 08:27 UTC
Updated:
9 Aug 2012 at 04:42 UTC
Probably, this is PHP 5.3 error
Fatal error: Only variables can be passed by reference in /home/dx_/bootstrap.dx.rs/modules/comment/comment-wrapper.tpl.php on line 45
This is a simple fix, just remove & sign in line 54 in template.phpand everything seems to work just fine, here is how it should look:
/**
* Add a "Comments" heading above comments except on forum pages.
*/
function fbg_preprocess_comment_wrapper($vars) {
if ($vars['content'] && $vars['node']->type != 'forum') {
$vars['content'] = '<h2 class="comments">'. t('Comments') .'</h2>'. $vars['content'];
}
}
Comments
Comment #1
sk33lz commentedI removed all of the code within the template.php file for version 7.x-2.2, which I have just released.
I must have reused code from another theme I was working on at the time, as none of it was really needed for the theme to work, and it was going against the minimalist approach I am going for with this theme.
Note - I may add back the body classes just to give more control to themers in 7.x-2.3. The additional code just seemed like overkill, and was not needed really.
Comment #2
sk33lz commented