• hi,

    i have install wp 2.7 and see this error:

    Fatal error: Only variables can be passed by reference in /srv/www/vhosts/pretzlaff.info/httpdocs/wordpress_270/wp-content/themes/inove/functions.php on line 353

    351 function comment_count( $commentcount ) {
    352 global $id
    353 $comments_by_type = &separate_comments(get_comments(‘post_id=’ . $id));
    354 return count($comments_by_type[‘comment’]);
    355 }
    356 }

Viewing 15 replies - 1 through 15 (of 19 total)
  • Yeah… mine is broken too. In a totally different way, without errors, but my content isn’t showing up basically.

    Thread Starter pretzlaff

    (@pretzlaff)

    i have fixed it but i am not sure is ok.

    351 function comment_count( $commentcount ) {
    352 global $id;
    353 $get_comments= get_comments(‘post_id=’ . $id);
    354 $comments_by_type = &separate_comments($get_comments);
    356 return count($comments_by_type[‘comment’]);
    357 }

    that works.

    That didn’t fix anything for me.

    pretzlaff’s fix worked for me. I also converted all the cr/lf line endings to just lf, in case that mattered.

    hmm weird.

    I run a nonmodified iNove, on a freshly installed wp 2.7 with no errors at all.

    yeah.. that is weird. i freshly downloaded inove, and uploaded that. still didn’t work.

    And I just tried re-installing WP 2.7 again, and it still doesn’t work for me. It shows the header, and my first post’s title, but nothing else.

    I have exactly the same problem with kurtiskronk. It shows the header and the title of the first post, but nothing else. All pages are fine and others based on a category and tag are fine. It means only index.php does not work well.

    The first from ‘pretzlaff’ above worked perfectly for me.

    The two lines from the original functions.php:

    $comments_by_type = &separate_comments(get_comments('post_id=' . $id));
    return count($comments_by_type['comment']);

    And the changed lines:

    $comments_by_type = &separate_comments(get_comments('post_id=' . $id));
    return count($comments_by_type['comment']);

    Thanks for posting that!!! 2.7 is ‘so far’ great!

    I correctly replaced the code of functions.php shown in the follows:

    Original Code
    $comments_by_type = &separate_comments(get_comments('post_id=' . $id));

    Replace to;

    $get_comments= get_comments('post_id=' . $id);
    $comments_by_type = &separate_comments($get_comments);

    I misread the comments above. Now, it is working well after replacing the code. Great.

    Found it. That fixes it. ??

    Thank you very much! That’s a weird problem, but iNove will be updated soon.

    help me, plz – content/themes/inove/functions.php Error.

    Fatal error: Only variables can be passed by reference in /home/page/public_html/wp-content/themes/inove/functions.php on line 353

    calisuri’s post helped me as well!

    thanks

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Inove and WordPress 2.7’ is closed to new replies.