• Resolved nf0203

    (@nf0203)


    I get this error when I try to view New Woocommerce products on my website:

    Fatal error: Uncaught Error: Call to a member function get_options() on string in /home/customer/www/example.com/public_html/wp-content/plugins/woo-advanced-product-size-chart/public/class-size-chart-for-woocommerce-public.php:832 Stack trace: #0 /home/customer/www/example.com/public_html/wp-content/plugins/woo-advanced-product-size-chart/public/class-size-chart-for-woocommerce-public.php(923): SCFW_Size_Chart_For_Woocommerce_Public->scfw_size_chart_id_by_attributes(22169) #1 /home/customer/www/example.com/public_html/wp-content/plugins/woo-advanced-product-size-chart/public/class-size-chart-for-woocommerce-public.php(125): SCFW_Size_Chart_For_Woocommerce_Public->scfw_get_inline_style_for_size_chart() #2 /home/customer/www/example.com/public_html/wp-includes/class-wp-hook.php(308): SCFW_Size_Chart_For_Woocommerce_Public->scfw_enqueue_styles_scripts_callback(”) #3 /home/customer/www/example.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) in /home/customer/www/example.com/public_html/wp-content/plugins/woo-advanced-product-size-chart/public/class-size-chart-for-woocommerce-public.php on line 832

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello @nf0203

    Thanks for reaching out and for sharing the details.

    We cannot reproduce the issue in our server, but you can make the below changes to make it work.

    File path: “plugins/size-chart-for-woocommerce-premium/public/class-size-chart-for-woocommerce-public.php”

    Line no: 832

    Change from: if ( !empty($attribute->get_options()) ) {

    To: if ( is_object( $attribute ) && !empty($attribute->get_options()) ) {

    NOTE: We will update the plugin code to the latest one in the next release so you never lose these changes.

    Best Regards,
    Hitendra | DotStore Team

    Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello @nf0203,

    I hope you are doing well.

    We have released a new version by resolving the “Uncaught error” mentioned by you.

    Please upgrade to resolve it.

    Best Regards,
    Hitendra & DotStore Team

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error’ is closed to new replies.