I notice a error when i save the new permission under People-> Permissions.

Notice: Undefined index: node in ercd_permission() (line 57 of /home/sw3b/www/ng/sites/all/modules/ercd/ercd.module).

Comments

sprocketman’s picture

Status: Active » Postponed (maintainer needs more info)

@sw3b: I'm not able to replicate this notice. Could you let me know what entity types you were setting up (node referencing node, for example)? Also, did the permission you were trying to set actually get set?

sw3b’s picture

It is Entity Reference with a combinaison of Node Gallery. I'm using the reference created with this module on installation. And to be honnest i'm suspecting Node Gallery to not use the API correctly or with some custom coding. I have a lot of problem of weird problem with module related to reference so i would not be suprise hit is the cause. maybe install node gallery and see if it happend on your side too ?

sw3b’s picture

On my side i will test on another site i have to see if it work ok.

sprocketman’s picture

I just tried both the dev and beta versions of Node Gallery, but still couldn't get the notice. Let me know if you find it on the other site as well. Thanks.

sw3b’s picture

does it work on your side when you delete a gallery ? does it delete the gallery item ?

sw3b’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

ok i test on fresh setup and the error is gone. I will look on the other site to see what does that.

also i test the cascade deletion and it does not work with node gallery. I think they do thing not by the book. I am having a tone of problem with the module NG and multi user site.

sprocketman’s picture

That is really interesting. Node Gallery requires Entity Reference, but after creating a gallery and adding images to it, there are no records in the entity reference data table field_data_node_gallery_ref_1. Instead Node Gallery seems to preempt Entity Reference from doing its job and then takes the reference information and stores in tables specifically created by Node Gallery. They seem to be making it hard on themselves (and other as well!). Bummer.

sw3b’s picture

yeah i know ! i guess i go back to my old fashion and working custom version of views gallery with a refresh using file entity !! ;) thanks for your help ! your fast !!!