Plugin Author
Damian
(@timersys)
Thanks i will review the issue
Actually, it’s a bit more complicated than I thought. The problem comes (also) from Twitter and the limit of requests per hour (150) and for a reason I ignore the transient doesn’t work properly. I’ll keep you posted as soon as I find a workaround.
Thanks for this great plugin by the way !
Plugin Author
Damian
(@timersys)
Hi, im investigating this issue now, sorry for the delay. Can you give me more details like where you get that error?
Actually $json was an array with an object inside, but now just in case i forced everything to be arrays. I can’t reproduce your error so im not sure if its a PHP version problem. Wich PHP version do yo have?
Try to download the new version that will be released in the next hour
Hi,
Actually the problem, I think, comes from WordPress transients.
The content of $json wasn’t the expected array so I checked what was in it: something like “Unauthenticated calls are permitted 150 requests per hour.”
But from what I read in your code, there shouldn’t be more than one call every 3 hours so I monitored the calls :
– first call of fetch_twitter_followers : OK
– next call, three hours after : OK
– then…. 560 calls in 50 minutes
– next call, three hours after : OK
– etc
(the module is on a quite visited website)
I’ve just started investigating so I haven’t much to tell you for the moment.
Plugin Author
Damian
(@timersys)
Really strange … i testes transients and works fine on my end. What could affect them? a db cache plugin ?