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 Change WordPress Theme If It Does Not Work (No Access to wp-admin) Through phpMyAdmin

Something is wrong. Your WordPress theme has got a blank screen and you can not log in to your admin through /wp-admin/...

How to Bulk Deactivate WordPress Plugins (No Access to WP-Admin) Through phpMyAdmin

Sometimes happens that you don't have any backups of your WordPress site (ups) and after your plugins update nothing works (ups, twice!),...

Landco – Garden & Landscaping WordPress Theme [Free WordPress theme download]

Demo Download Landco – Garden & Landscaping WordPress Theme Landco – Garden & Landscaping...

Optrica – Optometrist & Eye Care WordPress Theme [Free WordPress theme download]

Demo Download Optrica – A Premium WordPress Theme for all kind of optometrist...

Qwery – Multi-Purpose Business WordPress Theme + RTL [Free WordPress theme download]

Demo Download Giant Multi-Purpose Business Elementor WordPress Theme v1.0.4 Qwery is an innovative responsive...

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