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