简体   繁体   English

警告:11394639字节的POST内容长度超过了8388608字节的限制

[英]Warning: POST Content-Length of 11394639 bytes exceeds the limit of 8388608 bytes

I have gone through all the solutions that I could find including these ones but couldn't resolve my problem. 我已经经历了所有我能找到包括解决了这些 的人 ,但解决不了我的问题。

I have made following changes to both php.ini production & development version; 我对php.ini的生产和开发版本进行了以下更改;

post_max_size = 5000M
upload_max_filesize = 5000M

However it doesn't make any difference. 但是,它没有任何区别。 If I am trying to upload image files of large value, I am receiving 如果我尝试上传较大价值的图像文件,我将收到

below response error in my console-log; 在我的控制台日志中低于响应错误;

<br />
<b>Warning</b>:  POST Content-Length of 11394639 bytes exceeds the limit of 
8388608 bytes in <b>Unknown </b> on line <b>0</b><br /> []

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

var data = JSON.parse(this.responseText);

I am hoping to have clarified my issue. 我希望澄清我的问题。 Thanks for looking into it in advance ! 感谢您提前调查!

I have made following changes to both php.ini production & development version; 我对php.ini的生产和开发版本进行了以下更改;

post_max_size = 5000M upload_max_filesize = 5000M post_max_size = 5000M upload_max_filesize = 5000M

I did have the same issue, but after changing the php.ini file and rebooting apache this worked for me. 我确实有同样的问题,但是在更改了php.ini文件并重新启动apache之后,这对我有用。

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data SyntaxError:JSON.parse:JSON数据的第1行第1列出现意外字符

I can see that you have some issue there. 我可以看到您那里有些问题。 Check the file against any dodgy characters as it seems to be causing an issue. 检查文件中是否包含任何令人眼花characters乱的字符,因为这似乎引起了问题。 Sometimes when you want to upload a file, its name could have illegal characters for the database or js. 有时,当您要上传文件时,其名称可能包含用于数据库或js的非法字符。 Make sure that every character in the file name you try to upload does not have any illegal character, or it is encoded/decoded accordingly. 确保您尝试上传的文件名中的每个字符都没有非法字符,或者已相应地对其进行了编码/解码。

I hope I helped - this is my first post. 希望我能帮上忙-这是我的第一篇文章。

Let me know how did it go! 让我知道情况如何!

Best wishes, mateekk 最好的祝福,mateekk

I had the same problem in my ubuntu 16.04. 我在Ubuntu 16.04中遇到了相同的问题。 After the upgrading of php, I have several php.ini and at the begining I was mixed up. 升级php后,我有几个php.ini,一开始我很困惑。

Under /etc/php , I have the folders php5.5 , php5.6 , php7.0 , php7.1 , so be sure to correct the right one (because ,due to legacy, I was used to work in /etc/php5 ). / etc / php下 ,我有文件夹php5.5php5.6php7.0php7.1 ,因此请务必纠正正确的文件夹(因为由于遗留原因,我曾经在/ etc /中工作php5 )。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PHP 警告:8412174 字节的 POST Content-Length 超出了 Unknow 中 8388608 字节的限制 - PHP Warning: POST Content-Length of 8412174 bytes exceeds the limit of 8388608 bytes in Unknow 警告:POST Content-Length的25447804字节超出了第0行上Unknown中的8388608字节的限制 - Warning: POST Content-Length of 25447804 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 警告:90612004 字节的 POST Content-Length 超出了第 0 行未知中 8388608 字节的限制 - Warning: POST Content-Length of 90612004 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 如何避免:警告:POST内容长度47820076字节超过了第0行的Unknown中的8388608字节限制 - How to avoid: Warning: POST Content-Length of 47820076 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 PHP 警告:8978294 字节的 POST 内容长度超出第 0 行未知中 8388608 字节的限制 - PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 处理得很好“POST内容 - 字节长度超过”警告限制 - Handle nicely “POST Content-Length of bytes exceeds the limit of” warning 文件上载警告发布内容的字节长度超出限制 - File Upload Warning post content-length of bytes exceeds the limit 167289889 字节的 POST 内容长度超过了 41943040 字节的限制 - POST Content-Length of 167289889 bytes exceeds the limit of 41943040 bytes PHP 警告:未知:68 字节的 POST 内容长度超过第 0 行未知中 10 字节的限制, - PHP Warning: Unknown: POST Content-Length of 68 bytes exceeds the limit of 10 bytes in Unknown on line 0, PHP警告:53160843字节的POST内容长度超过了行0上“未知”中的33554432字节的限制 - PHP Warning: POST Content-Length of 53160843 bytes exceeds the limit of 33554432 bytes in Unknown on line 0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM