• ok i have chmod’d my directories and blah blah. anytime i try and upload an image from my computer to insert in a post i get this error.

    “http error”

    and then it says in the image uploader “An error occurred in the upload. Please try again later.”

    i am lost as to why this is happening. i have been using wordpress since the early days of 1 and i have never had this problem. it is also a fresh install of 2.5.

Viewing 15 replies - 31 through 45 (of 145 total)
  • I’ve tried all the fixes listed above and in different variations on the new 2.5 (2.5 dev, not RC) and still can’t get an image to upload. I’m a person of only intermediate knowledge/comfort zone at modifying htaccess and such, so if this issue can’t be resolved “out of the box”, I would imagine that people will soon be leaving WP in droves if they can’t perform a simple image upload. Regardless, thanks for all the hard work.

    In addition, I’ve also tried with all plugins deactivated. No go.

    The issue I had was that my upload directory wasn’t writeable and WP wasn’t reporting this error to the uploader correctly, therefore the uploader couldn’t display the error to me meaningfully. I’ve submitted a patch for this issue to WP which hopefully works for them and will be accepted. In the meantime:

    Check your upload directory and all it’s subdirectories are writeable.

    Also, bear in mind that the error message “An error occurred in the upload. Please try again later.” is the generic default message, so could be used in any number of different situations… i.e. your problem may not necessarily be the same as any other reported problem in this thread, which doesn’t make life easier unfortunately.

    Running 2.5 as of todays release (3/29). mod_security is on and the image uploader is not working for me.

    Image upload box opens fine. Clicking browse opens my PCs dialogue box to choose an image. When uploading the image (..”crunching”..) I get a pop up error box that says:

    Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.

    Then WP gives me the message “An error occurred in the upload. Please try again later”.

    From the server error log I see this:

    ==cb6c7746==============================
    Request: XXX.com 11.222.33.444 – – [29/Mar/2008:13:08:34 -0500] “POST /wp-admin/async-upload.php HTTP/1.1” 406 363 “-” “Shockwave Flash” – “-“
    Handler: application/x-httpd-php
    —————————————-
    POST /wp-admin/async-upload.php HTTP/1.1
    Accept: text/*
    Cache-Control: no-cache
    Connection: Keep-Alive
    Content-Length: 29393
    Content-Type: multipart/form-data; boundary=———-GI3Ef1ei4KM7ae0Ef1gL6Ij5ei4gL6
    Host: xxx.com
    User-Agent: Shockwave Flash
    mod_security-message: Access denied with code 406. Error processing request body: Multipart: final boundary missing [severity “EMERGENCY”]
    mod_security-action: 406

    (domain name and IP edited out)

    Running on a nix system; apache 1.x, php 4.x

    mod_security seems the culprit.

    Changing the .htaccess to turn off mod_security yielded no success either. Hosts that run mod_security will have no gallery upload love?

    Yes I’m getting the vague http error and have tried all of the solutions above, minus inserting the patch code. Hopefully this will be a quick jump to 2.5.1 so I can keep blogging.

    After a bit of troubleshooting, adding this to the .htaccess file in my WP root worked:


    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    Turns mod_sec off on the async-upload.php file.

    Weird, It seems that my image uploads are being uploaded, but I can’t choose from them (or see any thumbnails) from the galleries in the flash media library and select them to be posted.

    This is somewhat of a dissapointment, I hope a very swift solution will be available for this problem, or I will go back to 2.3 again.

    (I run Vista and IE7)

    Marcel.

    I also have this error.. argh. Will follow this thread and try hacking with a sandboxed 2.5 and see if I can get it to work. And I agree; People will abandon 2.5 if this feature doesn’t work. I’m running 2.3.3 on all my blogs ??

    isnt working for me also..

    I think I can sum this up, not sure the solution for the long run.

    Do we all have in common that we have secured .htaccess in wp-admin/ to require a user and a pass?

    If that is the common thread, I bet this has to do with flash, or at least, I think the file uploader is working with flash. I have user/pass set up in WP for the admin area.

    If I remove that feature from wp-admin/.htacess, uploads work as advertised.

    I first thought this was a simple fix of just adding my servers IP to be allowed and not need authentication, however, the file called is called by the client/browser, so that will not work. I have a semi-static IP, so it works for a short time, but I know the second I travel, it will break.

    I think the solution is to exclude the upload php file from the security, but then people know about this, and could try to exploit that one file does not get locked down.

    Here is my .htaccess in wp-admin
    AuthName “Restricted Area”
    AuthType Basic
    AuthUserFile /somewhere/over./the/rainbow/.htpasswd
    AuthGroupFile /dev/null
    require valid-user

    If I rename .htaccess to a.htaccess, in order to disable it, works just fine all over again.
    Can others confirm?

    My server logs show an http 401 error on:
    /wp-admin/page-new.php Safari
    /wp-admin/async-upload.php Flash

    So, seems to me, user/pass credentials are not getting past Flash, and it is breaking. Makes sense, there should be no way apache is allowed to just suck the http auth out of the browser and shove it into flash. I suppose they could read it in with php, store it in a cookie, then have flash ask for it, but that seems downright dirty to me.

    I managed to upload images but when I try to insert it to post, I get a blank white page.

    This is frustrating!

    Same problem here… nothing works.

    A.

    Well, I’m still at it.. I can upload pics, they get uploaded in the uploads folder, then in the gallery I can see the filenames including the recently uploaded files.

    but when I click ‘Show’ nothing happens. Also I think there should be somekind of a thumbnail in front of the filename? (doesn’t show) and clicking the empty spot results in nothing..

    Everything functions as it should, even the automated plugin updates (cool!)

    But the only way to get pics into a post is by filling in the pic’s URL directly.

    Why havent we heard from a more ‘official’ wordpress associate? this problem is not just a little thing is it?

    I added this code into my .htaccess

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    ..it seems to make my image uploading/insert to post work now.

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    fixed the problem for me.

Viewing 15 replies - 31 through 45 (of 145 total)
  • The topic ‘2.5 image upload’ is closed to new replies.