Post article failed with 'Precondition Failed' with wordpress

简介:
之前在WorePress 3.0.1上Post一篇博文的时候出现了"Precondition Failed The precondition on the request for the URL /wp-admin/post.php evaluated to false."的错误页面,这个错误看上去不像是由php引起的,很有可能是apache相关的一个错误。Google了半天,网上讨论认为这可能是由于MAD_SECURITY模块引起的,而非WordPress的Bug。一般该错误可以通过修改.htaccess文件规避,透过Cpanel或ssh等界面修改该文件(一般就在虚拟空间的根目录下),在结尾处加入以下记录:
<Files post.php>
SecFilterInheritance Off
</Files>


# END WordPress

修改后保存并再次尝试Publish文章,发现不再出现"Precondition Failed"错误。



本文转自maclean_007 51CTO博客,原文链接:http://blog.51cto.com/maclean/1277577

相关文章
|
3月前
|
前端开发
Request method ‘POST‘ not supported。 Failed to load resource: net::ERR_FAILED
这篇文章讲述了在前后端分离的项目中,由于前端错误地使用了GET请求方法而不是支持的POST,导致请求被后端拒绝的问题,并提供了相应的解决方法和HTTP方法的CRUD映射知识。
Request method ‘POST‘ not supported。 Failed to load resource: net::ERR_FAILED
|
5月前
svn: E175002: Commit failed (details follow): svn: E175002: Unexpected HTTP status 502Bad Gateway on
svn: E175002: Commit failed (details follow): svn: E175002: Unexpected HTTP status 502Bad Gateway on
155 1
picgo Request failed with status code 404
picgo Request failed with status code 404
|
6月前
|
Kubernetes 容器
使用kubeadm部署k8s报错:The kubelet is not running或者level=error msg="Handler for POST /v1.43/images/create returned error: Head \"https://us-west2-dock
使用kubeadm部署k8s报错:The kubelet is not running或者level=error msg="Handler for POST /v1.43/images/create returned error: Head \"https://us-west2-dock
|
IDE Java 开发工具
Idea 启动报错 failed to create jvmjvm path url或failed to create jvmerror code -1 jvm path
Idea 启动报错 failed to create jvmjvm path url或failed to create jvmerror code -1 jvm path
162 0
|
SQL 关系型数据库 MySQL
【解决思路】HTTP Status 500 Type Exception ReportMessage Request processing failed; 【已解决】
经常测试的一个网页,突然报错500。前面也没有发生过,但突然报错,只能先改错了,不然都没法进入页面。为什么会调用到存在bug的语句,而以前没有发生这种情况?这一问题没能想清楚,只能归咎于编译器了。
387 0
【解决思路】HTTP Status 500 Type Exception ReportMessage Request processing failed; 【已解决】
成功解决404 Not Found Not Found The requested URL was not found on the server. If yo
成功解决404 Not Found Not Found The requested URL was not found on the server. If yo
|
Docker 容器
Error response from daemon: conflict: unable to delete 31f279e888c0 (must be forced) - image is bein
Error response from daemon: conflict: unable to delete 31f279e888c0 (must be forced) - image is bein
151 0
Error response from daemon: conflict: unable to delete 31f279e888c0 (must be forced) - image is bein
|
PHP
phpcms 不能外网访问,ERR_CONTENT_DECODING_FAILED
##这个坑真的爬了好几天,心痛啊,这里介绍的问题是你服务器的配置没问题,php能访问,方正绝望了的最后终极方法! 回想下,你是不是用记事本改过phpcms的文件,比如system.php之类的,万恶的就是记事本了,他保存的不是标准的utf-8格式,真是恶心极了。
864 0