• Resolved xxxLesy

    (@xxxlesy)


    After version 2.7.0 I get a fatal error using Modern Image Formats, set to webp, in combination with WooCommerce and WoodMart theme. The error happens on viewing a category with sidebar widgets (WOODMART WooCommerce Layered Nav), used for color swatches, brand filters (with images) and other filters.

    Disabling the plugin or rolling it back to 2.6.1 fixes the issue.

    Fatal error: Uncaught TypeError: webp_uploads_filter_wp_get_attachment_image(): Argument #2 ($attachment_id) must be of type int, string given, called in /var/www/vhosts/clair.si/httpdocs/wp-includes/class-wp-hook.php on line 341 and defined in /var/www/vhosts/clair.si/httpdocs/wp-content/plugins/webp-uploads/hooks.php:593 Stack trace: #0 /var/www/vhosts/clair.si/httpdocs/wp-includes/class-wp-hook.php(341): webp_uploads_filter_wp_get_attachment_image() #1 /var/www/vhosts/clair.si/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() #2 /var/www/vhosts/clair.si/httpdocs/wp-includes/media.php(1215): apply_filters() #3 /var/www/vhosts/clair.si/httpdocs/wp-content/themes/woodmart/inc/widgets/class-widget-layered-nav.php(665): wp_get_attachment_image() #4 /var/www/vhosts/clair.si/httpdocs/wp-content/themes/woodmart/inc/widgets/class-widget-layered-nav.php(262): WOODMART_Widget_Layered_Nav->layered_nav_list() #5 /var/www/vhosts/clair.si/httpdocs/wp-includes/class-wp-widget.php(394): WOODMART_Widget_Layered_Nav->widget() #6 /var/www/vhosts/clair.si/httpdocs/wp-includes/widgets.php(845): WP_Widget->display_callback() #7 /var/www/vhosts/clair.si/httpdocs/wp-content/themes/woodmart/sidebar.php(45): dynamic_sidebar() #8 /var/www/vhosts/clair.si/httpdocs/wp-includes/template.php(814): require_once('…') #9 /var/www/vhosts/clair.si/httpdocs/wp-includes/template.php(749): load_template() #10 /var/www/vhosts/clair.si/httpdocs/wp-includes/general-template.php(136): locate_template() #11 /var/www/vhosts/clair.si/httpdocs/wp-content/plugins/woocommerce/templates/global/sidebar.php(22): get_sidebar() #12 /var/www/vhosts/clair.si/httpdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php(352): include('…') #13 /var/www/vhosts/clair.si/httpdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1115): wc_get_template() #14 /var/www/vhosts/clair.si/httpdocs/wp-includes/class-wp-hook.php(341): woocommerce_get_sidebar() #15 /var/www/vhosts/clair.si/httpdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() #16 /var/www/vhosts/clair.si/httpdocs/wp-includes/plugin.php(522): WP_Hook->do_action() #17 /var/www/vhosts/clair.si/httpdocs/wp-content/themes/woodmart/woocommerce/archive-product.php(41): do_action() #18 /var/www/vhosts/clair.si/httpdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php(352): include('…') #19 /var/www/vhosts/clair.si/httpdocs/wp-content/plugins/woocommerce/templates/taxonomy-product-cat.php(22): wc_get_template() #20 /var/www/vhosts/clair.si/httpdocs/wp-includes/template-loader.php(132): include('…') #21 /var/www/vhosts/clair.si/httpdocs/wp-blog-header.php(19): require_once('…') #22 /var/www/vhosts/clair.si/httpdocs/index.php(17): require('…') #23 {main} thrown in /var/www/vhosts/clair.si/httpdocs/wp-content/plugins/webp-uploads/hooks.php on line 593

    • This topic was modified 1 day, 22 hours ago by xxxLesy. Reason: Added specific widget, where the error is diplayed
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.