fbpx
🤝  NEW YEAR SALE RETURNS - 50% OFF all plans! 🤝 Grab it Now

Fatal error on Additional Images Gallery

Hello,

I am getting fatal errors on some products pages, with the following message on the log :

2021-05-05T19:01:05+00:00 CRITICAL Uncaught Error: Call to a member function get_type() on bool in /home/gayaskinog/www/wp-content/plugins/woo-variation-gallery/includes/hooks.php:87
Stack trace:
#0 /home/gayaskinog/www/wp-includes/class-wp-hook.php(292): wvg_disable_for_specific_product_type(false)
#1 /home/gayaskinog/www/wp-includes/plugin.php(212): WP_Hook->apply_filters(false, Array)
#2 /home/gayaskinog/www/wp-content/plugins/woo-variation-gallery/includes/functions.php(138): apply_filters('disable_woo_var...', false)
#3 /home/gayaskinog/www/wp-includes/class-wp-hook.php(294): wvg_gallery_template_part_override('/home/gayaskino...', 'content')
#4 /home/gayaskinog/www/wp-includes/plugin.php(212): WP_Hook->apply_filters('/home/gayaskino...', Array)
#5 /home/gayaskinog/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(281): apply_filters('wc_get_template...', '/home/gayaskino...', 'content', 'product')
#6 /home/gayaskinog/www/wp-content/themes/flatsome/woocommerce/single-product/up-sells.php(69): wc_get_template_part('content' dans /home/gayaskinog/www/wp-content/plugins/woo-variation-gallery/includes/hooks.php Ă  la ligne 87

Tanvirul Haque

Hello Pradeep COJANDE,

Thank you for reaching out to us. Please kindly do a plugin compatibility check by doing these steps to identify the error :

=> Deactivate all of your additional plugins except WooCommerce and WooCommerce Variation Swatches Plugin.

=> See if the problem persists. If the issue is resolved, you can tell which plugin might be the culprit of this error by activating your additional plugins one by one.

If the plugin conflict check doesn’t help, please record me reproducing your issue using a tool like this? https://www.useloom.com
It helps me to figure out the issue quickly and squash it immediately.

And don’t forget to add your site login details in the site login details area. I’ll check what’s happening there.

You can add new users by going to Users > Add New set the user and password for us, set the role to admin, and set the info here.

And add your site URL, login username, and password in the site login area. Follow this guideline: https://www.useloom.com/share/27c1f2ac633c4060b2da883d946107d7

Hope to hear from you soon!

Thanks

Hello,

Deactivating Additional Image Gallery solve the issue and product pages are accessible again, so this is the current status.

I am adding website login details in the first message.

Thanks,

Pradeep

Tanvirul Haque

Hello Pradeep COJANDE,

Do you have a copy version of your site (Staging Site)? We need to investigate in-depth so we need a staging of your site.

Thanks

Hello,

I updated the plugins with the last release : it solved the issue described, but I have a new one : the images are not displaying in the product page, unless you hover on with the mouse.

I have updated the connexion info with a staging version of the website.

Thanks,

Pradeep

 

Tanvirul Haque

Kindly try to disable your all caching system, If you have Cloudflare or serverside caching enabled, try to clear the cache as well and then check again please.

Thanks

Hello,

I tried and it is not working. I cleared the cache from WP Rocket, then deactivated it completely. Same problem still here. Staging site is in that configuration ( caching system disabled, plugins activated)

 

Pradeep

 

Hello,

Still no fix for this new issue ? the images are not displaying in the product page, unless you hover on with the mouse.
Our production site is not running as we wish for the past two weeks now.

Thanks for your help

Pradeep

Tanvirul Haque

Hi Pradeep,

Thank you for reaching out to us. Please kindly do a plugin compatibility check by doing these steps to identify the error :

=> You are using lots of backdated plugins, please update all plugins to the latest version and also WordPress.

=> Deactivate all of your additional plugins except WooCommerce, WooCommerce Variation Swatches, and Additional Variation Image Gallery Plugins.

=> See if the problem persists. If the issue is resolved, you can tell which plugin might be the culprit of this error by activating your additional plugins one by one.

=> If the plugin conflict check doesn’t help, please record me reproducing your issue using a tool like this? https://www.useloom.com It helps me to figure out the issue quickly and squash it immediately.

Hope to hear from you soon!

Thank you

Hello,

I have deactivated all plugins except the ones you say.

Problem not resolved. See Staging site and any product page

Thanks,

Pradeep

 

Tanvirul Haque

Hello Pradeep COJANDE,

Could you deactivate your child theme and then check again?

Thanks

Hello,

Seems to be working after deactivating the child theme.
Any clue on how to solve this ?

Pradeep

Tanvirul Haque

Hi Pradeep,

Could you send us the latest version of the current child theme that you are using on your site? We’ll try to investigate your issue by installing your child theme on our local setup.

You can upload the child theme file in Dropbox or Google drive and send the download link here directly.

Looking forward to hearing from you soon.

Thank you