Support » Plugin: WooCommerce » Critical error when viewing products

  • Resolved mizzrio

    (@mizzrio)


    Hi
    Really hoping for some help

    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    This is the error message received when trying to view my products. I have gone through disabling and enabling plug ins and every thing is on the latest version. Cant seem to resolve this
    Many thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rynald0s.a11n

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @mizzrio!

    It sounds like you may have already done some intensive troubleshooting here. Good job!

    Have you had a look at the fatal-error log found under “WooCommerce > Status > Logs” to see where the trouble is coming from?

    You are welcome to post that log data back here so we can take a closer look.

    Cheers!

    Thread Starter mizzrio

    (@mizzrio)

    Brilliant thank you – I have posted the logs below.
    My hosting updated PHP and that resolved some of the issue. So now when I click some products it takes me through to the product page. Other products give me the fatal error. Any help is appreciated!

    2021-03-11T08:29:04+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php:90
    Stack trace:
    #0 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(287): scalia_woocommerce_single_product_gallery('')
    #1 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /home3/riostyle/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home3/riostyle/public_html/wp-content/themes/scalia/woocommerce/content-single-product.php(36): do_action('scalia_woocomme...')
    #4 /home3/riostyle/public_html/wp-includes/template.php(732): require('/home3/riostyle...')
    #5 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home3/riostyle...', false)
    #6 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(965): wc_get_template_part('content', 'single-product')
    #7 /home3/riostyle/public_ in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php on line 90
    
    2021-03-11T08:29:38+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php:90
    Stack trace:
    #0 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(287): scalia_woocommerce_single_product_gallery('')
    #1 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /home3/riostyle/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home3/riostyle/public_html/wp-content/themes/scalia/woocommerce/content-single-product.php(36): do_action('scalia_woocomme...')
    #4 /home3/riostyle/public_html/wp-includes/template.php(732): require('/home3/riostyle...')
    #5 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home3/riostyle...', false)
    #6 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(965): wc_get_template_part('content', 'single-product')
    #7 /home3/riostyle/public_ in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php on line 90
    
    2021-03-11T08:30:06+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php:90
    Stack trace:
    #0 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(287): scalia_woocommerce_single_product_gallery('')
    #1 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /home3/riostyle/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home3/riostyle/public_html/wp-content/themes/scalia/woocommerce/content-single-product.php(36): do_action('scalia_woocomme...')
    #4 /home3/riostyle/public_html/wp-includes/template.php(732): require('/home3/riostyle...')
    #5 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home3/riostyle...', false)
    #6 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(965): wc_get_template_part('content', 'single-product')
    #7 /home3/riostyle/public_ in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php on line 90
    
    2021-03-11T08:30:18+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php:90
    Stack trace:
    #0 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(287): scalia_woocommerce_single_product_gallery('')
    #1 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /home3/riostyle/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home3/riostyle/public_html/wp-content/themes/scalia/woocommerce/content-single-product.php(36): do_action('scalia_woocomme...')
    #4 /home3/riostyle/public_html/wp-includes/template.php(732): require('/home3/riostyle...')
    #5 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home3/riostyle...', false)
    #6 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(965): wc_get_template_part('content', 'single-product')
    #7 /home3/riostyle/public_ in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php on line 90
    
    2021-03-11T08:32:34+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php:90
    Stack trace:
    #0 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(287): scalia_woocommerce_single_product_gallery('')
    #1 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /home3/riostyle/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home3/riostyle/public_html/wp-content/themes/scalia/woocommerce/content-single-product.php(36): do_action('scalia_woocomme...')
    #4 /home3/riostyle/public_html/wp-includes/template.php(732): require('/home3/riostyle...')
    #5 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home3/riostyle...', false)
    #6 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(965): wc_get_template_part('content', 'single-product')
    #7 /home3/riostyle/public_ in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php on line 90
    
    2021-03-11T08:33:48+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php:90
    Stack trace:
    #0 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(287): scalia_woocommerce_single_product_gallery('')
    #1 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /home3/riostyle/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home3/riostyle/public_html/wp-content/themes/scalia/woocommerce/content-single-product.php(36): do_action('scalia_woocomme...')
    #4 /home3/riostyle/public_html/wp-includes/template.php(732): require('/home3/riostyle...')
    #5 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home3/riostyle...', false)
    #6 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(965): wc_get_template_part('content', 'single-product')
    #7 /home3/riostyle/public_ in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php on line 90
    
    2021-03-11T08:33:50+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php:90
    Stack trace:
    #0 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(287): scalia_woocommerce_single_product_gallery('')
    #1 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /home3/riostyle/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home3/riostyle/public_html/wp-content/themes/scalia/woocommerce/content-single-product.php(36): do_action('scalia_woocomme...')
    #4 /home3/riostyle/public_html/wp-includes/template.php(732): require('/home3/riostyle...')
    #5 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home3/riostyle...', false)
    #6 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(965): wc_get_template_part('content', 'single-product')
    #7 /home3/riostyle/public_ in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php on line 90
    
    2021-03-11T08:34:57+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php:90
    Stack trace:
    #0 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(287): scalia_woocommerce_single_product_gallery('')
    #1 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /home3/riostyle/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home3/riostyle/public_html/wp-content/themes/scalia/woocommerce/content-single-product.php(36): do_action('scalia_woocomme...')
    #4 /home3/riostyle/public_html/wp-includes/template.php(732): require('/home3/riostyle...')
    #5 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home3/riostyle...', false)
    #6 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(965): wc_get_template_part('content', 'single-product')
    #7 /home3/riostyle/public_ in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php on line 90
    
    2021-03-11T08:34:59+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php:90
    Stack trace:
    #0 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(287): scalia_woocommerce_single_product_gallery('')
    #1 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /home3/riostyle/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home3/riostyle/public_html/wp-content/themes/scalia/woocommerce/content-single-product.php(36): do_action('scalia_woocomme...')
    #4 /home3/riostyle/public_html/wp-includes/template.php(732): require('/home3/riostyle...')
    #5 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home3/riostyle...', false)
    #6 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(965): wc_get_template_part('content', 'single-product')
    #7 /home3/riostyle/public_ in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php on line 90
    
    2021-03-11T08:35:16+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php:90
    Stack trace:
    #0 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(287): scalia_woocommerce_single_product_gallery('')
    #1 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /home3/riostyle/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home3/riostyle/public_html/wp-content/themes/scalia/woocommerce/content-single-product.php(36): do_action('scalia_woocomme...')
    #4 /home3/riostyle/public_html/wp-includes/template.php(732): require('/home3/riostyle...')
    #5 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home3/riostyle...', false)
    #6 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(965): wc_get_template_part('content', 'single-product')
    #7 /home3/riostyle/public_ in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php on line 90
    
    2021-03-11T10:46:25+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php:90
    Stack trace:
    #0 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(287): scalia_woocommerce_single_product_gallery('')
    #1 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /home3/riostyle/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home3/riostyle/public_html/wp-content/themes/scalia/woocommerce/content-single-product.php(36): do_action('scalia_woocomme...')
    #4 /home3/riostyle/public_html/wp-includes/template.php(732): require('/home3/riostyle...')
    #5 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home3/riostyle...', false)
    #6 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(965): wc_get_template_part('content', 'single-product')
    #7 /home3/riostyle/public_ in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php on line 90
    
    2021-03-11T15:16:58+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php:90
    Stack trace:
    #0 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(287): scalia_woocommerce_single_product_gallery('')
    #1 /home3/riostyle/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /home3/riostyle/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /home3/riostyle/public_html/wp-content/themes/scalia/woocommerce/content-single-product.php(36): do_action('scalia_woocomme...')
    #4 /home3/riostyle/public_html/wp-includes/template.php(732): require('/home3/riostyle...')
    #5 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/home3/riostyle...', false)
    #6 /home3/riostyle/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(965): wc_get_template_part('content', 'single-product')
    #7 /home3/riostyle/public_ in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php on line 90
    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hello @mizzrio,

    It’s been a while since you posted, you may have already found the solution. In case you didn’t yet, I have gone through the error log you provided and noticed the following line:

    
    2021-03-11T08:29:38+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home3/riostyle/public_html/wp-content/themes/scalia/inc/woocommerce.php:90
    

    This line clearly indicates that the error is being triggered by your site’s theme Scalia. I recommend reaching out to the theme’s support for further assistance.

    Also, I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.