PHP Warning: POST Content-Length of 8978294 bytes

2019-01-02 20:34发布

I am getting this error when trying to upload an import on WordPress on my XAMPP local dev environment:

Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

I changed the upload_max_filesize from 2M to 1000M, but that didn't seem to do anything.

Any ideas?

15条回答
泪湿衣
2楼-- · 2019-01-02 20:59

Go to browser and search for "php.ini" and then open it , and change these two values :

post_max_size= 1000000000000M

upload_max_filesize= 10000000000000M

if you open the "php.ini" file using notepad , you can search for these two values by clicking : cmd+f

查看更多
有味是清欢
3楼-- · 2019-01-02 21:01

Already restarted your Webserver?

This will force php to reload the php.ini

查看更多
千与千寻千般痛.
4楼-- · 2019-01-02 21:02

From the XAMPP panel, click on the ADMIN button on the Apache site. Then choose to edit php.ini And add the missing post_max_size to a value you are comfortable with.

post_max_size = 100M
查看更多
登录 后发表回答