Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#7 | htaccess.zip | 1.68 KB | powery |
Comments
Comment #1
dbeall CreditAttribution: dbeall commented#680260: File upload errors caused by jquery.form.js
Comment #2
powery CreditAttribution: powery commentedNot working for me :(
Comment #3
dbeall CreditAttribution: dbeall commentedwell, maybe this is not a duplicate.. sorry.
check the server error log and the drupal dblog to see if there are any clues
Comment #4
powery CreditAttribution: powery commentedfrom 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
Comment #5
dbeall CreditAttribution: dbeall commentedOptions 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.
Comment #6
dbeall CreditAttribution: dbeall commentedafter 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
Comment #7
powery CreditAttribution: powery commentedI 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.
Comment #8
dbeall CreditAttribution: dbeall commentedwell, 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
Comment #9
justintime CreditAttribution: justintime commentedNo response in 8 months, marking this as fixed. If it's still a problem, let us know.
Comment #11
spidersilk CreditAttribution: spidersilk commentedI'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?
Comment #12
spidersilk CreditAttribution: spidersilk commentedForgot 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.
Comment #13
spidersilk CreditAttribution: spidersilk commentedWell 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...
Comment #14
spidersilk CreditAttribution: spidersilk commentedOK, 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.
Comment #15
zengenuity CreditAttribution: zengenuity commented