Hi, after i upload images i always get this error message on the next page load. In this exemple i upload 4 new pictures and get 4 error. I'm on a new install. Any idea ?!?

Notice: Undefined property: stdClass::$nid in node_gallery_api_tokens() (line 490 of /home/sw3b/www/ng/sites/all/modules/node_gallery/node_gallery_api.module).
Notice: Undefined property: stdClass::$nid in node_gallery_api_tokens() (line 490 of /home/sw3b/www/ng/sites/all/modules/node_gallery/node_gallery_api.module).
Notice: Undefined property: stdClass::$nid in node_gallery_api_tokens() (line 490 of /home/sw3b/www/ng/sites/all/modules/node_gallery/node_gallery_api.module).
Notice: Undefined property: stdClass::$nid in node_gallery_api_tokens() (line 490 of /home/sw3b/www/ng/sites/all/modules/node_gallery/node_gallery_api.module).

Comments

I'm also getting this error for the same line of code when i delete items using the page "http://mywebsite/node/NID/items". When you select an image to delete and save the form i get this error on the next page load.

Notice: Trying to get property of non-object in node_gallery_api_tokens() (line 490 of /home/sw3b/www/ng/sites/all/modules/node_gallery/node_gallery_api.module).

*After some more testing i'm getting this error on all save of the form.

Status:Active» Closed (works as designed)

it seems to be automatic node title who was the problem. I'm using a configuration to get the Node Title of the gallery reference but it seems to cause problem. Maybe on the side of Automatic node title the problem with entitiy reference... I look on this side...

Status:Closed (works as designed)» Active

Could you take a look on your side to make it work (maybe it is easy for you) ?? I also try Automatic entity labels and got the same error.

I try using the token [node:node_gallery_gallery_title] and also [node:node-gallery-ref-1:node_gallery_gallery_title]. The title is assign correctly but i'm getting the error on everysave.

Hello, I have the same issue on line 478 with "7.x-1.0-beta3"...
Maybe "node_gallery_api_get_relationships(NULL, $node->nid)" can not find the node object at this moment,
even if the "nid" is in the $data array ...