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

Brentwood – Golf Course Theme [Free theme download]

Demo Download Key Features Page Builder Included ($34 Value) – Easily build your pages with...

Meetup – Conference Event WordPress Theme [Free theme download]

Demo Download Meetup – Conference Event WordPress Theme Meetup is a simple and easy-to-use theme...

Deeds – Best Responsive Nonprofit Church WordPress Theme [Free theme download]

Demo Download The lightweight and finely coded Deeds premium Church WordPress Theme 2021 is...

Kraft – Minimal Portfolio WordPress Theme [Free theme download]

Demo Download Kraft 2.4 is live! Change Log Description Kraft is minimal, modern and beautiful portfolio WordPress...

PeakShops – Modern & Multi-Concept WooCommerce Theme [Free theme download]

Demo Download Changelog Update 1.4.2 – 03.01.2021 - Added images for Text button styles -...

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