Forums › Forums › Search & Filter Pro › Problem W3 total cache and range-slider
- This topic has 18 replies, 2 voices, and was last updated 4 years, 11 months ago by Anonymous.
-
Anonymous(Private) November 29, 2019 at 11:38 am #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(Private) November 29, 2019 at 2:15 pm #227979It 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(Private) November 29, 2019 at 4:25 pm #227993Thanks 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(Private) November 29, 2019 at 5:03 pm #228001My 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.6I purge the cache and try the site on anonimus browser and the problem seems solved.
I test again and let you know! -
AuthorPosts