Gallery disappear after updating website

Hello,

I had version 3.02 of Backlight, and since the update all the photos in the gallery have disappeared. I recover a backup and start the operation again but the problem comes back.

An idea?

Thank you
Nico

It seem I have PHP error since the update, the console said:

ReferenceError: $ is not defined

Uncaught SyntaxError: missing ) after argument list

A lot of php code have this error like:

$(function() {
jQuery.getScript(’/backlight/modules/module-cart/lib/js/jquery.ttgcart-pangolin.js’, function() {
if (“TTGCart” in window) {
$(‘body’).ttgcart(cartOptions);
cartOptions[‘cart_button_selector’] = ‘.add-package-to-cart’;
$(‘body’).ttgpackage(cartOptions);
}
});
});

Or:

$(document).ready(function() {
$(".btn-scroll-to-top").click(function() {
$(“html, body”).animate({ scrollTop: 0 }, “slow”);
return false;
});
$(window).scroll(function() {
if ($(this).scrollTop() > 200) {
$(".btn-scroll-to-top").fadeIn();
} else {
$(".btn-scroll-to-top").fadeOut();
}
});
});




Try clicking the Update Album Files link under Special Links on the main Backlight dashboard.

If that doesn’t fix it, please post a link to an album or page where the error can be seen.

What version of php is your host using?
You can find out by clicking the PHP Info link on the Backlight dashboard.

Thanks Rod,

I have already click on Update Album Files and the other options. But doesn’t fix

For Php With backup, I’ve tried 7, 7.2 and 7.4

This my page where normally, image must be appear but doesn’t:

In fact, with Chrome Inspector, images are here but not appears

Thanks

Are you running any custom css or phplugins?
Is so, what happens when you disable them?

I tried disabling custom CSS and phplugins, nothing changes except the look of the site

Is this an album inserted in a page? Does the album by itself still appear?

The pictures are appearing on the English version.

Yes I try to disable Phplugins, Custom Css, but nothing change, after disable Cart nothing change.

In fact you can’t change language on home page but go to an other page, change to English, come to home page and now images appear! strange

In fact, French version do not display image but English does.

I have modified nothing since update but all work well in v3.02 but not in 3.2

this may be due to an accent problem (Ă©, Ăš, Ă , ĂȘ 
) in French we use accented characters a lot, maybe this creates a conflict

That might help Matt and Ben pinpoint the problem.

Yes, thank you very much for your help and time Rod

Nico, for the thumbnail grid, what coverage option are you using? Maybe give ‘never’ a try.

Looks to me like you have some extra JavaScript in the page. There’s a file loading from chimpstatic dot com that I don’t recognize. I see you’re adding a “Back to Top” button, and some kind of blocking of the context menu. An accordion script that loops through the DOM looking for class names. And some sort of manipulation on “field_13”, whatever that’s meant to be.

As a first troubleshooting step, you should remove all of that, and whatever else you’ve done. Also, switch you layout to use the Classic grid, as that should give you a better view of the HTML printing to the screen.

Thank you Mat, Daniel and Rod,

I finally find the issue. The problem was in Admin/Setting/Language


In fact an inverted backslash was too much, I wrote:

"L\'image" and not "L'image"

returning error:

Unexpected identifier ‘image’. Expected ‘)’ to end an argument list

as you can see and that was causing the following error:

instance.$refs.imageDownload  = $('<li class="fb-image-download"><a class="fa_pseudo">Télécharger l\\'image</a></li>')
				.appendTo( this.$list );

Thank you very much all for your time and help

Nico

Glad you were able to track down the issue.

1 Like