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.
You are not logged in.
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:
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...)
Les Bessant
Les Bessant Photography - Backlight site
Losing it - Blog
Twitter: @lesb
Offline
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
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
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
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
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
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.
Offline
Thanks for the replies - I'll have another try and report back later
Les Bessant
Les Bessant Photography - Backlight site
Losing it - Blog
Twitter: @lesb
Offline
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
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';
}
Offline
I also have the same error
Last edited by simkense (2018-01-16 23:43:15)
Offline
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
I just tried, but still the same problem. (I also cleared the cache)
Last edited by simkense (2018-01-17 00:38:10)
Offline
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
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
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
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
I updated the LR plugin.
Offline
cleared the cache, it has become an automatic process these days.
Offline
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
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
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!
Les Bessant
Les Bessant Photography - Backlight site
Losing it - Blog
Twitter: @lesb
Offline
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
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
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
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
Les Bessant
Les Bessant Photography - Backlight site
Losing it - Blog
Twitter: @lesb
Offline