pretzlaff
Member
Posted 3 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 }
kurtiskronk
Member
Posted 3 years ago #
Yeah... mine is broken too. In a totally different way, without errors, but my content isn't showing up basically.
pretzlaff
Member
Posted 3 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.
kurtiskronk
Member
Posted 3 years ago #
That didn't fix anything for me.
stoneyb
Member
Posted 3 years ago #
pretzlaff's fix worked for me. I also converted all the cr/lf line endings to just lf, in case that mattered.
deadhouse
Member
Posted 3 years ago #
hmm weird.
I run a nonmodified iNove, on a freshly installed wp 2.7 with no errors at all.
kurtiskronk
Member
Posted 3 years ago #
yeah.. that is weird. i freshly downloaded inove, and uploaded that. still didn't work.
kurtiskronk
Member
Posted 3 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.
Zero Cool
Member
Posted 3 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.
calisuri
Member
Posted 3 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!
Zero Cool
Member
Posted 3 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.
kurtiskronk
Member
Posted 3 years ago #
Found it. That fixes it. :-D
Thank you very much! That's a weird problem, but iNove will be updated soon.
clublackberry
Member
Posted 3 years ago #
help me, plz - content/themes/inove/functions.php Error.
clublackberry
Member
Posted 3 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
astrabier
Member
Posted 3 years ago #
calisuri's post helped me as well!
thanks
The new version released today, and this bug got fixed.
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,
martynwitt
Member
Posted 2 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
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]