Comments NOT counting

Found a bug? Tell us!!
Post Reply
Gus Greeper
Regular
Posts: 13
Joined: Thu Sep 15, 2005 12:19 am
Location: Vancouver, BC Canada
Contact:

Comments NOT counting

Post by Gus Greeper »

my full amount of comments are not counting. they haven't been for a few days. is this happening to anyone else?

iam very GREEEEEEEEEEEN.

i can't even figure out how to upgrade my damn program...AT ALL, im STILL on 0.9-alpha3. i didn't set the site up and the person who did is not availible to help me with upgrading etc. i'd appreaite any help. im looking for a very kind person to help me out please as i've gotta start from the basics.

thanks!

http://www.gusgreeper.com
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Comments NOT counting

Post by garvinhicking »

Hm, which "full amount of comments" do you mean? I just made a comment on "Boredom thoughts" and the comment counter increased to '7' alright...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Gus Greeper
Regular
Posts: 13
Joined: Thu Sep 15, 2005 12:19 am
Location: Vancouver, BC Canada
Contact:

Comments NOT counting

Post by Gus Greeper »

thank you for looking.

you just happened to get one that was correct :D

i think i mentioned it is kind of random.
if you go back you'll notice on the second page in the post called:

WARNING – this post contains literature of a graphic nature – but read it anyway damnit = 29 comments/ showing 27

same page: no posts? = 14 comments/showing 13

back to the front main page from the top:

She Won’t Stop Meowing About It = 16 comments/showing 15

and last example but there are more is:

Kill the Lights = 13 comments says 12

:shock: i gots no idea!?!

at first i thought i just wasn't counting MY responses but that is not it.
thanks so much for any help you can offer !

i guess i'll get this sorted out before i even look at updating the program.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Comments NOT counting

Post by garvinhicking »

Is your blog using postgresql or mysql or sqlite?

The comment count increases/decreases depending on whether you delete comments or whether comment moderation for an entry is turned on. The comment count is not calculated dynamically, but rather fetched from the 'comments' column of the serendipity_entries database table.

We've had sporadic reports from postgresql users where a wrong comment count happened, but I believe some things have been addresses in the 0.9 final release there.

However upgrading to 0.9 will not correct the comment count; it will just (hopefully) not get the comment counter off by numbers in future cases. You might want to try that.

On this forums somebody once posted a SQL statement to fix the comment_count by selecting the real numbers of comments, it was:

Code: Select all

UPDATE serendipity_entries AS e SET e.comments = (SELECT count(c.entry_id) FROM serendipity_comments AS c WHERE c.entry_id = e.id AND c.status = 'approved')
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Gus Greeper
Regular
Posts: 13
Joined: Thu Sep 15, 2005 12:19 am
Location: Vancouver, BC Canada
Contact:

comments NOT counting

Post by Gus Greeper »

ok, that makes no sense to me at all. BUT i still thank you for your time and response.

this is what is really sucking having someone else set the damn site up for me and now i can't trouble shot and i can't upgrade.
now that first post on the front page has 17 comments and is STILL showing 15.
what you responded with i don't know even know where to add that NOTHING.

im trying to get my friend to help me but he just happens to go to 'the' film school in North America and doesn't have the time for me....i will be switching to a s9y suggested host company, mine sucks so bad people can hardly get on the damn site....
im just pissed someone builds me a website it gets popular and NOW i can't do dick all with it. sorry for the vent...you MAY have noticed im pretty fresh out of surgery...if you went to page 2.

ok well, thank you for your response i have no idea what to do with it..i'll have to hope my friend gets back to me.

i almost wish you charged like host compaines do so i could just pay someone to do all this shit for me....granted i LEARN very very fast i just need direction that makes laymen sense to me.
Brendon K
Regular
Posts: 44
Joined: Thu Feb 23, 2006 10:35 pm
Location: Saratoga Springs, NY, USA
Contact:

Post by Brendon K »

I don't have the time right now to go through all these steps to give you laymen's terms, but perhaps you would be able to take some time out of your day and go through this yourself?

I did a search for what garvin posted and found the following:
http://www.s9y.org/forums/viewtopic.php ... tries++set

I believe that was the article he was referring to, and it's a bit more detailed.
They say, "Practice makes perfect," yet they also say, "Nobody's perfect." I don't get it.
Gus Greeper
Regular
Posts: 13
Joined: Thu Sep 15, 2005 12:19 am
Location: Vancouver, BC Canada
Contact:

comments NOT counting

Post by Gus Greeper »

thank you kindly!
it is not that i don't enjoy learning it...it is that i don't even know where to start.
so thank you...hopefully this helps get me on my way.
Brendon K
Regular
Posts: 44
Joined: Thu Feb 23, 2006 10:35 pm
Location: Saratoga Springs, NY, USA
Contact:

Post by Brendon K »

Goodluck. I'm going to bed. :)

Let us know how you make out (after trying a few times, of course) and if you can't figure it out, reply so we can try and give you a better explanation that might help solve your issue.
They say, "Practice makes perfect," yet they also say, "Nobody's perfect." I don't get it.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Gus!

Without technical knowledge, this is a bit of a problem, as I cannot reproduce your error.

I can only offer you to look into your installation if you give me FTP access to your blog. You must decide if you want to do that, and contact me privately in case you want that.

Thanks also to Brendon for jumping in! :-)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply