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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

s_leu’s picture

When 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?

cnikiel’s picture

Thanks 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.

davidsanger’s picture

same 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

cnikiel’s picture

Good 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 :-(

miro_dietiker’s picture

Status: Active » Fixed

Views support was fixed recently.

cnikiel’s picture

I 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:

      <div class="view-content"> 
      <div class="galleria-content clearfix"> 
      <div class="field-item"> 
      <img src="http://www.nikiel.de/" 
           title="" 
           alt="" 
      /> 

So the image source is just my sites URL.
Maybe there is still something wrong with my setup for the views?

cnikiel’s picture

Status: Fixed » Needs review

Forgot to reopen this, as it still does not work for me.

zakxxi’s picture

I have the same bug on Views and I can't find a solution, Galleria is working fine on nodes.

Any help is welcome !

gphilippe’s picture

same 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).

miro_dietiker’s picture

Status: Needs review » Needs work

Reopening 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.

s_leu’s picture

Status: Needs work » Fixed

This has been fixed and commited.

hexag’s picture

Status: Fixed » Active

Hi,

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,

miro_dietiker’s picture

it 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.

hexag’s picture

FileSize
8.83 KB

Hi,

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

sahaj’s picture

Suscribe.

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.

sahaj’s picture

FileSize
23.77 KB

I'm attaching here my views.

Thanks to have a look.

miro_dietiker’s picture

Status: Active » Fixed

It should work with the most recent version.
Fixed a general reimplementation with
#1185248: Better options page and per-page options

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.