Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.php
and 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 CreditAttribution: 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 CreditAttribution: sk33lz commented