Results 1 to 2 of 2

Thread: Fatal Error in WordPress Template

  1. #1
    Join Date
    Dec 2012
    Rep Power

    Fatal Error in WordPress Template

    This is what I see when I scroll down to the "Blog" section of my freshly-installed WordPress template:

    Fatal error: Only variables can be passed by reference in /hermes/<<full path to>>/htdocs/wp-content/themes/theme09/functions.php on line 92, by the way.

    Here's the questionable code:

    // Removes Trackbacks from the comment cout
    add_filter('get_comments_number', 'comment_count', 0);
    function comment_count( $count ) {
    if ( ! is_admin() ) {
    global $id;
    $comments_by_type = &separate_comments(get_comments('status=approve&po st_id=' . $id));
    return count($comments_by_type['comment']);
    } else {
    return $count;

    I used to be a PHP dev (10 years ago), but it's been so long that I don't really have the time or motivation to spend hours sussing out the problem. From what little I know, it's a PHP version thing. Anyone know of a relatively quick way to fix it?
    Last edited by IanS; 12-4-12 at 05:40 AM. Reason: replaced full path for security reasons per forum practice

  2. #2
    Former Spam Filter (EU) IanS's Avatar
    Join Date
    Mar 2004
    Washington (THE original UK one!)
    Rep Power
    If it's the 'version thing' then you can change the version of PHP you're using in OPS from PHP4 to PHP5 or the other way round.
    This is a Powweb customer
    helping Powweb customer forum.

    I am a customer just like you!!

    Some matters can only be answered by staff or support.
    Give it a go - ask here first!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts