Conflict between BeTheme Woocommerce and Tutor LMS Pro
Hi, ?
I get this error when I set a price for a Tutor LMS Course. The problem is within the BeTheme from what can I see. How to fix this?
<b>Fatal error</b>: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /home/mediabme/public_html/wp-content/themes/betheme/functions/theme-woocommerce.php:1028
Stack trace:
#0 /home/mediabme/public_html/wp-content/themes/betheme/functions/theme-woocommerce.php(1028): method_exists()
#1 /home/mediabme/public_html/wp-includes/class-wp-hook.php(310): mfn_template_single_add_to_cart_text()
#2 /home/mediabme/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#3 /home/mediabme/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(1932): apply_filters()
#4 /home/mediabme/public_html/wp-content/plugins/tutor/templates/single/course/add-to-cart-woocommerce.php(50): WC_Product->single_add_to_cart_text()
#5 /home/mediabme/public_html/wp-content/plugins/tutor/includes/tutor-template-functions.php(130): include('/home/mediabme/...')
#6 /home/mediabme/public_html/wp-content/plugins/tutor/templates/single/course/course-entry-box.php(204): tutor_load_template()
#7 /home/mediabme/public_html/wp-content/plugins/tutor/includes/tutor-template-functions.php(130): include('/home/mediabme/...')
#8 /home/mediabme/public_html/wp-content/plugins/tutor/templates/single-course.php(85): tutor_load_template()
#9 /home/mediabme/public_html/wp-includes/template-loader.php(106): include('/home/mediabme/...')
#10 /home/mediabme/public_html/wp-blog-header.php(19): require_once('/home/mediabme/...')
#11 /home/mediabme/public_html/index.php(17): require('/home/mediabme/...')
#12 {main}
thrown in <b>/home/mediabme/public_html/wp-content/themes/betheme/functions/theme-woocommerce.php</b> on line <b>1028</b><br>
Thank you!
Comments
Hi,
Sorry, but we did not test this plugin with the theme. Our policy states that we do not support third-party plugins or custom codes, so we cannot help you.
Also, we cannot recommend any plugins other than the ones we support. You can find the list on this page:
https://support.muffingroup.com/documentation/bundled-plugins/#compatibility
You should contact the plugin author instead.
Thanks