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

相关文章
|
5月前
|
前端开发
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
picgo Request failed with status code 404
picgo Request failed with status code 404
|
8月前
|
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
|
SQL 关系型数据库 MySQL
【解决思路】HTTP Status 500 Type Exception ReportMessage Request processing failed; 【已解决】
经常测试的一个网页,突然报错500。前面也没有发生过,但突然报错,只能先改错了,不然都没法进入页面。为什么会调用到存在bug的语句,而以前没有发生这种情况?这一问题没能想清楚,只能归咎于编译器了。
437 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
|
开发工具 git
解决:The requested URL returned error: 403
今天在 arm 架构的服务器上创建工程时,遇到了一个报错,执行的命令如下: git clone git.liuzhen007.com/boffmpeg.gi… 报错信息如下: fatal: unable to access 'git.liuzhen007.com/boffmpeg.gi…': The requested URL returned error: 403
2446 0
|
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
161 0
Error response from daemon: conflict: unable to delete 31f279e888c0 (must be forced) - image is bein