[英]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.5 , php5.6 , php7.0 , php7.1 ,因此请务必纠正正确的文件夹(因为由于遗留原因,我曾经在/ etc /中工作php5 )。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.