Post Max Size Upper Limit Error WordPress PHP INI: How to Fix It
If you are trying to upload an image, install a plugin, import a website, or publish content in WordPress and suddenly see a post max size upper limit error wordpress php ini, you are not alone.
This error is usually caused by a PHP configuration limit on your hosting account. WordPress relies on PHP to process uploaded files and submitted data, and when those limits are too low, certain tasks can fail.
The good news is that this is normally a configuration problem rather than a serious WordPress fault.
In this guide, we will explain exactly what the error means, why it happens, and several practical ways to fix it. We will also show you how to identify the relevant PHP settings and what to do if your hosting environment does not allow you to change them directly.

The Core Basics
Before changing anything, it helps to understand the three settings commonly involved in this type of WordPress problem.
PHP is the server-side programming language used by WordPress. When you upload files or submit information through WordPress, PHP processes the request.
post_max_size controls the maximum amount of data PHP will accept in a single POST request. A POST request is commonly used when submitting forms, uploading media, or sending information to WordPress.
For example, if `post_max_size` is set to 8M, PHP may reject a request containing more than 8 MB of submitted data.
upload_max_filesize controls the maximum size of an individual file that PHP will accept for uploading.
These settings are related but are not identical. If `upload_max_filesize` is 64M but `post_max_size` is only 8M, increasing the upload limit alone may not solve the problem.
There are also other PHP limits, including `memory_limit`, `max_execution_time`, and `max_input_time`, that can affect large uploads or resource-intensive WordPress operations.
Why the Error Happens
The problem occurs when your requested operation exceeds one of the limits configured by your hosting environment.
For example:
* You try uploading a 20 MB image.
* WordPress allows files up to 64 MB.
* PHP `upload_max_filesize` is 64M.
* However, `post_max_size` is only 8M.
* The upload can still fail.
This is why checking only the WordPress Media Library upload limit is not always enough.
💡 WP Fix It Co Recommendation: If you’re dealing with the post max size upper limit error wordpress php ini, a fast, secure WordPress host can make PHP configuration changes easier to manage and help you implement the solution smoothly. Get Hostinger WordPress Hosting here.
Step-by-Step Guide to Fix the WordPress PHP INI Error
Step 1: Check Your Current WordPress Upload Limit
Start by checking what WordPress currently allows.
In your WordPress dashboard, go to:
Media → Add New
Look for the maximum upload file size displayed on the page.
You can also check:
Tools → Site Health → Info → Server
Expand the Media handling or relevant server information section if available.
Depending on your WordPress version and hosting configuration, you may see PHP-related limits such as the maximum post size and maximum upload size.
Write these values down before making changes.
Step 2: Understand Which Limit Needs Increasing
Do not automatically increase every PHP setting to an enormous number.
The most important settings are:
* `post_max_size`
* `upload_max_filesize`
* `memory_limit`
* `max_execution_time`
* `max_input_time`
A sensible configuration might look something like:
“`text
upload_max_filesize = 64M
post_max_size = 64M
memory_limit = 256M
max_execution_time = 300
max_input_time = 300
“`
The exact values you need depend on your website and hosting environment.
One important rule is that post_max_size should generally be equal to or larger than upload_max_filesize.
If you set `upload_max_filesize` to 64M but leave `post_max_size` at 8M, you can still encounter upload problems.
Step 3: Try Changing PHP Settings Through Your Hosting Panel
Many WordPress hosting providers provide a control panel where you can select the PHP version and modify PHP configuration values.
Look for an option such as:
* PHP Configuration
* PHP Options
* PHP Settings
* MultiPHP INI Editor
* PHP INI Editor
The exact name varies between hosting providers.
Once you locate the PHP configuration area, find:
“`text
post_max_size
“`
Increase it to an appropriate value.
You may also need to increase:
“`text
upload_max_filesize
“`
For example, if you regularly upload large images, videos, PDFs, or other files, you might use:
“`text
post_max_size = 64M
upload_max_filesize = 64M
“`
Save your changes and allow a few moments for the new configuration to take effect.
Step 4: Use a php.ini File When Supported
Another possible solution is creating or editing a `php.ini` file.
A typical configuration could contain:
“`ini
upload_max_filesize = 64M
post_max_size = 64M
memory_limit = 256M
max_execution_time = 300
max_input_time = 300
“`
You would normally place the file in the appropriate directory for your hosting environment.
However, there is an important warning here.
Do not assume every host allows local `php.ini` overrides.
Some hosting providers ignore these files, while others require them to be placed in a particular directory. The correct method depends on your PHP setup.
If the changes appear to have no effect, contact your hosting provider rather than repeatedly modifying configuration files.
Step 5: Check Whether `.user.ini` Is Supported
Some servers use a `.user.ini` file instead of `php.ini` for per-directory PHP configuration.
Where supported, you might use:
“`ini
upload_max_filesize = 64M
post_max_size = 64M
memory_limit = 256M
“`
Again, this depends on your hosting environment.
A `.user.ini` file may also take some time before the changes become active because PHP can cache these settings.
Step 6: Check Your `.htaccess` Configuration
On certain Apache-based hosting environments, PHP values can sometimes be modified through `.htaccess`.
For example:
“`apache
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 256M
“`
However, use caution with this method.
If your server does not permit these directives, adding them can cause a 500 Internal Server Error.
If your website breaks immediately after adding PHP directives to `.htaccess`, remove the new lines and restore the previous configuration.
Do not use this method unless your hosting environment supports it.
Step 7: Ask Your Hosting Provider to Increase the Limit
Sometimes the simplest solution is also the safest.
If you cannot change `post_max_size` yourself, contact your hosting provider and explain that you need the PHP `post_max_size` and `upload_max_filesize` values increased.
Tell them:
* Your current `post_max_size`
* Your desired maximum upload size
* Your current `upload_max_filesize`
* What WordPress operation is failing
Your host may be able to change the setting at server level.
This is particularly useful with managed WordPress hosting, shared hosting plans, or environments where customers have limited access to PHP configuration.
Step 8: Test the Website Again
After making changes, return to WordPress and try the operation that originally failed.
For example, attempt to:
1. Upload the file again.
2. Import the website again.
3. Install the plugin again.
4. Submit the affected form again.
If the operation works, the PHP limit was likely the cause.
If it still fails, check the error message carefully. Another PHP restriction or WordPress issue may be responsible.
Best Practices and Pro Tips
Increasing PHP limits can solve the immediate problem, but you should avoid setting everything unnecessarily high.
Start with the smallest values that comfortably support your website.
For many standard WordPress websites, a `memory_limit` of 256M and upload limits between 32M and 64M may be sufficient, although requirements vary significantly.
Keep WordPress, plugins, themes, and PHP updated. Outdated software can create compatibility and performance problems that are unrelated to PHP limits.
It is also worth optimizing large images before uploading them. A 12 MB photograph may provide little visible benefit over a properly compressed 1–2 MB version.
Finally, make configuration changes carefully. Take a backup before editing important files such as `wp-config.php` or `.htaccess`.
Common Mistakes to Avoid
1. Increasing Only `upload_max_filesize`
This is one of the most common mistakes.
If `post_max_size` remains lower, large uploads can continue to fail.
2. Setting Everything to Extremely High Values
Huge PHP limits are not automatically better.
Excessive limits can allow individual requests to consume significant server resources.
3. Editing the Wrong PHP Configuration
You may change one PHP configuration file while your website is using another PHP configuration.
Always verify the active settings afterward.
4. Ignoring Hosting Restrictions
Some hosting accounts simply do not permit customers to override certain PHP values.
If your changes do nothing, ask your hosting provider for assistance rather than endlessly modifying files.
Conclusion: Fixing the Post Max Size Upper Limit Error
The post max size upper limit error wordpress php ini is usually caused by a mismatch between WordPress’s requirements and the PHP limits configured on your server.
The key settings to investigate are `post_max_size` and `upload_max_filesize`, followed by `memory_limit` and the relevant execution-time settings when larger operations are involved.
Start by checking your existing values. Then increase them carefully through your hosting control panel, a supported PHP configuration file, or with assistance from your hosting provider.
Most importantly, don’t panic when WordPress displays this error. It is usually a configuration issue that can be identified and corrected.
For more practical WordPress troubleshooting guides, performance advice, and easy-to-follow technical solutions, keep visiting WP Fix It Co.