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
Comment #1
sw3b CreditAttribution: sw3b commentedI'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.
Comment #2
sw3b CreditAttribution: sw3b commentedit 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...
Comment #3
sw3b CreditAttribution: sw3b commentedCould 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.
Comment #4
steveoriolHello, 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 ...
Comment #5
zengenuity CreditAttribution: zengenuity commentedDuplicate of #1908442: Error logs filled with "Notice: Trying to get property of non-object in node_gallery_api_tokens() (line 482..." messages. Patch in other issue.