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:46

Go to C:\xamppp\php. Set these values in php.ini:

upload_max_filesize = 1000M
post_max_size = 0M
查看更多
柔情千种
3楼-- · 2019-01-02 20:50

You might not be uploading the right zip file. In my case, as a newbie to wordpress(I used to do hardcoding), I installed the zipped file that contained another zip file which is the actual theme neede to be upload. So what what need to do in this case is to unzip the file and locate the "theme_name.zip" inside.

查看更多
公子世无双
4楼-- · 2019-01-02 20:52

You will have to change the value of

post-max-size

upload-max-filesize

both of which you will find in php.ini

Restarting your server will help it start working. On a local test server running XAMPP, i had to stop the Apache server and restart it. It worked fine after that.

Hope this helps

查看更多
只靠听说
5楼-- · 2019-01-02 20:52

1. First u will find the php.ini file.

u can find php.ini file from this path. C:\xampp\php or from xampp folder.

2. Now open php.ini file and change the following:

1. post-max-size (change 8M to 800M).

2. upload-max-filesize (change 2M to 2000M).

3. Now stop the Apache server and MySQL.

4. Now restart Apache server and MySQL.

It worked fine after that.

Enjoy ur working now :)

查看更多
情到深处是孤独
6楼-- · 2019-01-02 20:56

Go to

C:\ drive

or that drive where xampp is installed click on xampp find php and open it , there you find php.ini folder open php.ini file with notepad and find upload_max_filesize and post_max_size in both "up and down find option",change both values to 1000M

查看更多
几人难应
7楼-- · 2019-01-02 20:57

That's an 8MB post_max_size error.

Set it to a value you're comfortable with.

查看更多
登录 后发表回答