• Resolved Robin

    (@robinrsa)


    hi there

    We have recently updated to the latest version.

    This has caused the filtering to stop working.

    When I browse the site logged out I see the following console errors:

    jquery.min.js?ver=3.6.0:2 Uncaught ReferenceError: woof_current_values is not defined
    in woocommerce-products-filter/js/front_comprssd.js?ver=1.3.0

    as well as

    jquery.min.js?ver=3.6.0:2 Uncaught ReferenceError: woof_autosubmit is not defined
    in woocommerce-products-filter/js/front_comprssd.js?ver=1.3.0

    However when I am logged into the site then everything works as expected?

    Thanks
    Robin

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello Robin

    Please disable JS optimization.

    Clear all cache and do a test

    Thread Starter Robin

    (@robinrsa)

    Thank you for the nudge, while we are using WP Rocket and haven’t had the issue before it’s weird why it became an issue all of a sudden.

    I have excluded the plugin js file from being used through WP Rocket and that appears to have done the trick.

    Thread Starter Robin

    (@robinrsa)

    Hi there, correction here, while the above worked for the first page load when applying a filter, it worked and then stopped working again.
    Console error:

    Uncaught TypeError: jQuery(...).chosen is not a function
        at woof_init_mselects (front_comprssd.js?ver=1.3.0:1:39165)
        at woof_init_search_form (front_comprssd.js?ver=1.3.0:1:7342)
        at HTMLDocument.<anonymous> (front_comprssd.js?ver=1.3.0:1:5069)
        at e (jquery.min.js?ver=3.6.0:2:30038)
        at t (jquery.min.js?ver=3.6.0:2:30340)
    Plugin Support mediawebster

    (@mediawebster)

    Hello Robin

    It looks like this is again optimization, incorrect order of loading js files

    If you use “deferred” loading – Please disable it

    Drop me exact link to the issue

    Thread Starter Robin

    (@robinrsa)

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Yes, the problem is in the async loading of js files. Please disable in WP Rocket settings

    Thread Starter Robin

    (@robinrsa)

    Hi there

    I have even tried disabling WP Rocket and still presented with the issue.

    Currently in WP Rocket:
    Minify Javascript files is disabled
    Load Javascript deferred is enabled ( also tried disabled )

    I have also excluded the following files from WP Rocket
    /wp-content/plugins/woocommerce-products-filter/js/front_comprssd.js
    /wp-content/plugins/woocommerce-products-filter/js/front.js

    Thread Starter Robin

    (@robinrsa)

    Found the issue, it was in our theme. Thanks for the help;

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Ok! Great! Welcome;)

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Filtering stopped working’ is closed to new replies.