Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Thanked 0 times
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Oct 19, 2015 - 10:13 am

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
Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 19, 2015 - 10:42 am

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.. ?

Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Oct 19, 2015 - 11:44 am

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.  

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 19, 2015 - 12:02 pm

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Oct 19, 2015 - 12:21 pm

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:');
Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 19, 2015 - 3:24 pm

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 19, 2015 - 3:26 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Oct 26, 2015 - 3:30 pm

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.  

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 26, 2015 - 4:58 pm

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?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 26, 2015 - 9:12 pm

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...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17366
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626