When installing a New Drupal installation or upgrading your Drupal you may experience the following error.

"An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (32 MB) that this server supports."

What causes this error?

There are several reasons this error may be thrown. There may be an issue with the php.ini settings, conflicting .htaccess or settings.php code, or you may be flagging Apache's mod_security. Below are some fixes to this "An unrecoverable error" occurred error.

Checking the php.ini memory settings

Edit your local PHP settings to see if your file size settings are high enough for your Drupal to work. The following shows a typical file size settings

post_max_size = 128 MB
upload_max_filesize = 32MB

You can increase the post_max_size and the upload_max_filesize to a higher number to see if this fixes the problem. You will need to make the php.ini recursive in the .htaccess for the change to take effect.

Check the .htaccess or settings.php for conflicting code

Edit the .htaccess file to see if there are any overrides in the code. Some server configurations allow .htaccess settings to override your file upload size. Comment any code that controls the files upload size and save the changes.

The settings.php file also can hold overrides for the file upload size. Edit the settings.php directly on the server or you can change the settings through the Drupal dashboard by going to Administer > Site configuration > File uploads and updating the settings from there.

Apache mod_security is flagging bad code

Mod Security is an Apache Module that scans incoming http requests for any malicious scripts. There may be an issue with the script causing mod_security to stop the script. In the event that mod_security is causing the error, you will need to contact tech support to have them look at the logs to see what is exactly causing mod_security to flag the uploaded file. You may need to Disable mod_security via cPanel Modsec Manager on your specific domain if there is no work around. Otherwise, tech support will need do this for you.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!