Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2018-01-16 04:55:52

Tiggrrr42
Member
From: Gateshead, UK
Registered: 2017-10-10
Posts: 15
Website

Getting started with Galleria - got an error...

Backlight updated to latest release.

Publisher updated.

Created new Galleria template.

Created a new album and associated it with the template.

Published album and get this message on the page:

Something went wrong
Unexpected error: Undefined variable: thumbnails in galleria-pangolin.php on line 45

Album is at:

Testing Galleria

I've enabled guest credentials:

User: guest

Password: MtEfsGCZ8zm


Any suggestions?


(Enabling FTP would be more... interesting due to the way I've locked the server down...)

Offline

#2 2018-01-16 05:57:20

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Getting started with Galleria - got an error...

I don't see the error message on that page. But I don't see the slideshow either, even though it's in the page's source code.

Since the error implied thumbnails, have you tried using another thumbnail setting? I've tried them all during testing and they all worked for me.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2018-01-16 06:54:33

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Getting started with Galleria - got an error...

there's a question mark in one of your photo captions. Try removing that and see if it helps.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#4 2018-01-16 07:17:46

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Getting started with Galleria - got an error...

That's a strange error; something Matt will have to look at. As Rod suggested, I would try different thumbnails settings.

Oh, which setting did you use that created this error?


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#5 2018-01-16 08:41:19

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Getting started with Galleria - got an error...

never mind about the question mark. I just added one to a caption in a Galleria show and it didn't break it.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#6 2018-01-16 08:57:16

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Getting started with Galleria - got an error...

You might try clearing template cache as well as creating a brand new template. Looking at your template, I see you're using carousel. In the page source code I see this:

Galleria.run('.galleria', {
  autoplay: false,
  carousel : ,
  dataSource: data,
  imageCrop: true,
  fullscreenCrop: false,
  maxScaleRatio: undefined,
  showCounter: true,
  showInfo: true,
  thumbCrop: false,
  thumbnails: });

But in my slideshow, also using carousel, I get this:

Galleria.run('.galleria', {
  autoplay: 5000,
  carousel : true,
  dataSource: data,
  imageCrop: false,
  fullscreenCrop: false,
  maxScaleRatio: 1,
  showCounter: false,
  showInfo: true,
  thumbCrop: false,
  thumbnails: 'lazy'});

for some reason, carousel and thumbnails aren't getting any values attached to them. So maybe a new template?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2018-01-16 09:23:06

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Getting started with Galleria - got an error...

That's weird. Conditions are set up for every choice, and should be 'disabled' by default, rendering 'false' in both places. Try choosing any thumbnail type to force a change and save it, then switch back to your preferred choice.


Matt

The Turning Gate, http://theturninggate.net

Offline

#8 2018-01-16 15:36:55

Tiggrrr42
Member
From: Gateshead, UK
Registered: 2017-10-10
Posts: 15
Website

Re: Getting started with Galleria - got an error...

Thanks for the replies - I'll have another try and report back later

Offline

#9 2018-01-16 18:52:11

speacock110
Member
Registered: 2013-04-11
Posts: 169

Re: Getting started with Galleria - got an error...

I am having exactly the same problem. I have completly republished the images, inc. new images. Changed as many settings in the template and I still get the same error in red atb the bottom of the screen.

Offline

#10 2018-01-16 20:28:49

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Getting started with Galleria - got an error...

Utterly bizarre. Sorry for the inconvenience, but we've had no luck at all reproducing this issue on our side. Try this, though.

Open the file /backlight/modules/pangolin-galleria/dynamic/js/galleria-pangolin.php in an editor.

Find this, near the top:

  if ( $model->value('galleria.thumbnails') == 'disabled' ) {
    $thumbnails = 'false';
    $carousel = 'false';
  } elseif ( $model->value('galleria.thumbnails') == 'carousel' ) {
    $thumbnails = '\'lazy\'';
    $carousel = 'true';
  } elseif ( $model->value('galleria.thumbnails') == 'empty' ) {
    $thumbnails = '\'empty\'';
    $carousel = 'true';
  } elseif ( $model->value('galleria.thumbnails') == 'pallet' ) {
    $thumbnails = '\'lazy\'';
    $carousel = 'false';
  }

Replace with this:

  if ( $model->value('galleria.thumbnails') == 'carousel' ) {
    $thumbnails = '\'lazy\'';
    $carousel = 'true';
  } elseif ( $model->value('galleria.thumbnails') == 'empty' ) {
    $thumbnails = '\'empty\'';
    $carousel = 'true';
  } elseif ( $model->value('galleria.thumbnails') == 'pallet' ) {
    $thumbnails = '\'lazy\'';
    $carousel = 'false';
  } else {
    $thumbnails = 'false';
    $carousel = 'false';
  }

Matt

The Turning Gate, http://theturninggate.net

Offline

#11 2018-01-16 23:42:29

simkense
Member
Registered: 2016-05-07
Posts: 16

Re: Getting started with Galleria - got an error...

I also have the same error sad

Last edited by simkense (2018-01-16 23:43:15)

Offline

#12 2018-01-16 23:52:08

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Getting started with Galleria - got an error...

Have you tried Matt’s potential fix?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#13 2018-01-17 00:37:30

simkense
Member
Registered: 2016-05-07
Posts: 16

Re: Getting started with Galleria - got an error...

I just tried, but still the same problem. (I also cleared the cache)

Last edited by simkense (2018-01-17 00:38:10)

Offline

#14 2018-01-17 01:33:08

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Getting started with Galleria - got an error...

can you post a link to a galleria album that's not working. It'll give Matt another data point


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#15 2018-01-17 01:38:12

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Getting started with Galleria - got an error...

another question: did you update the Publisher Lightroom plug-in?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#16 2018-01-17 03:00:27

speacock110
Member
Registered: 2013-04-11
Posts: 169

Re: Getting started with Galleria - got an error...

Also tried the fix and it did not work. The publisher plugin is the latest. Also re copied just to check prior to republishing. Sorry cannot provide a link as my workflow involves a local website prior to uploading in case of issues like this

The error is now on line 35

Last edited by speacock110 (2018-01-17 03:11:16)

Offline

#17 2018-01-17 03:12:56

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Getting started with Galleria - got an error...

speacock110 wrote:

Also tried the fix and it did not work. The publisher plugin is the latest. Also re copied just to check prior to republishing. Sorry cannot provide a link as my workflow involves a local website prior to uploading in case of issues like this

Did you clear the template cache after modifying the file http://yourdomain.com/backlight/designer/?a=clear_cache


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#18 2018-01-17 03:32:14

simkense
Member
Registered: 2016-05-07
Posts: 16

Re: Getting started with Galleria - got an error...

I updated the LR plugin.

Offline

#19 2018-01-17 03:37:21

speacock110
Member
Registered: 2013-04-11
Posts: 169

Re: Getting started with Galleria - got an error...

cleared the cache, it has become an automatic process these days.

Offline

#20 2018-01-17 04:02:00

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Getting started with Galleria - got an error...

speacock110 wrote:

The error is now on line 35

Could you post the entire error message please?


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#21 2018-01-17 05:18:27

speacock110
Member
Registered: 2013-04-11
Posts: 169

Re: Getting started with Galleria - got an error...

Exactly as previously posted at the start of this post but  45 replaced with 35
Unexpected error: Undefined variable: thumbnails in galleria-pangolin.php on line 35

Offline

#22 2018-01-17 05:54:46

Tiggrrr42
Member
From: Gateshead, UK
Registered: 2017-10-10
Posts: 15
Website

Re: Getting started with Galleria - got an error...

Hmmmm

Tried the edit, cleared cache, republished.

This time I don't get the red error message, but I don't get a gallery either!

New test album here

Offline

#23 2018-01-17 05:57:40

speacock110
Member
Registered: 2013-04-11
Posts: 169

Re: Getting started with Galleria - got an error...

I also noticed the red error message sometimes there and sometimes not. Usually after i have either logged in or logged out of Backlight admin, cleared the cache or closed then reopened the browser. Tried to find a reproducable patttern but as of yet have not.

Offline

#24 2018-01-17 07:06:16

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Getting started with Galleria - got an error...

I think I found the culprit: Open the file /backlight/modules/pangolin-galleria/dynamic/js/galleria-pangolin.php in an editor and change line 14 from

<?

to

<?php

Then clear the template cache (http://yourdomain.com/backlight/designer/?a=clear_cache).

It seems like different opening and closing tags for php can be used, but only if the platform is configured for it. It looks like this was the case for all beta testers sad


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#25 2018-01-17 07:14:47

Tiggrrr42
Member
From: Gateshead, UK
Registered: 2017-10-10
Posts: 15
Website

Re: Getting started with Galleria - got an error...

Ahhh, yes! I now have a working test.

Good catch - my installation of PHP7 doesn't have short tags enabled, which would account for the borkage.

Now all I need is the time to configure it!

Many thanks, Daniel

Offline

Board footer

Powered by FluxBB