• Flickr posting has been working for me fine for several months now, but today I realized my flickr posts were not showing up in the blog.

    As I look more in to it, I see that when I try to load xmlrpc.php with a browser, I see the “412 Precondition Failed. The precondition on the request for the URL /blog/xmlrpc.php evaluated to false.” message.

    At first I was using WP 2.0, and thought maybe upgrading would fix the problem. So I upgraded to 2.2, and the error is still there.

    I’m wondering if my host messed up something with the PHP setting or something, because it’s been working without issue for so long, and I haven’t changed anything.

    Ideas?

Viewing 7 replies - 1 through 7 (of 7 total)
  • sounds like mod_security.

    put this in your .htaccess and see if it takes care of the problem..

    <Files xmlrpc.php>
    SecFilterInheritance Off
    </Files>

    Thank you, thank you, THANK YOU! Finally success! ??

    youre welcome — happy blogging!

    Thread Starter jcn37203

    (@jcn37203)

    Yes, that solved my problem, thanks a bunch.

    Don’t understand how it ever worked to begin with, but I guess I don’t need to, as long as it works now.

    Not sure if you’re watching this thread at all. But your help reached yet another. Thank you.

    That solution also works for more recent installs, e.g. 2.5.1. I’ve been running into a “Precondition failed” error in several places, such as using the Gallery to add an image. Putting those lines into .htaccess with the file name listed in the error message cleared the problem.

    Bruce — Harper Blue

    2.5.1 being the wordpress version, NOT the mod_security version. Just to clear up any future confusion. And note that mod_security version 2.5 does not allow for disabling using one’s .htaccess — the httpd.conf must be edited.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘xmlrpc.php: 412 Precondition Failed’ is closed to new replies.