The error message:
# Notice: Undefined index: node in galleria_field_formatter_prepare_view() (line 417 of .../sites/all/modules/contrib/galleria/galleria.module).
# EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7409 of /.../includes/common.inc).
Construction:
each image is a content of content type "oeuvre"
each gallery is a content of content type "gallery" wich have a node-reference (with node reference 7.x-2.0) to node of content type "oeuvres",number of values illimited, and the display is set to "galleria".
The galleria module worked perfectly but suddenly break down.
don't know why
I try to install entity reference insted of reference, but I can't set the display to galleria with this module
Can you explain me the error?
Comments
Comment #1
kroimon CreditAttribution: kroimon commentedIf it worked before, try to find out what you changed ;-)
I don't know what causes this error...
What is the type of the image field in content type "oevre"? Is it a standard "image" or "media" field?
We currently only support the references module but we should investigate the new entity reference module.
Comment #2
jthorson CreditAttribution: jthorson commentedI got the same on 7.x-1.x-dev, using standard 'image' fields.
Comment #3
jthorson CreditAttribution: jthorson commentedMore info:
Running 7.x-1.x, and References 7.x-2.0.
The line that throws the error is the $nodes[$item['nid']] = $item['node']; assignment below:
This is because each $item has only two components to the array: one keyed 'nid', and one keyed 'access'. There is no 'node' key.
Unfortunately, I don't know the field system well enough to know what *should* be in there ... but would appreciate a nudge in the right direction.
Comment #4
evronique CreditAttribution: evronique commentedI success to repare my slideshow with galleria:
I just define $item['node'] with:
$item['node']=node_load($item['nid']);
in function galleria_field_formatter_prepare_view line 412 and function galleria_field_formatter_view line 431.
but that's not a really good way to hack the module.
If you have some suggestions...
Comment #5
kroimon CreditAttribution: kroimon commentedTo my understanding, the node_reference module should already have loaded the node in
node_reference_field_formatter_prepare_view()
beforegalleria_field_formatter_prepare_view()
gets called. I have no idea why that fails for you.Maybe you could try to debug that. Just do some debug output in
node_reference_field_formatter_prepare_view()
and find out whether and when it gets called.As a workaround, I could add a
to the function, but I feel like that's not the right way to do that :-/
Comment #6
kroimon CreditAttribution: kroimon commentedI hopefully finally found and fixed this bug today.
The changes should be in the next -dev build. Please reopen this issue if you find any bugs!