WordPress 2.0.6 and FeedBurner Disconnects

This article provides a workaroud for WordPress 2.0.6 and chronic FeedBurner disconnects. It's essential that you upgrade to WordPress 2.0.6 immediately in order to prevent your blog from being taken over by hackers! Upgrade, then follow these instructions to get it to play nicely with FeedBurner afterwards.

The Problem

After upgrading to WordPress 2.0.6 or WordPress 2.1 Beta, your FeedBurner feed will, at times, give you an "invalid xml" error, and "FeedMedic" will show you something like this:

Your server disconnected us before sending the full source feed content. If your blogging platform is TextPattern, this is a known bug, and a fix can be found here: http://forum.textpattern.com/viewtopic.php?id=11247

Explanation

FeedBurner uses something called "Conditional Get requests" to ask your server whether or not the page has changed since the last it viewed it, in order to save you some bandwidth. Depending on how popular your site is, FeedBurner may hit up your feed up to hundreds of times a day, so this is a really good idea! Unfortunately, in WordPress 2.0.6, your site doesn't respond in a way that FeedBurner recognizes. The 304 headers it sends back to let it know that the content hasn't changed are malformed and corrupt - and FeedBurner has no idea what they mean.

Workaround 1

Thanks to Mark Jaquith, there's a little change you can make to your code to make it work the way it's supposed to. This very same change will be included in WordPress 2.0.7, so you don't have to worry about unsafe changes. You can grab the unified diff file here, if you like.

Open /wp-includes/functions.php and find the following code:

[sourcecode language='php'] if ( substr(php_sapi_name(), 0, 3) == 'cgi' ) @header("HTTP/1.1 $header $text"); else @header("Status: $header $text"); }[/sourcecode]

Replace that code block with this code below, which commetns out the trouble-causing portions:

[sourcecode language='php']// if ( substr(php_sapi_name(), 0, 3) == 'cgi' ) @header("HTTP/1.1 $header $text"); // else // @header("Status: $header $text"); }[/sourcecode]

Save the file and exit. Resync your feed at FeedBurner.

Workaround 2

If you're not feeling up to messing with the WordPress source code and would rather not possibly have to fix something later, you can create a php script that "relays" the content of your feed to FeedBurner for you. All you have to do is cut and paste the code below into a file of your own on your server - or any other as a matter of fact. Then, just point FeedBurner to this file instead, and you're done. Just remember: this file doesn't cache! 

Create a file called FeedBurner.php, which contains the following code:

[sourcecode language='php'][/sourcecode]

The code's that simple. Upload this file to a webserver, and point FeedBurner to the URI for this file, and you'll no longer get that ugly error!



Leave a Reply  •  About to Ask for Help?  •  Subscribe to Our Feed

