I’m too tired to even properly research this, but lately (?? weeks) I’ve been unable to get flickr to properly post blog posts to several of my WordPress blogs. Flickr keeps reporting my password may need to be changed, which is bunk as I know they are correct.
With a little digging, I found an answer in the WordPress support forums that appears to work, but requires an edit to the xmlrpc.php file in your WP installation directory. After the first PHP statement of “define(‘XMLRPC_REQUEST’, true);” (inside the PHP tags), insert:
if (phpversion()=="5.2.2") { $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input"); }
Found buried in the WP forums, and references also http://bugs.php.net/bug.php?id=41293 and nothing I could find at flickr in their useless FAQ.
I’d love to know if this worked for you. It did nothing for me. 🙁
But I really appreciate that you looked into it!!
Hey, maybe Dreamhost has us on some kind of crazy lockdown since the hacked WordPress fiasco thing a short while back. Didn’t that hit you? It didn’t me. But this situation counts as a hit, if that’s the problem.
I got it I got it! I checked the Dreamhost forums and found answer here:
http://discussion.dreamhost.com/showthreaded.pl?Cat=0&Board=3rdparty&Number=80451&Search=true&Forum=3rdparty&Words=wordpress%20xmlrpc.php&Match=And&Searchpage=0&Limit=100&Old=6months&Main=80451
The xmlrpc.php file should begin with:
That was the code I posted. You have to watch the linebreaks in the code samples.
Two things:
One: while that *was* the code you posted, notice your version says “"” instead of having actual quotes, so it doesn’t work if you copy/paste. It wasn’t due to any line break issue.
Two: you don’t mention the “define (‘XMLRPC_REQUEST’, TRUE);” segment, which for whatever reason, my xmlrpc.php file did not have. The fix does NOT work without that line. So since your site is a good reference point for many people, I posted my comment so they’d know to make sure they have that line in.
Oh damn, your blog converted the " character entity into a quote, so no one will see what I meant in point one but hopefully you get it. " followed by ; is not the same as “.
My bad. I am rusty at blogging, and did not see the quote conversion. And code with < tags on comments gets stripped, so I could not see your example.
But my example above is fixed and folks can follow your link to the forums for another example (though there is an errant linebreak to watch out for). My copy of xmlrpc.php already had the statement yours was lacking, so I did not catch that as an issue.
Sweet! I SO love the internet! And the CogDog!