Jetpack Twitter Widget Fix
If you’ve also been getting the infamous “Error: Twitter did not respond. Please wait a few minutes and refresh this page.” error inside the Jetpack Twitter Widget for WordPress on your website there’s an easy fix. Just download the updated PHP file below (included in the zip archive) and replace the one in the plugins folder on your server (path: \wp-content\plugins\jetpack\modules\widgets).
Download: Twitter Widget Fix for Jetpack version 1.8 to 2.0
Note: Starting with JetPack 2.0 the Twitter Widget is fixed. So if you have version 2.0 or later you don’t need this fix.
This problem has existed for a long time since the earlier versions of Jetpack, as early as version 1.1.3. A search on Google reveals how many sites are suffering from this issue. I had posted a fix back then, but it took almost a year for the Jetpack programmers to actually include it in their official release starting with version 1.7. I got a nice thank you note in the changelog from the team. 🙂
I had implemented a simple fallback caching mechanism for those cases where Twitter did not respond to requests from the Twitter widget. With version 1.8 of Jetpack the Twitter widget has been completely rewritten, and although they implemented the fallback mechanism again, the programmer seemed to have forgotten to actually make use of it in case of a problem. This is what I corrected in the file you can download above. I hope the team includes this fix again soon because it’s a real pain to have to fix this by replacing the Twitter widget file every time a new update of Jetpack is available, especially if you have to do this on multiple websites.

Comments
There are 9 responses. Follow any responses to this post through its comments RSS feed. You can leave a response, or trackback from your own site.