Pages have a critical error with any version after version 25.0.2

Our client has long had WooCommerce in their website. We switched out their site theme to BeTheme in 2019. Everything was fine until the version immediately after 25.0.2, when every time you visit the shop page, or a product page, I get a critical site error.

Here's the log entry that was produced:

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_id() on string in /var/www/vhosts/microvascular.com/httpdocs/wp-content/themes/betheme/functions/theme-woocommerce.php:987\nStack trace:\n#0 /var/www/vhosts/microvascular.com/httpdocs/wp-includes/class-wp-hook.php(309): mfn_template_single_add_to_cart_text()\n#1 /var/www/vhosts/microvascular.com/httpdocs/wp-includes/plugin.php(189): WP_Hook->apply_filters()\n#2 /var/www/vhosts/microvascular.com/httpdocs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(1887): apply_filters()\n#3 /var/www/vhosts/microvascular.com/httpdocs/wp-content/plugins/enhancer-for-woocommerce-subscriptions/enhancer-for-woocommerce-subscriptions.php(291): WC_Product->single_add_to_cart_text()\n#4 /var/www/vhosts/microvascular.com/httpdocs/wp-includes/class-wp-hook.php(307): ENR_For_WC_Subscriptions->frontend_script()\n#5 /var/www/vhosts/microvascular.com/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()\n#6 /var/www/vhosts/...'

Comments

Sign In or Register to comment.