WordPress Trac: Ticket #6045: Flash Uploader Issues on Shared account (dealing with Flash on OS X)https://core.trac.wordpress.org/ticket/6045
<p>
So I have an interesting bug that I'm dealing with.
</p>
<p>
Basically, I can't upload _anything_ whatsoever. I've been hitting myself over the head all night dealing with this. At first I thought it was a permissions issue. Oddly enough, permissions were fine.
</p>
<p>
So I did what any person in there right mind would do and did a google of the message I was getting - "HTTP Error".
</p>
<p>
Turns out it's a flash issue. I stumbled on <a class="ext-link" href="http://swfupload.org/forum/generaldiscussion/268"><span class="icon">​</span>http://swfupload.org/forum/generaldiscussion/268</a> and <a class="ext-link" href="http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00002216.html"><span class="icon">​</span>http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00002216.html</a>. They give an alternative solution, but I'm not sure how it could be implemented.
</p>
<p>
I'm using a shared account on asmallorange. My root directory is ~/public_html (with no wordpress install) and the install is in ~/domains/creativepunks.com,(a parked domain) with flash 9 on OS X.
</p>
en-usWordPress Trachttps://core.trac.wordpress.org/chrome/site/your_project_logo.pnghttps://core.trac.wordpress.org/ticket/6045
Trac 1.0.1anthonycoleFri, 29 Feb 2008 10:43:34 GMTattachment sethttps://core.trac.wordpress.org/ticket/6045
https://core.trac.wordpress.org/ticket/6045
<ul>
<li><strong>attachment</strong>
set to <em>Picture 1.png</em>
</li>
</ul>
<p>
Error
</p>
TicketandyFri, 29 Feb 2008 15:23:41 GMTowner, priority, milestone changed; keywords, version sethttps://core.trac.wordpress.org/ticket/6045#comment:1
https://core.trac.wordpress.org/ticket/6045#comment:1
<ul>
<li><strong>keywords</strong>
<em>reporter-feedback</em> added
</li>
<li><strong>owner</strong>
changed from <em>anonymous</em> to <em>anthonycole</em>
</li>
<li><strong>priority</strong>
changed from <em>normal</em> to <em>high</em>
</li>
<li><strong>version</strong>
set to <em>2.5</em>
</li>
<li><strong>milestone</strong>
changed from <em>2.6</em> to <em>2.5</em>
</li>
</ul>
<p>
Please "view source" on the uploader iframe and look at the swfupload config array, which you will find in a script tag. Does the upload_url setting have the correct path to async-upload.php?
</p>
<p>
That is set up in wp-admin/includes/media.php:
</p>
<pre class="wiki">$flash_action_url = get_option('siteurl') . "/wp-admin/async-upload.php";
</pre>
TicketmdawaffeFri, 29 Feb 2008 19:44:44 GMThttps://core.trac.wordpress.org/ticket/6045#comment:2
https://core.trac.wordpress.org/ticket/6045#comment:2
<p>
IIRC, the original poster said on IRC that he gets this error message in all browsers under OS X, but on no browsers under windows.
</p>
TicketandySat, 01 Mar 2008 01:46:06 GMTpriority, status changed; resolution sethttps://core.trac.wordpress.org/ticket/6045#comment:3
https://core.trac.wordpress.org/ticket/6045#comment:3
<ul>
<li><strong>priority</strong>
changed from <em>high</em> to <em>normal</em>
</li>
<li><strong>status</strong>
changed from <em>new</em> to <em>closed</em>
</li>
<li><strong>resolution</strong>
set to <em>wontfix</em>
</li>
</ul>
<p>
I worked directly with the reporter today. On his shared account with a forwarded domain, the uploader sends a well-formed POST to the correct URL. The response is a 301 (Moved Permanently) to the same URL plus a trailing slash (async-upload.php/). This much happens regardless of platform.
</p>
<p>
In Windows, the Flash uploader succeeds. In OS X, it fails and gives the user the HTTP Error. We modified async-upload.php to dump $_POST as a first line and this was not caught by the uploader, so it looks like the 301 is not coming from the script.
</p>
<p>
This is an extreme edge case and no solution presents itself. A possible workaround is to add an option to disable Flash uploads.
</p>
<p>
I have passed the information upstream to <a class="ext-link" href="http://swfupload.org/forum/generaldiscussion/275"><span class="icon">​</span>http://swfupload.org/forum/generaldiscussion/275</a>
and linked back here.
</p>
TicketlloydbuddSat, 01 Mar 2008 01:55:10 GMTmilestone deletedhttps://core.trac.wordpress.org/ticket/6045#comment:4
https://core.trac.wordpress.org/ticket/6045#comment:4
<ul>
<li><strong>milestone</strong>
<em>2.5</em> deleted
</li>
</ul>
TicketDD32Sat, 01 Mar 2008 10:34:32 GMThttps://core.trac.wordpress.org/ticket/6045#comment:5
https://core.trac.wordpress.org/ticket/6045#comment:5
<p>
Just a note on this for any others who come accross it.
</p>
<p>
I had the HTTP Error error on windows a short time ago, It turned out to be caused by the plugin "Bad Behaviour" kicking in.
</p>
TicketJeffrey04Mon, 24 Mar 2008 07:08:06 GMThttps://core.trac.wordpress.org/ticket/6045#comment:6
https://core.trac.wordpress.org/ticket/6045#comment:6
<p>
Replying to <a class="closed" href="https://core.trac.wordpress.org/ticket/6045#comment:5" title="Comment 5 for Ticket #6045">DD32</a>:
</p>
<blockquote class="citation">
<p>
Just a note on this for any others who come accross it.
</p>
<p>
I had the HTTP Error error on windows a short time ago, It turned out to be caused by the plugin "Bad Behaviour" kicking in.
</p>
</blockquote>
<p>
thanks for the temporary solution. So where should we report this problem? report to the badbehavior development team or open another ticket in trac?
</p>
TicketDD32Mon, 24 Mar 2008 07:51:07 GMThttps://core.trac.wordpress.org/ticket/6045#comment:7
https://core.trac.wordpress.org/ticket/6045#comment:7
<blockquote class="citation">
<p>
thanks for the temporary solution. So where should we report this problem? report to the badbehavior development team or open another ticket in trac?
</p>
</blockquote>
<p>
Should be reported to the Bad behaviour plugin developer, I never got around to do it, thanks for bring this up :) (report it yourself too :P)
</p>
Ticket