Major WooCommerce bug (fix included)
-
After updating Master Addons for Elementor this error appears:
“WooCommerce Subscriptions is inactive. The WooCommerce plugin must be active for WooCommerce Subscriptions to work. Please install & activate WooCommerce ?”
Your plugin creates a global function
is_woocommerce_active()
which is a global function also commonly created by plugins for sale on WooCommerce.com, in my case WooCommerce Subscriptions. Presumably due to M appearing before W in the alphabet, your version is the one that gets loaded.There’s a pretty major bug in your code:
./master-addons/inc/classes/utils.php:301
/** * Check if WooCommerce is active * * @since 1.4.7 * */ if ( ! function_exists( 'is_woocommerce_active' ) ) { function is_woocommerce_active() { jltma_is_plugin_active( 'woocommerce/woocommerce.php' ); } }
Your function doesn’t return anything.
Change line 302 to
return jltma_is_plugin_active( 'woocommerce/woocommerce.php' );
and things start to work again.
- The topic ‘Major WooCommerce bug (fix included)’ is closed to new replies.