On this page I have a view with filters:
hidden link
When logged in these 2 errors are gone and the filters work, but when logged out the filters no longer work and I see:
Uncaught ReferenceError: moment is not defined
at <anonymous>:2:1
at (index):9:5336
at new Promise (<anonymous>)
at RocketLazyLoadScripts._transformScript ((index):9:5028)
at async RocketLazyLoadScripts._loadScriptsFromList ((index):9:5429)
views-frontend.js?ver=1662382032:1
Uncaught ReferenceError: wpv_pagination_local is not defined
at new a.ViewFrontendUtils (views-frontend.js?ver=1662382032:1:11193)
at HTMLDocument.<anonymous> (views-frontend.js?ver=1662382032:1:78021)
at HTMLDocument.<anonymous> ((index):9:7121)
at RocketLazyLoadScripts._triggerDOMContentLoaded ((index):9:7702)
at async RocketLazyLoadScripts._loadEverythingNow ((index):9:4417)
hidden link
Hi Timothy,
From what I tested on the frontend the filters are working for guest users. However whenever you see Javascript errors in the website console it's mostly likely due to a plugin conflict of some sort.
What this means is that you will need to go through your list of plugins and disable each of your plugins one at a time while checking to see if the issue still remains.
Thanks,
Shane
Are you sure it's working on your end. I've tried various browsers and it's not on my end:
hidden link
But I did a plugin check and it seems to be due to my caching plugin WP Rocket. But why would it work when logged in but not when not logged in?
And it seems more specifically it's due to the "Minify javascript files" setting. What toolste files would I need to exclude from that that initiate the filters?
Thanks
Hi Timothy,
The url i had tested was
hidden link
I assumed that this was the URL with the issue, however checking on this one here hidden link
I'm able to see the issue.
Would you mind allowing me to have admin access to the website so that I can have a more detailed look at this for you ?
I've enabled the private fields for your next response.
Thanks,
Shane
Hi Timothy,
The issue was being caused by the WP Rocket plugin. Applying the safe mode resolved the issue.
I would suggest taking a look at FAQ document below.
https://toolset.com/faq/how-to-use-optimization-plugins-with-toolset/
This might help to resolve the issue as well.
Thanks,
Shane
Yes, I already knew it was caused by WP Rocket and stated that above. I was trying to find out what toolset files handle the filtering so I could exclude those from being minified to avoid the issue.
Anyway I Will use the link you provided to try.
Tim
Looks like I needed to exclude jquery.min.js from being deferred.
Hi Timothy,
Thanks for the update, can you let me know if everything is ok now.
Thanks,
Shane