Hi,

I've been unable to get this module to work at all. The plupload integration just gives me 404's in the console and does not upload any images. If I create an item manually and select a gallery for it via the select box, then the Gallery view no longer appears to work, and I get back a blank page with no errors in the console or in watchdog. In this case I only get the album tilte, no body, no submited-by info.

When troubleshooting plupload, I get things like this in the console:

http://tid-appstg1.internal.stackyourtrack.com/node-gallery/json/item/cr... (Not Found)

Looking through the code, I see this for the menu handler:

$items['node-gallery/json/item/create/%/%/%'] = array(
    'page callback' => 'node_gallery_api_json_create_item',
    'page arguments' => array(4, 5, 6),
    'access callback' => TRUE,
    'file' => 'node_gallery_api.pages.inc',
    'type' => MENU_CALLBACK,
  );

Note that that menu item looks like it is expecting 3 wildcards, whereas in my browser console, it looks like the request is sending 4 items. Also, in the function that should handle the request, it looks like it also expects to be passed 4 parameters:

/**
 * Create item from JSON. For Plupload integration.
 */
function node_gallery_api_json_create_item($relationship_type_id, $ngid, $item_type, $token) {

So it doesn't seem like the handler can service a request that has a token in it.

Further, I see in the issue queue references to settings pages, but I cannot find any settings pages related to the module, and I also see references to configuring relationship types, bu can't seem to find any of those pages either.

Is the module supposed to work at this point in time?

Cliff

Comments

acti_SFO’s picture

Hi,

i had the same problem as mentionned above.

The pluploads plugin (inside node gallery module) was working on my local server but not online.

I finally figured out what it was.

All Ajax call going thru the "node gallery" module and plupload were all asking for permission. (Global user was set to anonymous). My web hoster has Apach varnish cache installed.

I've excluded all URL starting with "/node-gallery/json/*" from the Varnish cache and now it all works like magic.

So everything was good with both modules "node gallery" and "plupload".

Hope this helps.

Stefan

szy’s picture

@acti_SFO, thank you! I have solved the same problem here.

To make it better findable, this is the error log:

Warning: Cannot modify header information - headers already sent by (output started at /my.drupal.com/includes/common.inc:2773) in drupal_send_headers() (line 1472 of /my.drupal.com/includes/bootstrap.inc).

And "http error" in plupload page.

(y) :)

Szy.