Support Forum

Thanked 0 times

AT Alex T
Alex T
Member

Having an issue where the thanks shows as zero, yet later on it will show the actual number of thanks received.

Members
Forum Posts: 4147
Member Since:
August 29, 2014
Thanked 0 times
 
Reputation: 3132

25 Answers

New Answer

IK Ike
Ike
Member

Hey Alex,

It sounds like a caching plugin although I doubt you are using one from experience / memory / history of talking, but please confirm.

So let’s start off with the basics, has this been playing up for a while or is it a recent thing? If so can you remember when it started, if anything new was installed, updated etc.. ?

AT Alex T
Alex T
Member

I do have a cache plugin: W3TC, though I have excluded the forum in the page cache settings.  This has been ongoing for a while and I just kept forgetting about it.  

YS Yellow Swordfish
Yellow Swordfish
Member

Ca n you paste here the exact code you are using in the spFoot template to display this?

AT Alex T
Alex T
Member

Yellow Swordfish said
Ca n you paste here the exact code you are using in the spFoot template to display this?

spFoot?  Do you mean topicview?

sp_thanks_user_stats('tagClass=spCenter spThanksUserStats', $spThisPostUser->user_id, 'Thanked %THANKED% times');
 sp_thanks_post_user_reputation('tagClass=spCenter spPostUserThanksReputation', 'Reputation:');
IK Ike
Ike
Member

I can’t see anything wrong with the code, and am not sure how the function could cause it to only work some of the time.. But I’m also not sure what Andy was referencing spFoot.php for, will have to see.

YS Yellow Swordfish
Yellow Swordfish
Member

spFoot was a mistake. Not sure what I was thinking of! 🙂

I also see no problem with the code . I am going to have to set up some test data to see if I can replicate anything.

AT Alex T
Alex T
Member

Yellow Swordfish said
spFoot was a mistake. Not sure what I was thinking of! 🙂

I also see no problem with the code . I am going to have to set up some test data to see if I can replicate anything.

Any follow-up with this?  I just noticed that this is still ongoing.  

YS Yellow Swordfish
Yellow Swordfish
Member

Sorry of this slipped under the radar a little. We had a couple of big issuers break which needed attention.

Bottom line is that we can not replicate this. At the same time we have had no feedback from other users that they have a similar problem and this is quite a popular plugin.

I will almost certainly need @mr-papa in on this one (who is away for a few days) if only to work out what are the right questions to ask.  But perhaps I could start by asking if you see any pattern to the false readings. I.e., might it always be under specific circumstances?

MP Mr Papa
Mr Papa
Member

yes, need a bit more background data when you see it…  any patterns?  

when you see it, is it repeatable?  if you reload page, does it still show?  if should be or might indicate caching type activity at play…  if it is repeatable, can you go to forum – toolbox – data inspector and turn on the spThisPostUser data… and then relook at the page and get us the thanks data in the user object where you see 0…

AT Alex T
Alex T
Member

Mr Papa said
yes, need a bit more background data when you see it…  any patterns?  

when you see it, is it repeatable?  if you reload page, does it still show?  if should be or might indicate caching type activity at play…  if it is repeatable, can you go to forum – toolbox – data inspector and turn on the spThisPostUser data… and then relook at the page and get us the thanks data in the user object where you see 0…

There is no discernible pattern that I may point to.  It seems it happens randomly to everyone.  

Did you mean this:

[thanks] => 75 [thanked] => 344

This is what it shows, however right now this user has the zero times thanked.  

YS Yellow Swordfish
Yellow Swordfish
Member

Sorry – can you be a little more precise…

Are you saying that the data inspector shows those two values for a specific user but at the same time is displaying zero on the actual post display?

AT Alex T
Alex T
Member

Yellow Swordfish said
Sorry – can you be a little more precise…

Are you saying that the data inspector shows those two values for a specific user but at the same time is displaying zero on the actual post display?

Yes, here is another user:

[reputation_daily] => 0 [thanks] => 110 [thanked] => 437<br /><br />
Here is what his thanks look like:
Members
Level 2
Forum Posts: 1882
Member Since:
September 30, 2014
Thanked 0 times
 
Reputation: 984
YS Yellow Swordfish
Yellow Swordfish
Member

I think I have managed to replicate this although will need to do a little more diagnosis.  I will come back here when I know for sure..

AT Alex T
Alex T
Member

Yellow Swordfish said
I think I have managed to replicate this although will need to do a little more diagnosis.  I will come back here when I know for sure..

Great, thanks!