Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Server error while uploading file in Wordpress

Posted on 2009-07-05
3
Medium Priority
?
429 Views
Last Modified: 2012-05-07
While uploading a file in Wordpress 2.8 I got this error:
[Mon Jul 06 07:25:21 2009] [error] [client 193.138.70.59] mod_security: Access denied with code 500. Error processing request body: Multipart: final boundary missing [hostname "sub.domain.net"] [uri "/subdomain/wp-admin/async-upload.php"]
The upload folder is CHMOD 777 so I don't follow
0
Comment
Question by:rhandalthor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 

Author Comment

by:rhandalthor
ID: 24782837
I found this:


mod_security: Access denied with code 500. Error processing request body: Multipart: final boundary missing [severity "EMERGENCY"]

This error message from ModSecurity means that the request body was not
properly constructed or something was wrong with the file upload (most
likely that the client timed out and did not fully complete the upload).

Other possible reasons for this -

1) If the end of the final boundary is missing a CRLF
2) If the size specified in the Content-Length header is too small. In
this case, Apache would cut off the end of the file.

Known bugs
If you are using Apache with mod_security this will not work, you need to put the following in your .htaccess file to disable mod_security:

SecFilterEngine Off
SecFilterScanPOST Off

Disabling mod_security isnt allowed on some shared hosts, and only do this if you know what you are doing.

So editing the .htacces is what i will do next

What does "the request body was not properly constructed" mean?
0
 

Author Comment

by:rhandalthor
ID: 24801708
I have asked my ISP, but no answer so far. No answers here yet either. Anybody?
0
 

Accepted Solution

by:
rhandalthor earned 0 total points
ID: 24893683
I turned of mod_security which was not really needed for this website and that fixed it.
SecFilterEngine Off
SecFilterScanPOST Off

Open in new window

0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question