Number of comments doesn't update!

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-05-2007, 03:11 PM
vAx's Avatar
vAx vAx is offline
New Pligger
 
Join Date: Jun 2007
Location: Chicago
Posts: 19
After deleting some of the comments from a story "Admin>>Comment Management" number of comments show the same as before deleting them. Update DB is not working properly...
Reply With Quote
  #2 (permalink)  
Old 07-06-2007, 05:02 AM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,181
thanks for reporting that
Reply With Quote
  #3 (permalink)  
Old 07-06-2007, 09:29 AM
Casual Pligger
 
Join Date: May 2007
Posts: 46
Same problem. Yesterday i had 7 comments, and after that, comments doesn't update.
Reply With Quote
  #4 (permalink)  
Old 07-11-2007, 01:36 AM
Pligg Donor
 
Join Date: Mar 2007
Posts: 85
Ditto. Comments not updating - they seem to be randomly changing for stories in fact - sometimes showing a number (usually wrong) sometimes it appears there are no comments, when in fact, there are. Any progress on this? Site going live - beta testers are *all* complaining about it.
Reply With Quote
  #5 (permalink)  
Old 07-11-2007, 02:11 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,960
I think savant is working at it and you should expect a fix shortly.
Reply With Quote
  #6 (permalink)  
Old 07-11-2007, 04:02 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,960
hmm, I just missed the time mentioned - thanks gary for noting it fixed - usually when a issue is fixed the moderators will mark fixed - but this thread has gone unnoticed. Thanks again for noting it. updating the status of the thread too.
Reply With Quote
  #7 (permalink)  
Old 07-12-2007, 01:15 AM
Pligg Donor
 
Join Date: Mar 2007
Posts: 85
This fix seemed to work for a couple of hours - then it was back to the old random incorrect/not updating. Any clue as to why it would revert? I updated the files. ? It's a pretty significant problem for us right now.
Reply With Quote
  #8 (permalink)  
Old 07-12-2007, 01:39 AM
AshDigg's Avatar
Mayor of PliggVille/Coder
 
Join Date: Dec 2005
Posts: 1,515
Try putting the attached file into your root pligg folder (the one with index.php) and run it. It should recalculate all the comment counts and they should then stay accurate.
Attached Files
File Type: php fix_comments.php (594 Bytes, 183 views)
Reply With Quote
  #9 (permalink)  
Old 07-14-2007, 09:30 PM
Pligg Donor
 
Join Date: Mar 2007
Posts: 85
Quote:
Originally Posted by AshDigg View Post
Try putting the attached file into your root pligg folder (the one with index.php) and run it. It should recalculate all the comment counts and they should then stay accurate.
Hi Ash - I'm afraid that didn't do it. I can't figure out what's going on, but I *really* need to get it sorted out. We've only been up for 2 days and we've already got 512 users, 207 links, and 498 comments. And this is a crowd that pays attention. I'm trying to stomp out several bugs at the moment, but this one is the priority.

I checked the database tables, and only 33 stories (in pligg_links) show any comments at all. Why is the relationship between the tables not being maintained? Is there a query somewhere that resets the values when a certain action is performend? I assume the problem is the pligg_comments in the pligg_links table, as it is the one showing mostly 0s where there should be nums.

Thanks for continuing to help me get this working -
Reply With Quote
  #10 (permalink)  
Old 07-15-2007, 12:06 AM
Pligg Donor
 
Join Date: Mar 2007
Posts: 85
Another follow up to give you more specific information on the behavior I'm seeing.

Comments aren't being counted at all or are not showing the correct number

Ran the file you sent, it output "count matches" for each one

So here's what I've done and what happens -

If I comment on an article as a regular user, my comment gets added to the (incorrect) number being displayed

If there previously were no comments, then it correctly displays "1" after I've submitted mine.

If I then login as admin and then delete those same comments, the number of comments for that story is updated and displays correctly.

Obviously, I cannot do this for each of the 200+ stories we've got on the site. But whatever it is doing, seems to be doing the trick.

However...I still need those other articles to show the correct number of votes without me manually going through each one, adding a comment and then deleting it in the admin.

Any ideas? Does this info help at all to sort out where the problem lies?

Thanks again -
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of Comments Shown GrantMePeace Questions and Comments 2 04-30-2009 03:23 PM
[SOLVED] Version number doesn't update after upgrade AshMCairo Questions and Comments 8 12-13-2007 01:02 PM
Comments update, comments accents... what more!! seotalk Questions and Comments 1 06-15-2007 05:56 AM
published by number of comments... sixlaneve Questions and Comments 0 05-13-2007 01:48 PM
Reducing query count in comments revenazb Questions and Comments 5 04-17-2007 01:37 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development