406 提交表单不可接受 cakephp
最大发帖限制是多少?(通过表单最多可以发布的元素数量)我总共有 107 个问题(全部是,否单选按钮)。这与此有什么关系吗?因为当我删除一组问题,它工作正常。
我正在 cakephp 中提交问题表单。它不会提交填写所有值。 在 firebug 网络面板中,它显示 406 不可接受状态。 有人知道这里发生了什么吗?
该表单有一组问题。似乎最后一组问题导致了该问题。当我禁用该部分问题时,表单会正确提交。
what is the maximum post limit?(The number of elements that can be posted max through a form)I have 107 questions(All Yes No radio buttons) total.Has it got anything to do with that?Because when i remove a set of questions,it works fine.
I am submitting a form of questions in cakephp.It doesnt submits on filling all values.
In firebug net panel it shows a 406 Not Acceptable status.
Any body knows what is happening here?
The form has a set of questions.It seems that last set of question is causing the problem there.When i disable that section of questions the form submits correctly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不可能准确诊断您的问题发生了什么,但希望这可以帮助缩小范围。 (为了获得更好的答案,您应该提供更多信息以及可能的代码示例。)
A 406 Not Acceptable 错误。这种情况非常罕见,因为大多数网络浏览器都接受任何内容。
我在网上找到的最常见的解决方案是禁用 Apache 的 ModSecurity,这可能会导致该错误。
It would be impossible to diagnose exactly what is happening with your question, but hopefully this can help narrow it down. (For better answers, you should provide more information and, possible, code samples.)
A 406 Not Acceptable error occurs when the return type sent by the server is not accepted by the web browser (a.k.a., client). This is very rare, because most web browsers accept anything.
The most common solution I found online was to disable Apache's ModSecurity, which can lead to that error.
我不知道问题是什么,但似乎是与表单一起发布的元素的问题。它在本地服务器上不起作用,但当我将其上传到实时服务器上时,它工作正常。似乎存在一些问题本地服务器的一些设置(我无法使用)。有一些变量,例如>suhosin.post.max_array_深度,这些变量在实时服务器上不存在。它的大小设置为100,在我的情况下超出了当地的服务器(注意它是107)。我认为问题就在那里。但现在它工作正常
I dont know what was the problem but it seems to be the problem with elements that are posted with the form.It was not working on the local server but when i uploaded it on the live server it worked fine.It seems there was some problem with some settings of the Local server(Which were unavailable to me).There are some variables like >suhosin.post.max_array_depth which are not present on the live server.Its size is set to be 100 which was exceeded in my case on local server(Note it was 107).I think the problem lies there.But now its working fine