We use cookies to ensure you can get the best experience on our site. If you keep using this site we assume that you agree to our use of cookies. Privacy Policy OK

How to Fix the POST Content-Length Exceeded Error

by | October 4, 2018

In this tutorial, we’re going to provide details regarding the error message POST Content-Length Exceeded in WordPress, including meaning and ways to fix it.

What Does the Error Mean?

By default, the maximum amount of data that can be transferred via PHP is 5MB. If you are a WordPress administrator and attempt to upload a file larger than this value, your upload will be interrupted and your web page will produce a POST Content-Length Exceeded warning.

The following screenshot shows an example that illustrates the error POST Content-Length.

post content length exceeded 2

How Can I Increase the Maximum Upload Limit in WordPress?

The maximum limit on uploading data in WordPress can be changed by modifying the PHP variables post_max_size and upload_max_filesize, both of which can be found in your web hosting account’s main php.ini file.

AwardSpace offers its users to change these PHP variables in the following two ways:

  • through the AwardSpace PHP Settings Manager
  • with the use of a custom php.ini file

Note: Both features are only available to our premium hosting account customers. If you own a free hosting plan and are looking to get a premium one, you are welcome to review our offers at our shared hosting page.

Solution #1: Using the AwardSpace PHP Settings Manager

  1. Sign in to your AwardSpace account via our login portal.
  2. Under the Advanced Tools area, click on the PHP Settings link.
  3. Click on the here link in order to access the PHP Settings editor.
  4. Once you are inside the editor, locate the variables post_max_size and upload_max_filesize. post content length exceeded 4
  5. Set the upload limit to a value greater than the size of your theme file and press Save.

Solution #2: Generating a custom php.ini file

An alternative way to increase the maximum upload limit is with the creation of a php.ini file.

Create a new file under your WordPress main directory and name it php.ini. Using your favorite editor or our built-in File Manager, open the php.ini file you’ve created and insert the below code into it:

  post_max_size = 30M
  upload_max_filesize = 30M

The above set of rules will allow you to upload files via PHP up to 30MB in size.

After you submit the changes, log into your WordPress back-end and retry the upload process. If everything goes as expected, you will receive a system notification that your theme/plugin has been installed.

post content length exceeded 3

Related Posts
Gutenberg Tutorial: Keyboard Shortcuts Featured Image

Gutenberg Tutorial: Keyboard Shortcuts

Learning the various Gutenberg keyboard shortcuts is one of the best ways to improve your productivity in WordPress.

How to Update WordPress Theme

Updating the theme(s) that you are using on your WordPress website is not only about getting new features but also to ensure the safety of your online...

How to Create WordPress Child Theme

WordPress is a highly customizable CMS. It is true that a lot of the changes that you can make depend on the theme that you’ve installed. On the other...

awardspace logo
Where Ideas Turn Into Websites