This error is getting probably when you trying to upload an import on WordPress on your XAMPP local dev environment, right? Well, it doesn’t have to be just XAMPP – the same error can be in WAMP or somewhere else.
PHP warning is very simple. POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 means that your default value of post_max_size is not enough. By default, the post_max_size variable is set to 8MB (in 90% of cases).
To fix this error you only must update your post_max_size in your php.ini to a larger value (and as well upload_max_filesize).
Full instructions:
- Find the php.ini file
Xampp: C:\xampp\php or from xampp folder,
Wamp: C:\wamp\bin\php\php_version\php.ini,
Laragon: C:\laragon\bin\php - 2. Now open php.ini file and change the following:
- post_max_size (change 8M to 400M).
- upload_max_filesize (change 2M to 400M).
- Now stop the Apache server and MySQL.
- Now restart Apache server and MySQL.
Now it worked!