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

Uncaught Error: Call to a member function get_children() on bool

Phe Simmonds

Hi guys,

 

This plugin is causing a fatal error on my site:

 

Fatal error: Uncaught Error: Call to a member function get_children() on bool in /home/customer/www/development.shannon-ohara.com/public_html/wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-product-page.php:148 Stack trace: #0 /home/customer/www/development.shannon-ohara.com/public_html/wp-includes/class-wp-hook.php(307): Woo_Variation_Swatches_Product_Page->add_to_cart_variation_params(Array, ‘wc-add-to-cart-…’) #1 /home/customer/www/development.shannon-ohara.com/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array) #2 /home/customer/www/development.shannon-ohara.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php(625): apply_filters(‘woocommerce_get…’, Array, ‘wc-add-to-cart-…’) #3 /home/customer/www/development.shannon-ohara.com/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/customer/www/development.shannon-ohara.com/ in /home/customer/www/development.shannon-ohara.com/public_html/wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-product-page.php on line 148

 

Is this something you have a resolution for please?

Hakik Zaman

Hi Phe,

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