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

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:

  1. 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. 2. Now open php.ini file and change the following:
    1. post_max_size (change 8M to 400M).
    2. upload_max_filesize (change 2M to 400M).
  3. Now stop the Apache server and MySQL.
  4. Now restart Apache server and MySQL.

Now it worked!

Recent Articles

Why is WordPress Asking For Your FTP Credentials to Install Plugins?

You want to install any plugin, but *blink* - WordPress need your FTP credentials. What the hell? The problem is simple -...

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

This error is getting probably when you trying to upload an import on WordPress on your XAMPP local dev environment, right? Well,...

How to Hide Shipping Methods in WooCommerce?

This is a small detail, but WooCommerce doesn't have built-in any function for hiding shipping methods based on different situations. Imagine when...

How to Get WordPress Post Featured Image URL

Are you a WordPress developer or an advanced WordPress user? Whoever you are, sometimes you may need the direct URL of a...

How to Bulk Delete Media in WordPress

WordPress and media. That's the topic for a book. Sometimes is not easy to find what you need and when you have...

Get in touch

Be our first-class reader, build a community and follow us on social media!

Leave A Reply

Please enter your comment!
Please enter your name here