2.5 image upload
-
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.
-
I have a new installation of WordPress 2.5 (not an upgrade). I have done all of the following:
- Did chmod on wp-content and all its children to a+w
- Added the mod_security patch to .htaccess
- Upgraded swfupload
- Tried various settings on the Settings/Miscellaneous page
- Tried editing wp-config.php with define(‘UPLOADS’,…)
I am able to get uploading to work – but ONLY if I set it up to upload every image directly into the wp-content root. I am unable to get uploading to work into any subfolder (i.e. wp-content/uploads), with or without year/month folders. Furthermore, I’m unable to get uploading to work into another folder at the web root. In every case, I get one of the following errors in the uploader:
- HTTP error. . . An error occurred in the upload. Please try again later.
- Unable to create directory [mywebroot]/wp-content/uploads/2008/04. Is its parent directory writable by the server?
I get the “Unable to create directory” message whenever I switch on “Organize my uploads into month- and year-based folders” and the “HTTP error” message whenever it is switched off.
Is there anything else I can try? Or is WordPress 2.5 really this bad?
Hello, I followed all of the directions from Otto’s explanation.
I even uploaded the “No Flash” plugin, but it didn’t disable the Flash upload window.
Still having a little trouble though.
The media upload buttons show up just fine, but inside the Flash window my website shows pretty like normal. The page is navigable.
Perhaps the problem is that I updated from 2.3.3 using the WordPress Automatic Upgrade plugin?
I’m not getting any errors, it’s just strange that a navigable webpage is showing up inside the Flash window.
Anyone else had this problem? Any known fixes?
Thank you in advance fellow WordPressers!This solved my ‘HTTP error’ related to not being able to upload images with WP 2.5 :
Read this postHope someone else can get it to work with this solution.
Br,
JonasThe same problem that expect someone give a solution perfectly.
i had no problem with FIREFOX
an author using EXPLORER 7 was having problem with upload
so avinews worked perfect for me especially points, 3 and 4
Hello, I posted earlier in this thread – about how upgrading you swfupload to the newest beta version might do the trick. In the comments Francis Potter found out that it was his PHP settings, more precisely Safe Mode that prevented him from using the uploader. You can check out his comment here
I found the working solution for me. I had one weblog that was still giving problems. I opened it in safari for windows and everything is working perfect so far. I hope there will be solutions for firefox and IE soon, but there is a way now to get my images uploaded.
I’ve been through all the workarounds I could find in all the threads here about the “borken” image uploader in 2.5 on ubuntu/FF, and have not found any of them to be a “fix”.
That said, I think I have an relevant data point to add to behing katootje’s post:
Using the epiphany browser in ubuntu, which uses gnash instead of flash, the uploader works fine.
This, for me, seems to indicate that the problem is *not* in the WordPress code or the hosting environment (mod_security, etc.) but is instead related to the interaction of the flash uploader under FF (2.0.0.13) and Flash (9,0,48,0). I think the fact that the same issues exist on wordpress.com for this browser combination supports my thinking on this (at least to the degree that it removes the hosting environment from the list of possible suspects).
I’m hoping the dev team can track this down and fix it soon, because other than this issue, I’d really like 2.5. Unfortunately, the image uploader problems on so many different configurations (I’ve tested 6 different O/S, browser, flash configurations, and only found it working properly in 2 of the 6 ?? ) prevents me from broadly deploying 2.5 just yet.
If the problem continues to be difficult to identify and fix, I’d like to see the next release incorporate the “flash uploader / browser uploader” dialog and implementation (which lets the user choose which uploader to use) that currently in place on wordpress.com – while maybe not as nice as a fully working flash uploader, it is a good and usable solution for now, and would allow those having these problems to proceed deploying 2.5 while the flash uploader issues is being worked on.
–rlparker
I agree on rlparker. I had no problems with the old uploader. It was working perfect. I had to do an extra step (the align-step) but no problem with that. Maybe the old uploader as a standard en the flashuploader as a plugin? I have a lot of wordpressupgrades pending because I don’t want to give my clients any problems. They need a site that is working fine, always.
Had to contribute what worked for me.
I tried a couple things and then went to #8, the mod security fix. Bingo. Took about 10 mins total to solve the image uploading issue.
Thanks, Otto!!
Hello,
I manually made the folder (though my ftp program)that my WP up loader was trying to upload to (as it showed in the error message) and chmodded it 777 and then it worked fineWhen I upload a picture it only fills in the picture name in the BOX; but not the picture URL.
I’ve tried the above but it seems the uploader is not picking up Picture URL.
Any ideas what this might be?
mandy
Theres only one way to figure out how to fix it.. debug. Using wireshark to capture packets from my end and using mod_security in a “pass,alow,auditlog” filter I was able to dermine that swfupload is the culprit. And having an upload file for “asynchronous uploads” from clients that can’t even send basic auth headers is not moving forward in my book.
Here’s the code I eventually settled on for the AskApache Password Protect plugin.
# BEGIN AskApache PassPro AuthName "Protected By AskApache" AuthUserFile /home/askapache.com/.htpasswda1 AuthType Basic Require valid-user <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|css|js)$"> Allow from All </FilesMatch> <Files async-upload.php> Allow from All </Files> Satisfy Any # END AskApache PassPro
If I wasn’t trying to make it as compatible as possible I would have definatately used rewriterule or just SecFilterSelectives..
Someone should notify the swfupload developer that it is relatively a cinch to add headers to requests in flash. I mean even small childrends cell phones can do basic authentication. I really like the swfupload though.. brilliant.
So hopefully someone sets their mod_rewrite to log and then we can see what rule was giving us a false positive.
I said earlier that for 1 blog the solution was to work in safari. That was working voor 2.5. I upgraded to 2.5.1 hoping some of this problems are resolved, but now also safari is giving problems. I can upload the image, I get the popup window where I can make the settings, but when I send it to the post, nothing happens, a white popupwindow remains, but no image in the post, as before. I have some solutions for the 2.5 version. There were some files you have to upload. But I don’t know if I can do that for 2.5.1 without messing things up. I really like some advise here.
Checked the website in IE7 – I can send the image to the post there. Problem is in FF en safari now.
Well things can change withoud doing anything. There is no way I can put images to my posts anymore. Which browser I take, it all ends up in a white empty popup screen. It makes me grrrrrr
- The topic ‘2.5 image upload’ is closed to new replies.