Support » Plugin: YITH WooCommerce Compare » Fatal error undefined list_products_html() WP 5.8 Woo 5.5.2

  • I actually wanted to update WooCommerce to version 5.5.2 on my testing environment but accidentally hit the update WordPress to 5.8 button.
    After updating I got a fatal error when going to the widgets management page of WordPress. After updating YITH WooCommerse Compare to version 2.5.3 I still got the same fatal error.
    What can I do to fix this?

    Fatal error: Uncaught Error: Call to undefined method YITH_Woocompare_Admin::list_products_html() in \website-root\wp-content\plugins\yith-woocommerce-compare\widgets\class.yith-woocompare-widget.php:47 Stack trace: #0 \website-root\wp-includes\class-wp-widget.php(393): YITH_Woocompare_Widget->widget(Array, Array) #1 \website-root\wp-includes\widgets.php(1977): WP_Widget->display_callback(Array, Array) #2 \website-root\wp-includes\rest-api\endpoints\class-wp-rest-widgets-controller.php(630): wp_render_widget('yith-woocompare...', 'shop-sidebar') #3 \website-root\wp-includes\rest-api\endpoints\class-wp-rest-widgets-controller.php(122): WP_REST_Widgets_Controller->prepare_item_for_response(Array, Object(WP_REST_Request)) #4 \website-root\wp-includes\rest-api\class-wp-rest-server.php(1140): WP_REST_Wi in \website-root\wp-content\plugins\yith-woocommerce-compare\widgets\class.yith-woocompare-widget.php on line 47

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    please download the file you find at this link and move it to the following path:
    wp-content\plugins\yith_woocommerce-compare\widgets

    Let me know if the problem persists.

    Thread Starter Jeroen Maathuis

    (@joennuh)

    Suddenly the problem seems to be gone so I haven’t applied your file.
    Maybe it has something to do with another (faulty) plugin that wasn’t updated or deactivated yet.

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    great, we remain at your disposal for the future 😉

    I am facing the same issue and I have wordpress 5.8 and woo 5.5.2. The problem seems to gone when I deactivate and activate plugin but it removes the widget for compare. When I add the widget back the error again comes back. I am using elementor pro. Pl fix this with an update asap.

    I got a error after updating the YITH plugin.

    WordPress caught an error with one of your plugins, YITH WooCommerce Compare.

    Error Details
    =============
    An error of type E_ERROR was caused in line 47 of the file /home/u873280409/domains/kumbilshopy.com/public_html/wp-content/plugins/yith-woocommerce-compare/widgets/class.yith-woocompare-widget.php. Error message: Uncaught Error: Call to undefined method YITH_Woocompare_Admin::list_products_html() in /home/u873280409/domains/kumbilshopy.com/public_html/wp-content/plugins/yith-woocommerce-compare/widgets/class.yith-woocompare-widget.php:47
    Stack trace:
    #0 /home/u873280409/domains/kumbilshopy.com/public_html/wp-includes/class-wp-widget.php(393): YITH_Woocompare_Widget->widget(Array, Array)
    #1 /home/u873280409/domains/kumbilshopy.com/public_html/wp-includes/widgets.php(1977): WP_Widget->display_callback(Array, Array)
    #2 /home/u873280409/domains/kumbilshopy.com/public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(630): wp_render_widget('yith-woocompare...', 'product-left-si...')
    #3 /home/u873280409/domains/kumbilshopy.com/public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(122): WP_REST_Widgets_Controller->prepare_item_for_response(Array, Object(WP_REST_Request))
    #4 /home/u873280409/domains/kumbilshopy.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1140)

    Kindly help me to resolve the issue.

    I’ve got the same error after updating:

    PHP Fatal error: Uncaught Error: Call to undefined method YITH_Woocompare_Admin::list_products_html()

    In the frontend the widget shows up as expected but under Appearence / Widgets in the dashboard it throws the error above.

    I tried to dig further into the issue but I couldn’t figure it out.

    Any help would be appreceated!

    I got an error after updating the YITH plugin.

    Kindly give support, I can’t open the widget tab due to this error.

    Error Details
    =============
    An error of type E_ERROR was caused in line 47 of the file /home/u873280409/domains/kumbilshopy.com/public_html/wp-content/plugins/yith-woocommerce-compare/widgets/class.yith-woocompare-widget.php. Error message: Uncaught Error: Call to undefined method YITH_Woocompare_Admin::list_products_html() in /home/u873280409/domains/kumbilshopy.com/public_html/wp-content/plugins/yith-woocommerce-compare/widgets/class.yith-woocompare-widget.php:47
    Stack trace:
    #0 /home/u873280409/domains/kumbilshopy.com/public_html/wp-includes/class-wp-widget.php(393): YITH_Woocompare_Widget->widget(Array, Array)
    #1 /home/u873280409/domains/kumbilshopy.com/public_html/wp-includes/widgets.php(1977): WP_Widget->display_callback(Array, Array)
    #2 /home/u873280409/domains/kumbilshopy.com/public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(630): wp_render_widget('yith-woocompare...', 'product-left-si...')
    #3 /home/u873280409/domains/kumbilshopy.com/public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(122): WP_REST_Widgets_Controller->prepare_item_for_response(Array, Object(WP_REST_Request))
    #4 /home/u873280409/domains/kumbilshopy.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1140)
    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    we have just released the version 2.5.4.1.
    Please update and let us know if the problem persists.

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