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.
I'm install new (clean) version Drupal 7
And install Plupload and Node Gallery with all needed modules
I'm try upload images in gallery with plupload and get error: HTTP Error and 403 error in console.
Please see screenshot.
You can try upload images here - http://sashken.ru/node/2/upload
login: test
password: test
Comment | File | Size | Author |
---|---|---|---|
#14 | node_gallery_plupload_fix-1801730-9.patch | 719 bytes | quicksketch |
#13 | node_gallery_plupload_fix-1801730-8.patch | 718 bytes | quicksketch |
#7 | 1801730-plupload-forbidden.patch | 548 bytes | zengenuity |
#5 | NG_403_Forbidden.jpg | 134.67 KB | PDR |
plupload.png | 184.29 KB | sashken2 |
Comments
Comment #1
sashken2 CreditAttribution: sashken2 commentedI'm uninstall plupload module and try upload 1 image.
I'm select image and click Upload button. I see errors:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'node_form' was given in drupal_retrieve_form() (line 800 of /home/sashken/data/www/sashken.ru/includes/form.inc).
Notice: Undefined index: #node in comment_form_node_form_alter() (line 1194 of /home/sashken/data/www/sashken.ru/modules/comment/comment.module).
Notice: Trying to get property of non-object in comment_form_node_form_alter() (line 1211 of /home/sashken/data/www/sashken.ru/modules/comment/comment.module).
Notice: Undefined index: #node in menu_form_node_form_alter() (line 629 of /home/sashken/data/www/sashken.ru/modules/menu/menu.module).
Notice: Trying to get property of non-object in menu_form_node_form_alter() (line 629 of /home/sashken/data/www/sashken.ru/modules/menu/menu.module).
Notice: Undefined index: #node in menu_form_node_form_alter() (line 630 of /home/sashken/data/www/sashken.ru/modules/menu/menu.module).
Notice: Trying to get property of non-object in menu_form_node_form_alter() (line 630 of /home/sashken/data/www/sashken.ru/modules/menu/menu.module).
Notice: Undefined index: node_gallery_media in file_ajax_upload() (line 271 of /home/sashken/data/www/sashken.ru/modules/file/file.module).
Notice: Undefined index: #suffix in file_ajax_upload() (line 280 of /home/sashken/data/www/sashken.ru/modules/file/file.module).
If I'm select image and click Save button all works good.
Comment #2
zengenuity CreditAttribution: zengenuity commentedThis is a different issue than your original plupload issue. I moved it here:
http://drupal.org/node/1803364
Comment #3
zengenuity CreditAttribution: zengenuity commentedOn the Plupload issue:
I've tested it with various user account and I'm not getting 403 errors. I suspect there may be a problem with your web server configuration. Can you check your web server error log for more details?
Comment #4
holsworth CreditAttribution: holsworth commentedHi,
i hope this is the right place to post this: When I try plupload images via the upload images tab, i get this error:
Type access denied
Date Sunday, October 7, 2012 - 15:56
User admin
Location /build2/node-gallery/json/item/create/1/18/node_gallery_item/c5UwH_-78BvieNodbPDEIzCUkiiDa8mOkYMCNicLK40&filename=Woman&wisdom.jpg
Referrer build2/node/18/upload
Message node-gallery/json/item/create/1/18/node_gallery_item/c5UwH_-78B
Comment #5
PDR CreditAttribution: PDR commentedHey,
Firstly, I'm so excited about this project taking off for D7, thank you zengenuity!
I too have issues with plupload and Node Gallery (403 Forbidden), I've attached a screenshot of how it looks. I also get the access denied messages in the drupal log.
I've been using plupload on the same Drupal installation earlier and not encountered any similar issues, but still not sure whether this is related to Node Gallery directly or if maybe there is something I need to sort out with my server?
Comment #6
sashken2 CreditAttribution: sashken2 commentedzengenuity, I'm try install other plupload integration (Plup module) for other content type. And it works.
You can try it - http://sashken.ru/node/add/article
Comment #7
zengenuity CreditAttribution: zengenuity commentedI'm still not able to replicate this issue on my dev system, but I do have one idea what it might be. Can you try this patch and let me know if it makes any difference? It's a patch to the javascript, so make sure you refresh and/or clear your browser cache before testing the new version.
Comment #8
brayo4 CreditAttribution: brayo4 commentedi tried the patch in # 7 and still same result as #5. access denied error..........
Comment #9
sashken2 CreditAttribution: sashken2 commentedzengenuity, thank you!
Patch in #7 work for me!
brayo4, try "Clear all caches" on "Performance" page
Comment #10
PDR CreditAttribution: PDR commentedPatch in #7 fixed it for me too, brilliant!
Comment #11
zengenuity CreditAttribution: zengenuity commentedCommitted the patch.
brayo4, please clear your browser cache as well. It's possible that you have an old version of the js file cached.
Comment #12
zengenuity CreditAttribution: zengenuity commentedComment #13
quicksketchI reproduced this same problem on my own system and @zengenuity's #7 does indeed fix the problem. However it would break if the site were not using Clean URLs. The previous code was looking for an ampersand, and the new code is looking for a question mark. We need to be checking for both of these, as the URL can look like either of these:
Clean URLs enabled:
Clean URLs disabled:
This patch makes it so that the Plupload integration will work in both situations.
Comment #14
quicksketchDoh, hadn't reloaded this patch since last night, so I didn't see that this had been committed. Here's a reroll that applies against the new HEAD.
Comment #15
zengenuity CreditAttribution: zengenuity commentedLooks good. Committed.
Comment #17
thelocaltourist CreditAttribution: thelocaltourist commentedI'm getting the same error using versin 7.x-1.0-beta3+7-dev. Node Gallery had worked perfectly on my dedicated server, but I recently switched to using Pantheon. Now, with the same setup as previously, I'm getting the same errors as in the OP.
Comment #18
thelocaltourist CreditAttribution: thelocaltourist commentedAlso, I'm not sure if this is related, but I cannot change the limit on the number of images displayed after upload at /admin/config/content/node-gallery/settings. The default is 100 and when I change it to another number it reverts to 100 after clicking Save configuration.
Comment #19
thelocaltourist CreditAttribution: thelocaltourist commentedForgot to reopen this issue.
Update: I've tested on a clean installation of Drupal with only plupload, Node Gallery, and its required modules enabled. I'm still getting the same errors as in #5 and cannot change the number of images displayed.
Comment #20
emcniece CreditAttribution: emcniece commentedConfirming active error on D7.22, plup 7.x-1.x-dev. I am not using Node Gallery, so my paths are somewhat different:
When uploading images (as admin), I get a 403 for this:
site.com/sites/default/files/pub/styles/thumbnail/temporary/p17sdh4n171opb1jhd1outh8nd864.jpg
And when viewing the image on the front theme, I get a 403 for this:
site.com/system/files/styles/user_profile_photo_block_136x136/private/2012extravaganza.jpg?itok=GDelOp8K
EDIT: Sorry, just realized this was in the wrong module - probably unrelated.
Comment #21
mariusdiacu CreditAttribution: mariusdiacu commentedI confirm that after updating to the latest version (Drupal 7.23 and Plupload 7.x-1.3), the issue is still active, but it's strage. On my local machine (standard MAMP stack), all is working, but on Pantheon system, NOT.
Do you have any idea? Looks like it's a server issue, not?
Comment #21.0
mariusdiacu CreditAttribution: mariusdiacu commentedcorrect message
Comment #22
acti_SFO CreditAttribution: acti_SFO commentedHi,
i've found what was wrong for me with that issue.
So maybe my comment in that other ticket could help :
https://drupal.org/comment/8256165#comment-8256165
Best regards
Comment #23
zengenuity CreditAttribution: zengenuity commentedComment #25
tonovcp CreditAttribution: tonovcp commentedHi,
Node gallery + plupload fresh install drupal 7.26
I am getting 403 forbidden problem randomly in (it loads some pictures, some not)
- Desktop windows 8.1: firefox, chrome, ie, safari..
But it works correctly in :
- my notebook firefox and safari, under mac osx
- Android phone and tablet with chrome
I already cleared caches, cleaned registry, and everything I could imagine. Permissions in server must be ok because it works fine in other systems (I uploaded 120 mb without error in notebook).
Any suggestion?
EDIT: Tried Opera in my windows 8.1 desktop and works ??!!!
but IE, chrome, FF still gives random 403 forbidden errors
EDIT AGAIN - SOLVED:
It was a problem with firefox configuration, changed this and now works:
about:config
network.http.max-connections 25
network.http.max-connections-per-server 25
network.http.max-persistent-connections-per-proxy 25
network.http.max-persistent-connections-per-server 25
network.http.pipelining true
network.http.pipelining.maxrequests 8
network.http.pipelining.ssl true
network.http.proxy.pipelining true
Comment #26
bleen CreditAttribution: bleen commentedI'm seeing a similar issue (I am getting 403 forbidden problem randomly in (it loads some pictures, some not)) though I'm not using node gallery. If the problem was solved for tonovcp by tweaking his (her?) browser serrings than doesnt that indicate a problem with the module? Browsers tweaks should not be a needed for everything to work properly.
Comment #27
bleen CreditAttribution: bleen commentedAfter a bit more digging... it seems that (for some reason) some random upload POST requests are, well, different. I added a DPM to plupload_upload_access() and dumped the $_REQUEST var. On 3 of the 4 requests to /plupload-handle-uploads I see this:
But on the one that craps out I see this:
Why would the token & name be missing?
Comment #28
bleen CreditAttribution: bleen commentedjust realized I'm in teh wrong issue queue .. opened #2221085: Plupload_token missing from request ... sometimes