rahji.com

Main menu:

Site search

Categories

My Other Sites

People

Places

WordPress Blogging with TextMate

TextMate is pretty incredible. I just started reading the book on it and if I can ever get used to the 8 million key combinations I’m sure it’ll shave minutes off of my year. Really, though, I’m amazed everytime I see a screencast where someone is using TextMate and the code just seems to blast out with only a few keystrokes.

After reading the section of the book about blogging with TextMate I went to their site to find out more about that feature. Whether you’re a nerd or not, you have to admit this screencast is cool.

So long story short, I tried it with this WordPress blog and it kept failing when I tried to Fetch Post. I was hoping someone had the answer and someone did, but it took me an hour to find it. So if you’re getting an error like “XML-RPC server accepts POST requests only”, here’s what you have to do.

Edit xmlrpc.php in your main wordpress directory and add the following line before the first mention of $HTTP_RAW_POST_DATA:

$HTTP_RAW_POST_DATA = file_get_contents("php://input");

The root of the problem is this bug in php 5.2.2, if you’re interested in keeping track of when it gets fixed.

If this post is interesting to you, subscribe to this site.

Comments

Pingback from ye.hu » textmate
Time: October 17, 2007, 11:23 am

[...] véve ezt This entry was written by ioros and posted on October 17, 2007 at 12:35 pm and filed under Url. [...]

Write a comment