121 Responses to “ WordPress 2.0.6 and FeedBurner Disconnects ”


  1. 1cinefiloJan. 6th, 2007 at 12:12 pm

    This fix required curl library ? 

  2. 2Computer GuruJan. 6th, 2007 at 1:08 pm

    Yes, the second one does. If you're familiar with PHP, you can use fopen instead - but if you have curl-lib installed it's recommended that you use this.

    It might be easier to just use Workaround 1 instead.

  3. 3Ernesto GomezJan. 6th, 2007 at 1:51 pm

    Awesome fix, thanks! I found this via Technorati, but I think it needs more exposure, especially since Technorati is sorted by date...

    dzone - digg - NetScape

    It would be nice if Matt or someone put this on the dev blog - that would guarantee attention.

  4. 4AjayJan. 6th, 2007 at 2:23 pm

    Hi, can you explain what the curl code does exactly?

  5. 5Computer GuruJan. 6th, 2007 at 2:27 pm

    @Ajay: It's really straightforward; first you give it a URI, then CURL downloads the contents of that URI into a variable, and PHP prints the contents of that variable out.

    Basically, it's a proxy script, for only one page. It proxies the contents of your feed into a new page (FeedBurner.php) in a way that circumvents the 304 headers/conditional gets. In a nutshell, it turns a page that support conditional caching into a static page like any other - except this one works.

  6. 6Everton BlairJan. 6th, 2007 at 8:44 pm

    great - I thought it was me causing the errors.

     Now to my next feedburner issue, how do I get feedburner/Wordpress to display a summary feed without using the summary tool in feedburner?  I've set 'summary' in my dashboard but it never takes.

     

  7. 7tylerJan. 7th, 2007 at 2:08 am

    Anybody know if this affects people who use the Feedburner Feed Replacement plugin?  I assume people using that plugin are OK.  If I'm not mistaken, that plugin works on the same principle that workaround #2 uses.  Can anyone confirm?

  8. 8JimJan. 7th, 2007 at 4:18 am

    I'm actually feed time-out errors now on Feedburner.  Any idea why?

  9. 9Aaron BrazellJan. 7th, 2007 at 4:56 am

    Jim - perhaps a plugin - specifically Bad Behavior with <v2 or v2 in strict mode?

  10. 10TonyJan. 7th, 2007 at 6:03 pm

    The feedburner plugin is irrelevant to this . . . the error is still there. I used workaround one and everything is flowing fine.

  11. 11HendrikJan. 11th, 2007 at 4:48 pm

    Hi there,

    thanks for the nice working workaround!

     

  12. 12JWJan. 14th, 2007 at 4:57 pm

    The asides.php file is pretty big.

    You'll find the mentioned code at line 2231.

     Thanks.

  13. 13JWJan. 14th, 2007 at 4:59 pm

    ...sorry folks!

    Meant to say functions.php file.

    (Need to slow down) 

  1. 1 Netscape Pingback on Jan. 6th, 2007 at 10:04 am
  2. 1 digg / Technology / Upcoming Pingback on Jan. 6th, 2007 at 12:20 pm
  3. 1 Wordpress 2.06 Security Update - Andy Beard Pingback on Jan. 6th, 2007 at 12:46 pm
  4. 1 dzone.com - upcoming links Pingback on Jan. 6th, 2007 at 1:41 pm
  5. 1 Weblog Tools Collection » Blog Archive » WordPress Fix for Feedburner Pingback on Jan. 6th, 2007 at 2:29 pm
  6. 1 Problemi con FeedBurner » Il tuttlog di Tassoman Pingback on Jan. 6th, 2007 at 2:52 pm
  7. 1 WordPress 2.0.6: Feedburner issue, and fix « Mark on WordPress Pingback on Jan. 6th, 2007 at 2:53 pm
  8. 1 重灌狂人 » 升級WordPress 2.0.6 後,FeedBurner 服務會異常中斷的問題 Pingback on Jan. 6th, 2007 at 4:06 pm
  9. 1 Zanblog.it di Giorgio Zanetti » WordPress 2.0.6 in italiano Pingback on Jan. 6th, 2007 at 4:41 pm
  10. 1 Zanblog.it di Giorgio Zanetti » WordPress 2.0.6 in italiano Pingback on Jan. 6th, 2007 at 4:44 pm
  11. 1 ericsk’s blog » Blog Archive » WordPress 2.0.6 對 FeedBurner 的 bug Pingback on Jan. 6th, 2007 at 4:52 pm
  12. 1 belangrijk update voor WordPress - 2.06 at Enthousiasmeren Pingback on Jan. 6th, 2007 at 5:00 pm
  13. 1 MarcNext » Blog Archive » En weer een upgrade Pingback on Jan. 6th, 2007 at 5:03 pm
  14. 1 » WordPress 2.0.6 e le discossioni di Feedburner » WordPress Italy Pingback on Jan. 6th, 2007 at 5:17 pm
  15. 1 Basic Thinking Blog » kritisches Sicherheitsupdate für Wordpress Pingback on Jan. 6th, 2007 at 5:44 pm
  16. 1 Bicubic, a different concept… » WP 2.0.6, bug en FeedBurner Pingback on Jan. 6th, 2007 at 6:15 pm
  17. 1 Bloggemeyer » Blog Archiv » WP 2.06: Probleme mit Feedburner Pingback on Jan. 6th, 2007 at 6:35 pm
  18. 1 Testing, Sort Of » Another Blogger Pingback on Jan. 6th, 2007 at 6:40 pm
  19. 1 WordPress 2.0.6. und Probleme mit FeedBurner - Jowra | Webdesign - Photo - Artwork Pingback on Jan. 6th, 2007 at 6:56 pm
  20. 1 WordPress 2.0.6 y sus problemas con FeedBurner Pingback on Jan. 6th, 2007 at 7:50 pm
  21. 1 WordPress 2.0.6 bugfix for FeedBurner RSS feeds at NevilleHobson.com Pingback on Jan. 6th, 2007 at 8:22 pm
  22. 1 WordPress 2.0.6 - Sheeped Pingback on Jan. 6th, 2007 at 8:31 pm
  23. 1 .:|randgaenge|:. » Blog Archive » fastLinks … Pingback on Jan. 6th, 2007 at 9:08 pm
  24. 1 SigT Pingback on Jan. 6th, 2007 at 9:55 pm
  25. 1 WordPress 2.0.6 y sus problemas con FeedBurner Pingback on Jan. 6th, 2007 at 10:08 pm
  26. 1 Wordpress 2.0.6 Is Out!! | Wordpress Tutorials And Blogging Tips Pingback on Jan. 6th, 2007 at 10:26 pm
  27. 1 Blogultura.com » Blog Archive » Problema con Wordpress 2.06 y Feedburner Pingback on Jan. 6th, 2007 at 10:37 pm
  28. 1 Full(o)bloG » Blog Archive » Wordpress 2.0.6 e FeedBurner Pingback on Jan. 6th, 2007 at 10:46 pm
  29. 1 Mangas Verdes » FeedBurner bug en WordPress 2.0.6.y 2.1 beta Pingback on Jan. 7th, 2007 at 12:11 am
  30. 1 jtheo 2.0 » Archive » Wordpress 2.0.6 Pingback on Jan. 7th, 2007 at 12:47 am
  31. 1 digg / News / Upcoming Pingback on Jan. 7th, 2007 at 1:49 am
  32. 1 Cartoons Fans Lounge Pingback on Jan. 7th, 2007 at 3:03 am
  33. 1 Feed MIA at the Moment - PaulStamatiou.com Pingback on Jan. 7th, 2007 at 4:01 am
  34. 1 Blinking (WordPress 2.0.6 and FeedBurner Disconnects at The NeoSmart Files) Pingback on Jan. 7th, 2007 at 4:13 am
  35. 1 Extemp”F”oraneo » Pues ya tiene un “bug” Pingback on Jan. 7th, 2007 at 5:07 am
  36. 1 花儿开了 » WordPress 2.0.6 Feedburner Bug 及修复 Pingback on Jan. 7th, 2007 at 5:17 am
  37. 1 Wordpress 2.06 Out by Elliott Back Pingback on Jan. 7th, 2007 at 5:29 am
  38. 1 Jaslabs: High performance php » A feedburner fix for wordpress 2.0.6 Pingback on Jan. 7th, 2007 at 5:39 am
  39. 1 Small WordPress 2.0.6 Bug Leads to FeedBurner Disconnects - News Doggy - Fetched News Pingback on Jan. 7th, 2007 at 5:50 am
  40. 1 Small WordPress 2.0.6 Bug Leads to FeedBurner Disconnects « Digged Stories Pingback on Jan. 7th, 2007 at 5:53 am
  41. 1 CMS Applications | CMS Report Pingback on Jan. 7th, 2007 at 6:39 am
  42. 1 Miloš M. » Wordpress 2.0.6 in FeedBurner problem Pingback on Jan. 7th, 2007 at 7:57 am
  43. 1 Fat Mobil Content » ladies supergirl t-shirts Small WordPress 2.0.6 Bug Leads to FeedBurner Disconnects Pingback on Jan. 7th, 2007 at 9:00 am
  44. 1 Occhio a WordPress 2.0.6, problemi sul Michelangeblog Pingback on Jan. 7th, 2007 at 10:38 am
  45. 1 wordpress 2.0.6的feedburner bug Pingback on Jan. 7th, 2007 at 10:57 am
  46. 1 煎蛋 » wordpress 2.0.6导致feedburner停工 Pingback on Jan. 7th, 2007 at 11:14 am
  47. 1 Basic Thinking Blog » Wordpress 2.06 Probleme mit Feedburner Pingback on Jan. 7th, 2007 at 12:09 pm
  48. 1 WordPress 2.0.6_Ȼ Pingback on Jan. 7th, 2007 at 12:17 pm
  49. 1 Feed With Comments Support - Jeriko One Pingback on Jan. 7th, 2007 at 12:38 pm
  50. 1 WordPress 2.0.6 und Feed-Probleme | bueltge.de [by:ltge.de] Pingback on Jan. 7th, 2007 at 1:25 pm
  51. 1 Detectan el primer bug de Wordpress 2.0.6 - aNieto2K Pingback on Jan. 7th, 2007 at 1:28 pm
  52. 1 -=Discobeats=- Pingback on Jan. 7th, 2007 at 1:40 pm
  53. 1 WordPress Cross Site Scripting Vulnerability in templates.php Uncovered at The Blog Herald Pingback on Jan. 7th, 2007 at 2:09 pm
  54. 1 Gute und schlechte Neuigkeit zu Wordpress — Software Guide Pingback on Jan. 7th, 2007 at 2:33 pm
  55. 1 Wordpress 2.0.6 (at wongaBlog) Pingback on Jan. 7th, 2007 at 2:39 pm
  56. 1 Blogwartung » Wordpress-Update und Feedburner-Probleme Pingback on Jan. 7th, 2007 at 2:55 pm
  57. 1 Prime News Blog » Blog Archive » wonder woman orgasm Small WordPress 2.0.6 Bug Leads to FeedBurner Disconnects Pingback on Jan. 7th, 2007 at 2:59 pm
  58. 1 FALK stands for FUCK ART, LET’S KILL! » Wordpress 2.0.6 und Feedburner Pingback on Jan. 7th, 2007 at 3:03 pm
  59. 1 Another successful WordPress upgrade, I think | Off the Mark Pingback on Jan. 7th, 2007 at 3:41 pm
  60. 1 Wordpress 2.0.6 Upgrade » @ YugaTech! [ philippine technology news and reviews ] Pingback on Jan. 7th, 2007 at 4:40 pm
  61. 1 Cartoons Plugin » Blog Archive » final fantasy 12 release Small WordPress 2.0.6 Bug Leads to FeedBurner Disconnects Pingback on Jan. 7th, 2007 at 5:57 pm
  62. 1 WordPress 2.0.6 Released With Feedburner Fixes « Lorelle on WordPress Pingback on Jan. 7th, 2007 at 6:35 pm
  63. 1 How To Fix FeedMedic Errors In Your Feedburner Feed » Connected Internet Pingback on Jan. 7th, 2007 at 6:51 pm
  64. 1 Pottblog Pingback on Jan. 7th, 2007 at 7:59 pm
  65. 1 Recommended Update: WordPress 2.0.6 at The Blog Herald Pingback on Jan. 7th, 2007 at 8:33 pm
  66. 1 WordPress 2.0.6 DE-Edition ist verfügbar » admartinator.de Pingback on Jan. 7th, 2007 at 8:54 pm
  67. 1 alleswasbewegt Pingback on Jan. 7th, 2007 at 10:02 pm
  68. 1 Strange Happenings with Feedvertising and WordPress 2.0.6 » Bill2me.com Pingback on Jan. 7th, 2007 at 11:38 pm
  69. 1 Footsteps in the Mirror » Wordpress 2.0.6 and The Feedburner Bug Pingback on Jan. 7th, 2007 at 11:52 pm
  70. 1 SearchRoads » kim possible fanfiction Small WordPress 2.0.6 Bug Leads to FeedBurner Disconnects Pingback on Jan. 7th, 2007 at 11:55 pm
  71. 1 WordPress 2.0.6 Feedburner sorununa çözüm « WordPress Türkiye Forumları Pingback on Jan. 8th, 2007 at 1:13 am
  72. 1 Webanalyticsbook » Blog Archive » Feedburner bug w. Wordpress blog software Pingback on Jan. 8th, 2007 at 1:31 am
  73. 1 Wordpress & Feedburner Problems at MWGblog Pingback on Jan. 8th, 2007 at 2:38 am
  74. 1 Switching… » Wordpress got updated to 2.0.6 Pingback on Jan. 8th, 2007 at 7:16 am
  75. 1 blogpocket 6.0 » Cómo actualizar WordPress de 2.0.5 a 2.0.6 la locura de los weblogs dentro de uno Pingback on Jan. 8th, 2007 at 8:31 am
  76. 1 The Darkest Evil » Updated WordPress to Version 2.0.6 Pingback on Jan. 8th, 2007 at 8:35 am
  77. 1 Der Wunderer von Deutschland » WP 2.0.6 Pingback on Jan. 8th, 2007 at 12:11 pm
  78. 1 BlueCat is sleepy» Blog Archive » Sage 不吃我的 Feed Pingback on Jan. 8th, 2007 at 12:17 pm
  79. 1 BloggingPro China » WordPress 2.0.6和FeedBurner发生冲突 Pingback on Jan. 8th, 2007 at 1:37 pm
  80. 1 Ce we, pensez upgrader wordpress Pingback on Jan. 8th, 2007 at 2:40 pm
  81. 1 Wordpress 2.0.6 Break FeedBurner at Ah Knight’s Blog Pingback on Jan. 8th, 2007 at 3:21 pm
  82. 1 Careful Upgrading to WordPress 2.0.6 by Vernon Kesner Pingback on Jan. 8th, 2007 at 3:33 pm
  83. 1 Feed Down after WP Upgrade « WordPress Support Pingback on Jan. 8th, 2007 at 4:28 pm
  84. 1 ElCursor - Tu Blog de Tecnologia » Blog Archive » Detectan el primer bug de Wordpress 2.0.6 Pingback on Jan. 8th, 2007 at 4:44 pm
  85. 1 Crocodile Caucus » How’s my feed? Pingback on Jan. 8th, 2007 at 7:07 pm
  86. 1 Upgraded the Wordpress Engine » SELaplana Pingback on Jan. 9th, 2007 at 3:33 am
  87. 1 Wordpress und FeedBurner « Grimaldello Pingback on Jan. 9th, 2007 at 7:59 am
  88. 1 Get Feedburner working with WordPress » Techtites Pingback on Jan. 9th, 2007 at 2:04 pm
  89. 1 Bitelia » Primer bug de WordPress 2.0.6 Pingback on Jan. 9th, 2007 at 6:23 pm
  90. 1 Skiedriaus Kampas » WordPress 2.0.6 Pingback on Jan. 9th, 2007 at 9:15 pm
  91. 1 WordPress 2.0.6 Feedburner Bug 及修正方法 | 艾德的部落 天空 Pingback on Jan. 10th, 2007 at 4:40 am
  92. 1 tecosystems » links for 2007-01-10 Pingback on Jan. 10th, 2007 at 5:38 am
  93. 1 WordPress 2.0.6 Feedburner Bug 及修正方法 - WordPress歡樂正體中文交流所 Pingback on Jan. 10th, 2007 at 6:38 am
  94. 1 RUDEWORKS » Archivo » Vuelven los feeds Pingback on Jan. 10th, 2007 at 1:15 pm
  95. 1 Suzans Lust und Frust mit Linux Pingback on Jan. 10th, 2007 at 2:19 pm
  96. 1 Aggiornamenti at Quasi.test Pingback on Jan. 10th, 2007 at 8:50 pm
  97. 1 Diario a Borbo · WordPress 2.0.7 RC 1 Pingback on Jan. 11th, 2007 at 8:42 am
  98. 1 Wordpress 2.0.6 and Feedburner disconnect. : Eizil.com Reborn Pingback on Jan. 11th, 2007 at 12:38 pm
  99. 1 WordPress 2.0.6 Release at orioa Pingback on Jan. 11th, 2007 at 2:12 pm
  100. 1 Wordpress 2.0.6 Sicherheitsupdate | functional bytes blog Pingback on Jan. 11th, 2007 at 4:19 pm
  101. 1 Tech Spot » Blog Archive » Wordpress 2.0.6 και Feedburner πρόβλημα Pingback on Jan. 11th, 2007 at 7:17 pm
  102. 1 WordPress 2.0.6 - Feed Issues Resolved Pingback on Jan. 11th, 2007 at 11:55 pm
  103. 1 “Feeding” the Masses | TCRA Pingback on Jan. 12th, 2007 at 8:01 pm
  104. 1 Nibble Blog Pingback on Jan. 15th, 2007 at 8:08 pm
  105. 1 tecosystems » Some Good, Some Bad Pingback on Jan. 16th, 2007 at 2:10 am
  106. 1 WordPress 2.0.7 Released · cavemonkey50.com Pingback on Jan. 16th, 2007 at 3:25 am
  107. 1 Dario Salvelli’s Blog » Blog Archive » Wordpress 2.0.7 Pingback on Jan. 16th, 2007 at 12:23 pm
  108. 1 WordPress 2.0.7 Fixes the FeedBurner Bug at The NeoSmart Files Pingback on Jan. 16th, 2007 at 12:46 pm

Leave a Reply