I am receiving the following error message when viewing a single product page:
Fatal error: Uncaught Error: Call to a member function get_availability() on string in /app/public/wp-content/themes/astra/inc/compatibility/woocommerce/woocommerce-common-functions.php:125 Stack trace: #0 /app/public/wp-includes/class-wp-hook.php(288): astra_woo_product_in_stock('', '') #1 /app/public/wp-includes/plugin.php(203): WP_Hook->apply_filters('', Array) #2 /app/public/wp-content/plugins/weeblramp-theme-wc/layouts/weeblramp/frontend/amp/contents/wc_add_to_cart_simple.php(51): apply_filters('woocommerce_get...', '', '', Object(WC_Product_Simple)) #3 /app/public/wp-content/plugins/weeblramp/vendor/weeblr/wblib/packages/mvc/layout/file.php(114): include('/app/public/wp-...') #4 /app/public/wp-content/plugins/weeblramp/vendor/weeblr/wblib/packages/mvc/layout/helper.php(24): WblMvcLayout_File->render(Array) #5 /app/public/wp-content/plugins/weeblramp-theme-wc/layouts/weeblramp/frontend/amp/contents/wc_single_item.php(125): WblMvcLayout_Helper::render('weeblramp.front...', Array, '/app/public/wp-...') #6 /app/public/w in /app/public/wp-content/themes/astra/inc/compatibility/woocommerce/woocommerce-common-functions.php on line 125
Any ideas?
Fatal error: Uncaught Error: Call to a member function get_availability() on string in /app/public/wp-content/themes/astra/inc/compatibility/woocommerce/woocommerce-common-functions.php:125 Stack trace: #0 /app/public/wp-includes/class-wp-hook.php(288): astra_woo_product_in_stock('', '') #1 /app/public/wp-includes/plugin.php(203): WP_Hook->apply_filters('', Array) #2 /app/public/wp-content/plugins/weeblramp-theme-wc/layouts/weeblramp/frontend/amp/contents/wc_add_to_cart_simple.php(51): apply_filters('woocommerce_get...', '', '', Object(WC_Product_Simple)) #3 /app/public/wp-content/plugins/weeblramp/vendor/weeblr/wblib/packages/mvc/layout/file.php(114): include('/app/public/wp-...') #4 /app/public/wp-content/plugins/weeblramp/vendor/weeblr/wblib/packages/mvc/layout/helper.php(24): WblMvcLayout_File->render(Array) #5 /app/public/wp-content/plugins/weeblramp-theme-wc/layouts/weeblramp/frontend/amp/contents/wc_single_item.php(125): WblMvcLayout_Helper::render('weeblramp.front...', Array, '/app/public/wp-...') #6 /app/public/w in /app/public/wp-content/themes/astra/inc/compatibility/woocommerce/woocommerce-common-functions.php on line 125
Any ideas?