Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Can't seem to setup the Galleria module. I am getting this error all the time and only some empty pictures.
Notice: Undefined index: field_imagetest in template_preprocess_views_view_galleria() (Zeile 17 von /is/htdocs/mine/www/drupal6/sites/all/modules/galleria/theme.inc).
Notice: Trying to get property of non-object in template_preprocess_views_view_galleria() (Zeile 17 von /is/htdocs/mine/www/drupal6/sites/all/modules/galleria/theme.inc).
Notice: Undefined property: stdClass::$field_data__node_values in include() (Zeile 13 von /is/htdocs/mine/www/drupal6/sites/all/modules/galleria/views-view-galleria.tpl.php).
Notice: Undefined property: stdClass::$field_data__node_values in include() (Zeile 14 von /is/htdocs/mine/www/drupal6/sites/all/modules/galleria/views-view-galleria.tpl.php).
This is the only message/error that I am getting.
The images that show up in the view are all pointing to my sites-Url, no real link to any picture.
Maybe my configuration is not OK, but can't find any mistakes here. The description in the README is for 6.x, but I was under the impression that I set it up correctly.
Any help is appreciated.
Comment | File | Size | Author |
---|---|---|---|
#16 | galleria-views-sahaj.txt | 23.77 KB | sahaj |
#14 | views export - galleria.txt | 8.83 KB | hexag |
Comments
Comment #1
s_leu CreditAttribution: s_leu commentedWhen i look at the path in the error messages it seems like you are trying to setup the 7.x-1.x version on a drupal 6 environment: is/htdocs/mine/www/drupal6/sites/all/modules/galleria/views-view-galleria.tpl.php .
Or did you want to open this issue for the D6 version of galleria?
The instructions in the README.txt of the 7.x-1.x version are for Drupal 7, if you follow them correctly it should work. Did you download the Galleria library to the libraries folder as described in the README?
Comment #2
cnikiel CreditAttribution: cnikiel commentedThanks for the quick answer.
It is in fact a drupal 7.x installation, but my provider choose to use an automated script that installs the base drupal 7.0 to this weird directory.
And yes I do have all dependencies fullfilled, including the javascript libraries in sites/all/libraries/galleria.
It does not complain at all about anything missing. Everything is done according to the README.
Comment #3
davidsanger CreditAttribution: davidsanger commentedsame problem when I tried to add view with Galleria format.
The Galleri node displays fine on its own, but the view is giving a problem
Comment #4
cnikiel CreditAttribution: cnikiel commentedGood point, tried this and it worked.
Only the galleria VIEW does not work at all.
But the view is the thing I would like to use :-(
Comment #5
miro_dietikerViews support was fixed recently.
Comment #6
cnikiel CreditAttribution: cnikiel commentedI tried again with the latest dev version from June 10 and I still get the same.
Even removed the complete module and downloaded again just to see if this changes anything.
The picture that should be shown look like this:
So the image source is just my sites URL.
Maybe there is still something wrong with my setup for the views?
Comment #7
cnikiel CreditAttribution: cnikiel commentedForgot to reopen this, as it still does not work for me.
Comment #8
zakxxi CreditAttribution: zakxxi commentedI have the same bug on Views and I can't find a solution, Galleria is working fine on nodes.
Any help is welcome !
Comment #9
gphilippe CreditAttribution: gphilippe commentedsame trouble also with nodes
Notice : Undefined index: field_imagetest dans template_preprocess_views_view_galleria() (ligne 17 dans /var/www/drupal90/sites/all/modules/galleria/theme/theme.inc).
Notice : Trying to get property of non-object dans template_preprocess_views_view_galleria() (ligne 17 dans /var/www/drupal90/sites/all/modules/galleria/theme/theme.inc).
Notice : Undefined property: stdClass::$field_data__node_values dans include() (ligne 14 dans /var/www/drupal90/sites/all/modules/galleria/theme/views-view-galleria.tpl.php).
Notice : Undefined property: stdClass::$field_data__node_values dans include() (ligne 15 dans /var/www/drupal90/sites/all/modules/galleria/theme/views-view-galleria.tpl.php).
Notice : Undefined property: stdClass::$field_data__node_values dans include() (ligne 16 dans /var/www/drupal90/sites/all/modules/galleria/theme/views-view-galleria.tpl.php).
Comment #10
miro_dietikerReopening this.
Somehow we tried views integration on friday June 17, and it didn't work.
We'll recheck the code to see what's wrong and provide feedback.
Comment #11
s_leu CreditAttribution: s_leu commentedThis has been fixed and commited.
Comment #12
hexag CreditAttribution: hexag commentedHi,
Working with the latest dev on Drupal 7, I'm still getting this error message, specifically these ones:
Notice: Undefined index: nid in template_preprocess_views_view_galleria() (line 36 of /var/www/waterlab/sites/all/modules/galleria/theme/theme.inc).
Notice: Trying to get property of non-object in template_preprocess_views_view_galleria() (line 36 of /var/www/waterlab/sites/all/modules/galleria/theme/theme.inc).
Notice: Undefined index: nid in template_preprocess_views_view_galleria() (line 37 of /var/www/waterlab/sites/all/modules/galleria/theme/theme.inc).
Notice: Trying to get property of non-object in template_preprocess_views_view_galleria() (line 37 of /var/www/waterlab/sites/all/modules/galleria/theme/theme.inc).
This is when trying to view a user profile where the Galleria Views plugin is used.
Cheers,
nick,
Comment #13
miro_dietikerit seems to me, that the code relies on the node case for some unknown / broken reason.
hexag, can you submit the views export as an attachment? thx.
Comment #14
hexag CreditAttribution: hexag commentedHi,
Please find attached my views export as requested, thanks for getting back to me, I didn't check for a couple of days.
Have updated all relevant modules to most up-to-date dev again today.
Cheers,
n
Comment #15
sahaj CreditAttribution: sahaj commentedSuscribe.
I'm also unable to have Galleria working with views. I'm getting different errors depending on the settings. The best I could achieve is a Galleria views page with one picture instead of all the pictures part of the node.
Comment #16
sahaj CreditAttribution: sahaj commentedI'm attaching here my views.
Thanks to have a look.
Comment #17
miro_dietikerIt should work with the most recent version.
Fixed a general reimplementation with
#1185248: Better options page and per-page options