fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Plugin breaks website

The latest version of the plugin is causing our website to break here is the error log:

[02-Feb-2023 23:08:27 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_children() on bool in /home/hobpaisd/public_html/wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-product-page.php:169
Stack trace:
#0 /home/hobpaisd/public_html/wp-includes/class-wp-hook.php(308): Woo_Variation_Swatches_Product_Page->add_to_cart_variation_params(Array, 'wc-add-to-cart-...')
#1 /home/hobpaisd/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#2 /home/hobpaisd/public_html/wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php(625): apply_filters('woocommerce_get...', Array, 'wc-add-to-cart-...')
#3 /home/hobpaisd/public_html/wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php(466): WC_Frontend_Scripts::get_script_data('wc-add-to-cart-...')
#4 /home/hobpaisd/public_html/wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php(633): WC_Frontend_Scripts::localize_script('wc-add-to-cart-...')
#5 /home/hobpaisd/public_html/wp-includes/class-wp-hook.p in /home/hobpaisd/public_html/wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-product-page.php on line 169

Hakik Zaman

Hi Belinda,

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 the WooCommerce and WooCommerce Variation Swatches Plugin.

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

Looking forward to hearing from you soon.

Thank you

I found the conflicting plugin: Gravity Forms. However we need to keep this plugin activated for our site so will need to deactivate variation swatches until this is fixed.

Hakik Zaman

Hi Belinda,

Thanks for letting us know. Can you please give us a staging site with the same setup?

If not, we can also give you a staging site. Will you help us to replicate your issue on our end?

Hope to hear from you soon!

Thank You