Forums Forums Search & Filter Pro Problem W3 total cache and range-slider

Viewing 10 posts - 1 through 10 (of 19 total)
  • Anonymous
    #227971

    Hello!
    If W3 total cache is runing we can’t see the sliders on frontend. I see the min and max value but I can see the slider.

    This is the console error with W3 total cache enabled:
    search-filter-build.min.js?ver=2.4.6:1
    Uncaught Error: decimals
    at l (search-filter-build.min.js?ver=2.4.6:1)
    at new c (search-filter-build.min.js?ver=2.4.6:1)
    at c (search-filter-build.min.js?ver=2.4.6:1)
    at HTMLDivElement.<anonymous> (search-filter-build.min.js?ver=2.4.6:2)
    at Function.each (jquery.js?ver=1.12.4:2)
    at a.fn.init.each (jquery.js?ver=1.12.4:2)
    at HTMLFormElement.addRangeSliders (search-filter-build.min.js?ver=2.4.6:2)
    at HTMLFormElement.init (search-filter-build.min.js?ver=2.4.6:2)
    at HTMLFormElement.<anonymous> (search-filter-build.min.js?ver=2.4.6:2)
    at Function.each (jquery.js?ver=1.12.4:2)

    If W3 total cache is disbled, the sliders are visible.
    Booth plugins are active from 1 year and this is the first problem.
    Can you help me?
    Thanks!

    Mauro

    Trevor
    #227977
    This reply has been marked as private.
    Trevor
    #227979

    It is likely that W3TotalCache is minifying or combining a file that cannot safely have this done to it.

    You might want to try it for minification of CSS and JS off, and also any combining of files, along with switching off any removal of query strings. Then if that works, test each option until you find the problem one. You can usually exclude files from W3TotalCache in its options, so you might try that also.

    Anonymous
    #227993

    Thanks for reply!
    Yes!! I’m using W3TC with minifications disabled.

    I have discovered this difference in frontend: if W3TC is enabled, the element div.meta-slider is empty:
    <div class=”meta-slider”></div>

    If W3TC is disabled, the element div.meta-slider is this:
    <div class=”meta-slider noUi-target noUi-ltr noUi-horizontal”>
    <div class=”noUi-base”>
    <div class=”noUi-connects”>
    <div class=”noUi-connect” style=”transform: translate(0%, 0px) scale(1, 1);”></div>
    </div>
    <div class=”noUi-origin” style=”transform: translate(-100%, 0px); z-index: 5;”><div class=”noUi-handle noUi-handle-lower” data-handle=”0″ tabindex=”0″ role=”slider” aria-orientation=”horizontal” aria-valuemin=”0.0″ aria-valuemax=”100.0″ aria-valuenow=”0.0″ aria-valuetext=”0″></div>
    </div>
    <div class=”noUi-origin” style=”transform: translate(0%, 0px); z-index: 4;”><div class=”noUi-handle noUi-handle-upper” data-handle=”1″ tabindex=”0″ role=”slider” aria-orientation=”horizontal” aria-valuemin=”0.0″ aria-valuemax=”100.0″ aria-valuenow=”100.0″ aria-valuetext=”1.000″></div>
    </div>
    </div>
    </div>

    So, I suppose the promblem is on a JS files.
    I’ll try to exclude search-filter-build.min.js from minification.

    Anonymous
    #227995
    This reply has been marked as private.
    Trevor
    #227997

    I have come across a ‘feature’ of the latest version of W3TC in that it removes some attributes from HTML. Those that have 0 value. Or you might need to exclude our JS file from the minify.

    Anonymous
    #228001

    My problem is little different. You can see details in my post 4:25pm

    This element <div class=”meta-slider”></div> is empty and there aren’t many attributes.

    Now, I’ve added this file in minify section “Never minify the following JS files” of W3TC:
    /wp-content/plugins/search-filter-pro/public/assets/js/search-filter-build.min.js?ver=2.4.6

    I purge the cache and try the site on anonimus browser and the problem seems solved.
    I test again and let you know!

    Trevor
    #228003

    Did you extend the licence on this account, as it does not show on our system? The dev license is still only a 12 month licence.

    Anonymous
    #228012
    This reply has been marked as private.
    Anonymous
    #228014

    However… My issue is on houseandtrade.com but the problem seems solved.

Viewing 10 posts - 1 through 10 (of 19 total)