Social Subscribers Counter
Twitter counter needs to be updated (9 posts)

  1. pacovitiello
    Posted 3 years ago #

    Twitter counter has stopped working 3 days ago. I have replaced




    into social-subscriber-counter.php file at lines 61 and 121.

    Now it works, but you seriously need to update this plugin.
    P.S. Please consider also that feedburner, during some hours of the day, counts 0 subscribers... I suggest to add an option for showing a custom number in case Feedburner counts zero.


  2. Reza Shadpay
    Posted 3 years ago #

    pacovitiello, thank you for update!
    I replaced the code you mentioned, but it didn't work for me yet.
    this plugin has 4 developers and unfortunately no one answer any question!

  3. pacovitiello
    Posted 3 years ago #

    Have you tried to empty the cache of your browser?

  4. Reza Shadpay
    Posted 3 years ago #

    Yes, I did, but as you mentioned too, plugin has several bugs (FeedBurner and links doesn't open in new page (I fixed it but developers didn't update the plugin)), I selected and installed a very nice plugin today, here.

    By the way, thanks for replay.

  5. pacovitiello
    Posted 3 years ago #

    The trick worked for me, but unfortunately I can't help you because I am not very good with php. Let's wait, maybe the developers will release an update soon.

  6. Haithm EL-Watany
    Posted 3 years ago #

    Thanks a lot this trick worked for me... @Reza you must Deactivate then Delete it then Re-Upload it again with the modification of twitter api link then it will work...

  7. ollyb
    Posted 3 years ago #

    If the updated code doesn't work right away, you might not have to deactivate the plugin. The twitter number is cached by default for an hour. Even when it fails, it looks to me like it's caching an empty string.

    I updated my code, and it's working fine. Occasionally though, when the server can't get through to twitter for whatever reason, it caches the empty string for an hour. We don't want that, nor do we want the server hammering twitter. So I set mine to cache for just 1 minute in the event that a non-numeric response is received from twitter (or, not at all):

          set_transient('social_subscribers_counter_twitter', $followers, 3600);
          set_transient('social_subscribers_counter_twitter', $followers, 60);
  8. BradGroux
    Posted 3 years ago #

    ollyb, could you please let me know what line I need to place your code snippet on? Do I need to overwrite old code with this updated code?


  9. ollyb
    Posted 3 years ago #

    It just needs to go in place of the existing "set_transient" line. So take that line out, and put the 5 lines from the snippet above in its place.

    Hope that helps!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Social Subscribers Counter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.