WordPress.org

Ready to get started?Download WordPress

Forums

xmlrpc.php: 412 Precondition Failed (8 posts)

  1. jcn37203
    Member
    Posted 6 years ago #

    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?

  2. whooami
    Member
    Posted 6 years ago #

    sounds like mod_security.

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

    <Files xmlrpc.php>
    SecFilterInheritance Off
    </Files>
  3. gillianf
    Member
    Posted 6 years ago #

    Thank you, thank you, THANK YOU! Finally success! :D

  4. whooami
    Member
    Posted 6 years ago #

    youre welcome -- happy blogging!

  5. jcn37203
    Member
    Posted 6 years ago #

    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.

  6. mattlavery
    Member
    Posted 6 years ago #

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

  7. harperbruce
    Member
    Posted 6 years ago #

    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

  8. whooami
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic