Repeated Filter Issue
-
Hi,
I encountered this problem multiple times. The page where the filter resides was not working and was stuck with only the grid items loading. However, when logging in as admin, the filter works fine.Upon troubleshooting, I stumbled upon this error in the dev tools:
Uncaught SyntaxError: "[object Object]" is not valid JSON at JSON.parse (<anonymous>) at Object.success (bpfwe-filter-widget.min.js?ver=1.8.5:1:24140) at c (jquery.min.js?ver=3.7.1:2:25304) at Object.fireWith [as resolveWith] (jquery.min.js?ver=3.7.1:2:26053) at l (jquery.min.js?ver=3.7.1:2:77782) at XMLHttpRequest.<anonymous> (jquery.min.js?ver=3.7.1:2:80265)Also, upon checking the admin-ajax.php request, I received a 200 status code but the response via the network returned “Access Denied”.
After some research, I suspected this was due to a failed nonce verification caused by my caching plugin not renewing the nonce token. I flushed the cache and excluded the page from being cached, which fixed the issue temporarily. However, 2 days later the filter stopped working again. I tried the same method but the problem persisted. I even tried disabling the cache plugin entirely but that did not resolve it either.
What ended up working was toggling a setting on the filter widget itself, which made the filter work again. Can you help me with this one if there’s a permanent fix for this?
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.