• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Comments counted twice

marremp2

Active member
#1
Hello,

I installed MG 1.1.11 on XF 1.5.6 and I noticed that comments on media are counted twice.

Here is an example, this media has two comments in the database :

upload_2017-3-8_10-25-31.png

but the number of comments shown on the media page and in other counters is 4.
upload_2017-3-8_10-26-37.png

Thanks for your help

Marina
 

Chris D

XenForo developer
Staff member
#2
I cannot reproduce this, so I don't believe it to be a bug. The code is pretty clear here so I can't see any particular reason this would happen.

Have you ever manually deleted comments from the database? Or is there any other situation that might account for this, such as deleting the comments through some sort of spam/approval action? Or could there be some sort of add-on involved?
 

marremp2

Active member
#3
Thanks for your answer. I used an extension to manage a contest, that might be an explanation. I will ask the developper.
 

marremp2

Active member
#4
I am not sure that it is related to this extension, which does not deal with comments at all.

I made a test that may bring a clue about the problem :

Comments are moderated. When a comment is created, the counter is immediatly updated (+1) where it should not. When the comment is approved, the counter is updated again (+1).
 

Chris D

XenForo developer
Staff member
#5
I did some testing in this area, but it wasn't with automatically moderating comments. That does appear to be a genuine bug.