• 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]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Dara

    (@dara4)

    Hi paradosseus (@paradosseus),

    Thanks for the detailed report, that helps a lot.

    You are correct, the problem is almost certainly caused by nonce expiration. Since you mentioned that excluding the page didn’t resolve it, it’s very likely that your server’s Object Cache (like Redis or Memcached) is holding onto the expired security data. In the meantime you could check if there is a setting to selectively disable object caching for that specific page or to turn it off.

    I will be adding a function to the plugin to force-refresh the nonce on page load, regardless of cache state.

    If you can share which caching plugin or hosting provider you are using, I will also try to replicate that specific environment for testing.

    Regards,
    Dara

    Thread Starter paradosseus

    (@paradosseus)

    Hi Dara,

    Thanks for responding. I’ve checked the settings of my page plugin and this is what I found that’s related to the object cache:
    https://imgur.com/gallery/object-cache-q2iYANq

    As for the caching plugin and hosting, it’s Super page plugin (free version) and WP Engine. For more details, other than excluding the given page to be cached, I set my cache lifespan to be 1 day and disabled the preloader. I didn’t set the Cloudflare connection and the caching for files (JS, CSS & Fonts), media, database optimization are disabled.

    Plugin Support Dara

    (@dara4)

    Hi paradosseus (@paradosseus),

    Thanks for the extra info.

    This confirms it is most likely related to cached data being served inconsistently. I will address this in the next update with a proper fix.

    Regards,
    Dara

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

You must be logged in to reply to this topic.