When Submit Images button is pressed for add node-gallery-image to node-gallery, error

Error HTTP: 0
/node_gallery/upload/js

is shown and no images can be add to Node Gallery.

I try Opera, Firefox, IE, Chrome and the same problem.

CommentFileSizeAuthor
#7 htaccess.zip1.68 KBpowery
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dbeall’s picture

Status: Active » Closed (duplicate)

#680260: File upload errors caused by jquery.form.js

After reading the thread at http://drupal.org/node/240777, I gave the suggestion of updating Drupal's jquery.form.js. I downloaded the copy at http://jquery.malsup.com/form/jquery.form.js?2.36, and now it works great in all browsers.

powery’s picture

Not working for me :(

dbeall’s picture

Status: Closed (duplicate) » Active

well, maybe this is not a duplicate.. sorry.
check the server error log and the drupal dblog to see if there are any clues

powery’s picture

from error log:
[Fri Jan 15 12:55:48 2010] [error] [client XXX.XXX.XXX.XXX] Directory index forbidden by Options directive: /home/users/rad/yyy.cz/web/sites/default/files/imagecache/200_150/, referer: http://www.yyy.cz/galleries

dbeall’s picture

Options directive, is generally in the htaccess file.
htaccess can be a bit on the tricky side depending on the host setup..
are you using a core Drupal htaccess file? maybe attach a copy of it here.. I am not an htaccess pro,but might see something.

dbeall’s picture

after thought. the sites/default/files directory should have an htaccess file in there too.
It should look like this:

SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks

powery’s picture

FileSize
1.68 KB

I use core .htaccess file in root drupal directory with www redirect and clean urls. There are also .htaccess files in sites/default/files and sites/default/files/tmp with content as above.

dbeall’s picture

well, try this and see if it works.
Mind you I am not a htaccess wizard, but this has worked for some people.
I do not know what side effects this might have..

# Don't show directory listings for URLs which map to a directory.
Options +Indexes

justintime’s picture

Version: 6.x-2.0-alpha12 » 6.x-2.x-dev
Status: Active » Fixed

No response in 8 months, marking this as fixed. If it's still a problem, let us know.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

spidersilk’s picture

Version: 6.x-2.x-dev » 6.x-2.0-beta2
Status: Closed (fixed) » Active

I'm re-opening this issue as I'm now having this problem too, but none of the fixes suggested in this or the other thread dealing with this issue seem to help:

My .htaccess files are all as they come with Drupal core, with the exception of a small addition to the top-level .htaccess file to keep it from blocking my web host's stats software (which is not by any means new - I've had that addition in there for years, on all my sites). I tried adding a separate .htaccess file to the imagecache folder, explicitly turning directory indexing on (though I was edgy about doing that, given that it's a security risk), but it didn't help.

I seem to suddenly be running into this with all attempts to upload images to new node galleries - even if the images are really small. And my PHP memory is set pretty high in any case - 90 Mb. I've uploaded much bigger images before with no problems. I've tried multiple browsers and it makes no difference. And I'm not running the Devel module. I used to be able to upload images on this site with Node Gallery with no problems, but now apparently I can't. And neither the Drupal log nor the server error log shows any error messages pertaining to this.

Any ideas, anyone?

spidersilk’s picture

Priority: Normal » Critical

Forgot to mention - I have also tried replacing jquery.form.js with the version linked to in comment #1 above, installing and activating the Jquery_update module, and installing the very newest version of jquery.form.js. None of these had any effect at all. Same error message, every time, every gallery, every browser. Even though it always worked fine up until now.

And I'm upgrading the priority of this issue to critical, because the client whose site I am currently working on with this wants all the galleries up by tomorrow morning. And I can't upload a single thing to any gallery at all.

spidersilk’s picture

Status: Active » Closed (fixed)

Well now - this is bizarre!

The problem has now spontaneously disappeared and the module is working again. And I didn't change ANYTHING else after posting the above two messages. It wasn't working then, no matter what troubleshooting steps I tried, nor the day after. But I tried it again tonight, not with much hope that it would actually work - and voila, now everything is uploading fine.

I have no idea what happened, but I'm not complaining...

spidersilk’s picture

Status: Closed (fixed) » Active

OK, apparently I spoke too soon. It let me upload three of the five galleries I needed to, then abruptly stopped working again - again, without my having changed anything in the setup or configuration. So this is NOT fixed.

Currently I just get the "Please wait" message as if it was uploading images, but it never goes away. It just stays like that until I close the page or click on another link. Even if all I'm uploading is one or two very small images that should have gone up in seconds.

That's with the Jquery Update module enabled to give it the latest version of Jquery (including a more recent version of jquery.form.js as well). If I disable that module and try again, then I get the "Error HTTP: 0
/node_gallery/upload/js" error again instead.

I really, really, REALLY need to be able to fix this. All the sites I've done for this particular client rely heavily on Node Gallery, and I can't have it not working. The client is getting really upset about the delay in getting their galleries up.

zengenuity’s picture

Status: Active » Closed (won't fix)