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-&gt;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-&gt;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

Sign In or Register to comment.