{"id":342,"date":"2007-05-31T13:07:18","date_gmt":"2007-05-31T20:07:18","guid":{"rendered":"http:\/\/www.red-sweater.com\/blog\/342\/xml-rpc-response-parsing-failed"},"modified":"2007-05-31T13:11:34","modified_gmt":"2007-05-31T20:11:34","slug":"xml-rpc-response-parsing-failed","status":"publish","type":"post","link":"https:\/\/redsweater.com\/blog\/342\/xml-rpc-response-parsing-failed","title":{"rendered":"XML-RPC Response Parsing Failed"},"content":{"rendered":"<p>We are currently living through a minor sort of plague when it comes to remote editing of PHP-based blogs. As web hosting companies upgrade to PHP 5.2.2, some of you may notice that your attempts to publish or edit entries with <a href=\"http:\/\/www.red-sweater.com\/marsedit\/\">MarsEdit<\/a> yields an error dialog with a cryptic error &#8220;XML-Response Parsing Failed.&#8221; This bug is caused by a bug in PHP that causes blogging systems to return blank responses instead of the expected XML result.<\/p>\n<p>\nWordPress was quick to work around the bug, and included the <a href=\"http:\/\/trac.wordpress.org\/changeset\/5445\">change<\/a> in their 2.2 release. Unfortunately the 2.2 release also added a minor time zone bug, so we&#8217;ll be looking forward to 2.2.1 for complete normalcy.\n<\/p>\n<p>\nIf you want to fix the bug yourself on whatever system you&#8217;re using, the workaround seems to be essentially adding this line to the top of your XML-RPC php file (after the &#8220;&lt;?php&#8221;):\n<\/p>\n<p><pre>$HTTP_RAW_POST_DATA = file_get_contents( 'php:\/\/input' );<\/pre>\n<\/p>\n<p>\nNasty bug. Easy workaround. Hope this passes soon. I get new support inquiries every time DreamHost updates a batch of servers :)\n<\/p>\n<p>(Big thanks to &#8220;mph&#8221; for first bringing this issue to my attention in the <a href=\"http:\/\/www.red-sweater.com\/forums\/viewtopic.php?id=232\">MarsEdit Forums<\/a>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are currently living through a minor sort of plague when it comes to remote editing of PHP-based blogs. As web hosting companies upgrade to PHP 5.2.2, some of you may notice that your attempts to publish or edit entries with MarsEdit yields an error dialog with a cryptic error &#8220;XML-Response Parsing Failed.&#8221; This bug [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40],"tags":[],"class_list":["post-342","post","type-post","status-publish","format-standard","hentry","category-marsedit"],"_links":{"self":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/comments?post=342"}],"version-history":[{"count":0,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"wp:attachment":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/media?parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/categories?post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/tags?post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}