Problem with single product image/gallery/lightbox

Hi I’m using x 6.0.4 and recently updated my woocommerce on my staging site to 3.4.0. When I did my product page images stopped functioning (in exactly the same way that they did after woocommerce 3.0 came out).
I have tried adding the following code to my x child theme’s function.php (as I seem to remember that resolved the issue last time until x was updated)

add_action( ‘after_setup_theme’, ‘x_child_theme_setup’ );

function x_child_theme_setup() {
add_theme_support( ‘wc-product-gallery-zoom’ );
add_theme_support( ‘wc-product-gallery-lightbox’ );
add_theme_support( ‘wc-product-gallery-slider’ );
}

but it’s having no effect. I also tried downloading the single product template files from woo into my child theme to see if overriding would help but also no joy. I suspect the problem is me, not the theme, but could anyone help?
Thanks

Hi @tiernayoliver,

Thanks for reaching out and sorry to hear you’re having this issue.

Though, I’m not sure which site you’re working on. Would you mind providing your site’s URL and admin login credentials in a secure note? For the meantime, please make sure caches are cleared after any updates and before testing.

Thanks!

Hi
details attached

Hi @tiernayoliver,

Would you mind providing your FTP login credentials as well? There is an internal server error, and it’s related to filter or something.

For the meantime, you could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Let us know how it goes!

Hi I was trying out a woo product filter that didn’t really work. I have deactivated that plugin now but it makes no difference. I’ll keep trying to find a plug in conflict and let you know how i go
I’ll attach a secure note with ftp credentials

Hey @tiernayoliver,

Something is adding an opacity: 0 to your product gallery. X does not add that. See https://youtu.be/bbJ7cA-rVgo. We need to know if X is causing the issue in order for us to report a bug. With that said, please disable third party plugins and switch to the parent theme.

Thanks.

So deactivating 3rd party plugins didn’t make any odds but switching to the parent theme did.
i’m guessing it must be something to do with what template overrides i have in the child theme as the functions phps are identical in child in main site and test. I’ll try again tomorrow

Hi @tiernayoliver,

It shouldn’t be identical. You should be adding new code to child theme’s functions.php, or if you just need to override a pluggable function from the parent theme.

You may install a fresh copy of your child theme, and try adding template overrides one by one until you see what caused the issue.

Thanks!

Yes the functions php in main theme and child theme are different. What i meant was that the child theme functions file is the same in the live site and the staging version. I will try reinstalling and checking the template overrides and let you know how i get on. Thank you

Hi @tiernayoliver,

Let us know how it goes.

Thanks.

Hi just to update you
I reinstalled the child theme on the staging site and it resolved the problem. Have updated to woocommerce 3.4.1 on live site with no further issues (fingers crossed). Thanks for your help and patience

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.