• Resolved phrols

    (@phrols)


    Hello,

    We have encountered the same issue. At one time we got issues displaying the posts on some pages (some were ok some not).

    The displayed message on the page was: “Posts found: parsererror”

    Then we analysed the ajax query:
    wp-admin/admin-ajax.php?action=get_filter_posts&nonce=03330579cc&params%5Bpage%5D=1&params%5Btax%5D=category&params%5Bpost-type%5D=post&params%5Bterm%5D=30%2C29%2C32&params%5Bper-page%5D=4&params%5Bfilter-id%5D=762474&params%5Bcaf-post-layout%5D=post-layout1&params%5Bdata-target-div%5D=.data-target-div1

    The ajax response was: “Permission denied”
    The difference between the pages ok and the pages “not-ok” was the value of the parameter “nonce”. We changed this parameter value with the one on a good page and the response was ok.

    After that, I just update one page to fix some css, and a few moment later (don’t know if it is really related) all the pages were ok. No issue anymore…

    Do you have any thought one that issue?

    Thanks and Regards,
    Philippe.

    Related to topic: https://ww.wp.xz.cn/support/topic/stops-working-after-some-time/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Trusty Plugins

    (@trustyplugins)

    Hi @phrols ,

    Sorry for that inconvenience.

    Can you please share page url where you are receiving this ajax error.

    Looking forward.

    Thanks,
    Trusty Plugins Team

    Thread Starter phrols

    (@phrols)

    Hello,

    Thanks for your quick answer.
    Here is a page which were in error yesterday:

    https://illicov.fr/blog-covoiturage/

    Regards,
    Philippe.

    Plugin Author Trusty Plugins

    (@trustyplugins)

    Hi @phrols ,

    I checked that page many times,its working very fine. Sometimes nonce expires so this error may occured.

    Everything is workimg fine now. Please let us know when you receive any error you can check in private tab or use any other device for troubleshooting.

    Looking forward.

    Thanks,
    Trusty Plugins Team

    Thread Starter phrols

    (@phrols)

    Ok,

    Thanks for your support.

    Regards,
    Philippe.

    Thread Starter phrols

    (@phrols)

    I just have a final question. You said “Sometimes nonce expires so this error may occured.”.
    Could you explain what are possible causes for this nonce expiration, and what to do if this happens again to be sure to fix the issue?

    My manager does not really like the words “sometimes” and “may” 🙂

    Thanks again,
    Philippe

    Thread Starter phrols

    (@phrols)

    Hello,

    This morning the error is back.
    You can have a look:
    https://illicov.fr/blog-covoiturage/

    Regards,
    Philippe

    Thread Starter phrols

    (@phrols)

    Re-opening the issue.

    Thanks.

    Thread Starter phrols

    (@phrols)

    What is strange is that this parameter “nonce” is the same for all the pages and the value did not change from lat friday. I guess that this token has expired now.
    Shouldn’t be a “unique” token?

    Thanks.

    Plugin Author Trusty Plugins

    (@trustyplugins)

    Yes it should be change. Its working fine for us. But we will keep an eye on this page. Will try to check this page multiple times. Hope we will get the issue too and find the solution.

    Thanks

    Thread Starter phrols

    (@phrols)

    Thanks for your quick answer,

    For us the page fails to display the posts from any browser, any computer (even from BrowserStack tests).
    Are you sure you don’t have the error text displayed “Posts found: parsererror” at the bottom of the page?

    What is the value of your nonce parameter? Ours is “c7fee7c0c1”.

    Regards

    Thread Starter phrols

    (@phrols)

    Re-opening it as it does not work at all.

    Maybe the issue has been closed by error?

    Thanks!

    Plugin Author Trusty Plugins

    (@trustyplugins)

    Hi,

    Its still working for us.

    You can contact us at [email protected] so that i will send you the screenshot.

    Looking forward.

    Thanks,
    Trusty Plugins Team

    Thread Starter phrols

    (@phrols)

    Hi,

    We have found the issue. It is due to an incompatibility with a cache management plugin. The pages was cached forever, preventing to re-generate a correct nonce.
    So it’s not an issue directly related to the “Filter Post By Category” plugin but more a general issue to check between cache management and plugins using WordPress nonce.
    So I have resolved the issue.

    Thanks again the Trusty Plugins team for your support!
    We appreciate!

    Regards,
    Philippe

    Plugin Author Trusty Plugins

    (@trustyplugins)

    Hi,

    You can exclude plugin files from your cache plugin. Please try to exclude JS file.

    Hope it will work for you.

    Thanks,
    Trusty Plugins Team

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

The topic ‘Permissions denied error while retrieving posts’ is closed to new replies.