Home Forums Plugins Pofily – Woocommerce Product Filters Critical error with “active filters” and “price filter” options

Critical error with “active filters” and “price filter” options

  • Author
    Posts
  • #118527

    Zeth
    Participant

    Hello, I have found these problems after some tests:

    1.-When I activate “Show active filters” option, price filter stops working (when selecting some price range I get a critical wordpress error screen) I have looked at the log and this appears:

    2022-03-03T07:44:03+00:00 CRITICAL Uncaught ValueError: Unknown format specifier "S" in /var/www/html/wp-content/plugins/pofily-woocommerce-product-filters/public/class-woocommerce-product-filters-public.php:1883
    Stack trace:
    #0 /var/www/html/wp-content/plugins/pofily-woocommerce-product-filters/public/class-woocommerce-product-filters-public.php(1883): sprintf()
    #1 /var/www/html/wp-includes/class-wp-hook.php(307): VIWCPF_Woocommerce_Product_Filters_Public->viwcpf_get_active_filter()
    #2 /var/www/html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #3 /var/www/html/wp-includes/plugin.php(474): WP_Hook->do_action()
    #4 /var/www/html/wp-content/plugins/pofily-woocommerce-product-filters/public/class-woocommerce-product-filters-public.php(288): do_action()
    #5 /var/www/html/wp-includes/shortcodes.php(356): VIWCPF_Woocommerce_Product_Filters_Public->viwcpf_menu_shortcode()
    #6 [internal function]: do_shortcode_tag()
    #7 /var/www/html/wp-includes/shortcodes.php(228): preg_replace_callback()
    #8 /var/www/html/wp-includes/class-wp-hook.php(307): do_shortcode()
    #9 /var/www/html/wp-includes/plugin.php(189): WP_Hook->apply_filters()
    #10 /var/www/html/wp-content/plugins/us-core/templates/elements/vc_column_text.php(33): apply_filters()
    #11 /var/www/html/wp-content/plugins/us-core/functions/shortcodes.php(256): require('...')
    #12 /var/www/html/wp-includes/shortcodes.php(356): US_Shortcodes->__call()
    #13 [internal function]: do_shortcode_tag()
    #14 /var/www/html/wp-includes/shortcodes.php(228): preg_replace_callback()
    #15 /var/www/html/wp-content/plugins/us-core/templates/elements/vc_column.php(135): do_shortcode()
    #16 /var/www/html/wp-content/plugins/us-core/functions/shortcodes.php(256): require('...')
    #17 /var/www/html/wp-includes/shortcodes.php(356): US_Shortcodes->__call()
    #18 [internal function]: do_shortcode_tag()
    #19 /var/www/html/wp-includes/shortcodes.php(228): preg_replace_callback()
    #20 /var/www/html/wp-content/plugins/us-core/templates/elements/vc_row.php(489): do_shortcode()
    #21 /var/www/html/wp-content/plugins/us-core/functions/shortcodes.php(256): require('...')
    #22 /var/www/html/wp-includes/shortcodes.php(356): US_Shortcodes->__call()
    #23 [internal function]: do_shortcode_tag()
    #24 /var/www/html/wp-includes/shortcodes.php(228): preg_replace_callback()
    #25 /var/www/html/wp-includes/class-wp-hook.php(307): do_shortcode()
    #26 /var/www/html/wp-includes/plugin.php(189): WP_Hook->apply_filters()
    #27 /var/www/html/wp-content/plugins/us-core/templates/content.php(43): apply_filters()
    #28 /var/www/html/wp-content/plugins/us-core/functions/helpers.php(145): include('...')
    #29 /var/www/html/wp-content/themes/Impreza/wc-templates/archive-product.php(23): us_load_template()
    #30 /var/www/html/wp-includes/template-loader.php(106): include('...')
    #31 /var/www/html/wp-blog-header.php(19): require_once('...')
    #32 /var/www/html/index.php(17): require('...')
    #33 {main}
      thrown en /var/www/html/wp-content/plugins/pofily-woocommerce-product-filters/public/class-woocommerce-product-filters-public.php en la línea 1883

    If I disable “show active filters” option, all filters work fine, including price range slider.

    2-Tooltip seems to only show 1 word, for example: if you add texts “light blue” and “light red” both appear in tooltip only as “light”

    3-Here’s a suggestion for some upcoming updates:
    The ability to have the modal and static filter on the same page.
    For example: If you are working on a large screen the static version of the filters will be displayed in the store, and when the screen is small like a phone it will automatically switch to the modal version.

    Attachments:
    You must be logged in to view attached files.

You must be logged in to see replies to this topic. Click here to login or register