InMotion Hosting Support Center

HTTP error when uploading images to Wordpress

Category: Wordpress

2013-08-28 6:24 pm EST

Hits: 4,268
I have a client site running Wordpress 3.6. For the last two weeks, when uploading certain jpg and pdf files via the media uploader, they have received a non-descript HTTP ERROR message and the files have not uploaded.

I've seen previous posts ( about this being the result of a security rule. I'm using a VPS - can you provide assistance or guidance in how to resolve this issue?

You must login before you can ask a follow up question.

You must login before you can submit an answer.



40,705 Points
2013-08-28 6:57 pm EST
Hello Mace07,

I'm sorry to hear about the problem you're having with Wordpress. The mod security rules changes are a possibility, but I need to know the account URL you're referring to so that I can isolate the issue. There is a possibility it could be something else. Check out this post in the WordPress forums with the same type of error: Forums - Media Upload broken. In order for us to investigate the issue, we would need a more specific URL, please. There are quite a few Wordpress sites running on our servers, and this particular problem has not been a major issue, so it is possible that it's Wordpress-related.

Also, though it is not recommended, you can go into the cPanel and disable the Mod security - at least temporarily to see if it would affect your uploads. Here's the documentation for doing it, if needed: Disable mod security.

I hope this helps to resolve your problem! Please let us know if you still need further assistance. Please provide the information requested and we can investigate further as needed.

Arnel C.

You must login before you can post a comment about this answer.

Thanks, Arnel. Account url is
11 Points
2013-08-29 9:11 am EST
Hello mace07,

It looks like you already have root access to your server, so you should be able to follow my guide on how to find and disable specific Modsecurity rules on your server to discover which rules are getting triggered.

I saw quite a few going on, some blocking legitimate malicious activity from happening. But more than likely one of those is what's triggering your problem as well. I didn't want to just start disabling things without a way to test. But if you are having any issues getting it to work, please give us permission to go in to the server and adjust these settings for you and we'd be glad to.

- Jacob
9,968 Points
2013-08-29 1:02 pm EST
Jacob's article below helped me determine the cause. In modsec2.user.conf - changed the secupload directory to /tmp. That did the trick. Thanks.
11 Points
2013-08-29 2:04 pm EST
Hello mace07,

Awesome glad to hear that you got it resolved now! Thanks for letting us know what worked for you.

- Jacob
9,968 Points
2013-08-29 2:25 pm EST
Like this Question?

Need more Help?


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:
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!