Hello @um84 ,
Thank you for pointing this out, and we sincerely apologize for the inconvenience.
I’ve already informed our development team about the issue, and it will be addressed in a future update. In the meantime, as a quick fix, you can go to /wp-content/plugins/tutor/classes/WooCommerce.php and remove lines 606–610. This should resolve the error.
Best regards,
Sunjida
Is there any update on when a fix will be released for this? The plugin appears to have dependencies for WooCommerce and HPOS tables. We have hundreds of sites throwing this fatal because they don’t have WooCommerce installed.
Hey @mtg169 ,
Thank you for reaching out. Please disable WP_DEBUG from your wp-config.php file if you are not using WooCommerce on your site, as the error should not cause any functional issues at the moment.
Alternatively, you can roll back to a previous version of Tutor LMS if you are experiencing any visible issues on your site. Our development team is currently reviewing the problem, and it should be addressed in a future update. Please keep an eye on the changelog for the latest updates and fixes.
The errors being logged isn’t an issue for us and WP_DEBUG isn’t enabled.
The issue just needs to be fixed in the plugin such as adding checks to see if WooCommerce is active, require users to install it before activating tutor, etc. This is happening since at least 2.8.2 and not fixed in 2.8.3 or 2.9.0. If Woo is a dependency, checking if it’s active is a core concept and requirement if you perhaps ever wanted the plugin to be listed in the Woo Marketplace: https://developer.woocommerce.com/docs/extensions/core-concepts/check-if-woo-is-active/
Since it affects hundreds of sites, we’ve been installing/activating WooCommerce, enabling HPOS to create the missing table, and then deactivating and deleting WooCommerce.
Hi @mtg169 ,
You can roll back to a previous version of Tutor LMS if you are experiencing any visible issues on your site. Our development team is currently reviewing the problem, and it should be addressed in a future update. Please keep an eye on the changelog for the latest updates and fixes.
Thank you for understanding.