Title: xmlrpc.php: 412 Precondition Failed
Last modified: August 18, 2016

---

# xmlrpc.php: 412 Precondition Failed

 *  [jcn37203](https://wordpress.org/support/users/jcn37203/)
 * (@jcn37203)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/xmlrpcphp-412-precondition-failed/)
 * 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)

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/xmlrpcphp-412-precondition-failed/#post-606934)
 * sounds like mod_security.
 * put this in your .htaccess and see if it takes care of the problem..
 *     ```
       <Files xmlrpc.php>
       SecFilterInheritance Off
       </Files>
       ```
   
 *  [gillianf](https://wordpress.org/support/users/gillianf/)
 * (@gillianf)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/xmlrpcphp-412-precondition-failed/#post-606967)
 * Thank you, thank you, THANK YOU! Finally success! 😀
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/xmlrpcphp-412-precondition-failed/#post-606987)
 * youre welcome — happy blogging!
 *  Thread Starter [jcn37203](https://wordpress.org/support/users/jcn37203/)
 * (@jcn37203)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/xmlrpcphp-412-precondition-failed/#post-607061)
 * 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.
 *  [mattlavery](https://wordpress.org/support/users/mattlavery/)
 * (@mattlavery)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/xmlrpcphp-412-precondition-failed/#post-607215)
 * Not sure if you’re watching this thread at all. But your help reached yet another.
   Thank you.
 *  [harperbruce](https://wordpress.org/support/users/harperbruce/)
 * (@harperbruce)
 * [18 years ago](https://wordpress.org/support/topic/xmlrpcphp-412-precondition-failed/#post-607231)
 * 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
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years ago](https://wordpress.org/support/topic/xmlrpcphp-412-precondition-failed/#post-607232)
 * 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.

## Tags

 * [mod_security](https://wordpress.org/support/topic-tag/mod_security/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 5 participants
 * Last reply from: [whooami](https://wordpress.org/support/users/whooami/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/xmlrpcphp-412-precondition-failed/#post-607232)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
