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


sashken2’s picture

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.

zengenuity’s picture

This is a different issue than your original plupload issue. I moved it here:

zengenuity’s picture

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?

holsworth’s picture

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

PDR’s picture

new134.67 KB


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?

sashken2’s picture

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

zengenuity’s picture

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.

brayo4’s picture

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

sashken2’s picture

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

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

PDR’s picture

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

zengenuity’s picture

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.

zengenuity’s picture

Status:Active» Fixed
quicksketch’s picture

Status:Fixed» Needs review
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:


Clean URLs disabled:


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

quicksketch’s picture

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.

zengenuity’s picture

Status:Needs review» Fixed

Looks good. Committed.

Status:Fixed» Closed (fixed)

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

thelocaltourist’s picture

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.

thelocaltourist’s picture

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.

thelocaltourist’s picture

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.

emcniece’s picture

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:


And when viewing the image on the front theme, I get a 403 for this:


EDIT: Sorry, just realized this was in the wrong module - probably unrelated.

maryus88’s picture

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?

maryus88’s picture

Issue summary:View changes

correct message

acti_SFO’s picture


i've found what was wrong for me with that issue.

So maybe my comment in that other ticket could help :


Best regards

zengenuity’s picture

Issue summary:View changes
Status:Active» Fixed

Status:Fixed» Closed (fixed)

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

tonovcp’s picture

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

It was a problem with firefox configuration, changed this and now works:
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

bleen18’s picture

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.

bleen18’s picture

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?

bleen18’s picture

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