I test in localhost and it work well but when I move to remote host, it get Error: HTTP Error with all user (admin also).

Comments

Anonymous’s picture

Status: Active » Postponed (maintainer needs more info)
Anonymous’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
milos.kroulik’s picture

I have the same problem here on Windows host (see http://knihovna.litomysl.cz/utils/phpinfo.php). Is there any way to debug this issue?

I am using Drupal 7 dev and lastest dev version of Plup.

milos.kroulik’s picture

Status: Closed (cannot reproduce) » Active

FYI, Plupload + Mupload do work (mostly). Maybe they can be used as inspiration.

milos.kroulik’s picture

Assigned: tnvyen » Unassigned
markhalliwell’s picture

Priority: Normal » Critical

Adding to the noise. Would like to reference:

#1465000: Anonymous users get a HTTP Error when sending files.

Even though it was closed saying it wasn't the same issue, I am suspecting that the issue lies in the page access when it's trying to upload the file.

Anonymous’s picture

Status: Active » Closed (cannot reproduce)

#4 changing this issue to 'active' doesn't change the fact that I cannot reproduce this behavior(tried on multiple websites).

--
Only way I could reproduce this issue was when user didn't have the permission to upload files with plulpload.

markhalliwell’s picture

Status: Closed (cannot reproduce) » Active

*I* can and *did* reproduce the error. Actually it really seems to be an issue with the ajax's menu path permissions and who's "logged" in. Why it would make a difference on a local machine rather than a remote server, I have no idea. I temporarily bypassed the permissions check in the ajax upload's menu hook so the files could be uploaded by whomever is logged in.

@ivanjaros: Please STOP closing issues and actually READ them. And please start asking questions instead of assuming. Issues like this will NEVER get solved if they don't remain active, despite how long the responses may be. If you would like I would be HAPPY to take over this module. It seems as if you really don't care for it anymore.

sashken2’s picture

I have this problem too.
If I change string in file - /sites/all/modules/plup/plup.module:
'chunk_size' => '512K',
to this
'chunk_size' => '8K',
all works good, but big files uploading very slow and files less than 8K will not load - HTTP Error.

Anonymous’s picture

Thanks for the info. In this case you should probably follow up this issue directly to plupload.com forum. Also check your server configuration.

sashken2’s picture

I found a solution for me.
I use Plup module with Fast 404 module and get HTTP Error in uploading
I turned off Fast 404 module and all works good - uploading without errors!

stockliasteroid’s picture

So in my case the issue is Varnish. It works fine locally, but the token check fails on the live server because varnish is stripping the session information out of the request... In my case the steps to verify are as follows:

Try to upload a file, you get an HTTP error instead.
Check recent log entries, you'll see "access denied" entries for "plupload/somenumber". The user will be "anonymous", even if you're logged in when you tried to upload. The reason is that Varnish is stripping the session cookie from the request, so Drupal doesn't know who you are when you post with plupload.
Try the same action directly via Apache. In my case I run Varnish on :80, and Apache on :8080. When I tried it directly against Apache it worked fine.

Next step is to figure out what needs to change in the Varnish vcl file to fix this.

stockliasteroid’s picture

I fixed the Varnish issue by modifying the vcl_recv section to directly pass any requests for plupload to the apache backend:

if (req.url ~ "^/status\.php$" ||
      req.url ~ "^/update\.php$" ||
      req.url ~ "^/admin$" ||
      req.url ~ "^/admin/.*$" ||
      req.url ~ "^/flag/.*$" ||
      req.url ~ "^.*/ajax/.*$" ||
      req.url ~ "^.*/ahah/.*$" ||
      req.url ~ "^/plupload.*$") {
       return (pass);
  }

Notice the last req.url entry... Seems to work great now! This is pretty obscure, but hopefully this will help someone else...

mksweet’s picture

Just a note that this is a bug I've also discovered.

I followed the same steps as #12 to verify.

Unfortunately I am hosting on a Drupal SaaS solution and can't modify Varnish VCL files as a fix.

I tried forcing a session and a cookie to bypass varnish and it didn't work.