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

Comments

I'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.

This is a different issue than your original plupload issue. I moved it here:
http://drupal.org/node/1803364

Priority:Major» Normal

On 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?

Hi,
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

StatusFileSize
new134.67 KB

Hey,

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?

zengenuity, 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

StatusFileSize
new548 bytes

I'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.

i tried the patch in # 7 and still same result as #5. access denied error..........

zengenuity, thank you!
Patch in #7 work for me!

brayo4, try "Clear all caches" on "Performance" page

Patch in #7 fixed it for me too, brilliant!

Committed the patch.

brayo4, please clear your browser cache as well. It's possible that you have an old version of the js file cached.

Status:Active» Fixed

Status:Fixed» Needs review
StatusFileSize
new718 bytes

I 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:

/node-gallery/json/item/create/1/131341/photo/1YLer-SZbq1mrhpFzqXF-4KXFcr2UVuCfYjmaangngM?filename=greenandgold11920.jpg

Clean URLs disabled:

/?q=node-gallery/json/item/create/1/131341/photo/1YLer-SZbq1mrhpFzqXF-4KXFcr2UVuCfYjmaangngM&filename=greenandgold11920.jpg

This patch makes it so that the Plupload integration will work in both situations.

StatusFileSize
new719 bytes

Doh, 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.

Status:Needs review» Fixed

Looks good. Committed.

Status:Fixed» Closed (fixed)

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

I'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.

Also, 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.

Version:7.x-1.0-unstable2» 7.x-1.x-dev
Status:Closed (fixed)» Active

Forgot 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.

Confirming 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.

I 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?

Issue summary:View changes

correct message

Hi,

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

Issue summary:View changes
Status:Active» Fixed

Status:Fixed» Closed (fixed)

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

Hi,
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

I'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.

After 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:

[plupload_token] => HjmSMWV_yQxl_YvdqJfivwBF2QEkn7mRmqGVUq9TLWY
[name] => p18jbtl9p2vkkcemnr1656urt7.jpg
[SESSdb05ec8399870ea1b9b43ff038e87808] => piJmE43u4Tp72yDjRXZ9BbYZDRs2tc6ih-VrqeDMGE0
[Drupal_tableDrag_showWeight] => 0
[has_js] => 1

But on the one that craps out I see this:

[SESSdb05ec8399870ea1b9b43ff038e87808] => piJmE43u4Tp72yDjRXZ9BbYZDRs2tc6ih-VrqeDMGE0
[Drupal_tableDrag_showWeight] => 0
[has_js] => 1

Why would the token & name be missing?

just realized I'm in teh wrong issue queue .. opened #2221085: Plupload_token missing from request ... sometimes