WordPress.org

Ready to get started?Download WordPress

Forums

Inove and WordPress 2.7 (20 posts)

  1. pretzlaff
    Member
    Posted 5 years ago #

    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 }

  2. kurtiskronk
    Member
    Posted 5 years ago #

    Yeah... mine is broken too. In a totally different way, without errors, but my content isn't showing up basically.

  3. pretzlaff
    Member
    Posted 5 years ago #

    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.

  4. kurtiskronk
    Member
    Posted 5 years ago #

    That didn't fix anything for me.

  5. stoneyb
    Member
    Posted 5 years ago #

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

  6. deadhouse
    Member
    Posted 5 years ago #

    hmm weird.

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

  7. kurtiskronk
    Member
    Posted 5 years ago #

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

  8. kurtiskronk
    Member
    Posted 5 years ago #

    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.

  9. Zero Cool
    Member
    Posted 5 years ago #

    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.

  10. calisuri
    Member
    Posted 5 years ago #

    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!

  11. Zero Cool
    Member
    Posted 5 years ago #

    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.

  12. kurtiskronk
    Member
    Posted 5 years ago #

    Found it. That fixes it. :-D

  13. mg12
    Member
    Posted 5 years ago #

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

  14. clublackberry
    Member
    Posted 5 years ago #

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

  15. clublackberry
    Member
    Posted 5 years ago #

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

  16. astrabier
    Member
    Posted 5 years ago #

    calisuri's post helped me as well!

    thanks

  17. mg12
    Member
    Posted 5 years ago #

    The new version released today, and this bug got fixed.

  18. alynst
    Member
    Posted 5 years ago #

    How do I remove the "widgets" from the template? For example, the theme comes with a "Tags" section. I don't want it in the spot where it is. But when I go to the editor and remove it, it messes up my entire theme. If I add a "tags" widget via the widget control panel, the original one that came with the theme still shows. Any clues on how to fix this problem?

    Thanks,

  19. martynwitt
    Member
    Posted 4 years ago #

    Hi
    I hope this doesn't come across as a no brainer but I downloaded inove 1.4.6 but I can't find any install notes, I looked at the readme text file but i cant get much out of it. Are the files and folders just ftp'd up into the root and they just overwrite any relevant files such as the index.php
    Cheers
    Martyn

  20. figaro
    Member
    Posted 4 years ago #

    If you are using WP 2.8+ you can install directly from within WP admin. If not, see the following video for details.

    [link moderated]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags