Impossible to view product preview
Trying to view the preview of a simple product I have this error (I enabled debug mode to display it).
The product is made with a product template with the use of ACF parts.
This error never happened before.
Theme version: 27.1.5
PHP version: 8.0
Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /home/immobiliarestone/public_html/wp-content/themes/betheme/template-single-product.php:21 Stack trace: #0 /home/immobiliarestone/public_html/wp-content/themes/betheme/template-single-product.php(21): method_exists(NULL, 'get_stock_quant...') #1 /home/immobiliarestone/public_html/wp-includes/template.php(785): require('/home/immobilia...') #2 /home/immobiliarestone/public_html/wp-includes/template.php(718): load_template('/home/immobilia...', false, Array) #3 /home/immobiliarestone/public_html/wp-includes/general-template.php(204): locate_template(Array, true, false, Array) #4 /home/immobiliarestone/public_html/wp-content/themes/betheme/woocommerce.php(41): get_template_part('template-single...') #5 /home/immobiliarestone/public_html/wp-includes/template-loader.php(106): include('/home/immobilia...') #6 /home/immobiliarestone/public_html/wp-blog-header.php(19): require_once('/home/immobilia...') #7 /home/immobiliarestone/public_html/index.php(17): require('/home/immobilia...') #8 {main} thrown in /home/immobiliarestone/public_html/wp-content/themes/betheme/template-single-product.php on line 21
Comments
Hi,
Please send us the WordPress dashboard and FTP access privately thru the contact form, which is on the right side at http://themeforest.net/user/muffingroup#contact, and we will check what might be the reason.
Notice!
Please attach a link to this forum discussion.
Thanks