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!

UNLIMITED DOWNLOADS: 50+ Million Website Templates & Design Assets

All the Website Templates you need and many other design elements, are available for a monthly subscription by subscribing to Envato Elements. The subscription costs $16.50 per month and gives you unlimited access to a massive and growing library of over 50 million items that can be downloaded as often as you need (stock photos too)!

Recent Articles

How to Hide “Add to Cart” Button in WooCommerce Quickly

Once on your project, you will maybe need to disable selling products, make a catalog from your e-commerce store, or simply hide...

Agronix – Organic Farm Agriculture WordPress Theme [Free WordPress theme download]

Demo Download Agronix – Organic Farm WordPress Theme. We are Happy to presenting you the Agronix Agriculture Farming WordPress Theme. It is very easy to customize...

Roux – Creative Portfolio WordPress Theme [Free WordPress theme download]

Demo Download This is Roux, a splash of vibrant creativity your beautiful new website needs! Roux comes with tons of creative portfolio, gallery and graphic...

Brico – Plumber WordPress Theme [Free WordPress theme download]

Demo Download Features Overview Drag and drop page builder – Elementor One click install demo Demo content included WPML, RTL...

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