Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter neil rowe

    (@neil-rowe)

    ..im getting the following error on the page when logged in:
    Error: Syntax error, unrecognized expression: Error, could not verify WP nonce.

    Plugin Author Darren Cooney

    (@dcooney)

    What browser does this happen in?

    Thread Starter neil rowe

    (@neil-rowe)

    safari and firefox .. I’m running the latest version of WP and ALM

    Thread Starter neil rowe

    (@neil-rowe)

    oddly I’ve also notice that its not loading the admin toolbar for me anymore when I’m logged in and viewing the site. i can give you a sample login if you’d like

    Thread Starter neil rowe

    (@neil-rowe)

    ..problem solved.

    apparently WP super cache which i enabled to test cached page speed really doesn’t like playing well with my current configuration. although i had disabled it again, it didn’t really let go until i removed it entirely. but now things are back to normal.

    Thanks for your quick reply, I just started being able to work on it again this morning and sussed it out 🙂

    Thread Starter neil rowe

    (@neil-rowe)

    upon further review ..specifically the setting for making known users anonymous so they are served cached files is the culprit.

    ..you can get around this by just unchecking the setting:
    Don’t cache pages for known users. (Recommended)

    and then you don’t need to make them anonymous to be served cached files.

    hope this helps someone else, but would be nice if the nonce validated either way if your able to work it into an update 🙂

    Plugin Author Darren Cooney

    (@dcooney)

    Nice find…
    I guess i could skip the nonce verification if the user is logged in.

    quick question, so with the “don’t cache pages for known users” set, it just means people logged in can’t see it?

    Thread Starter neil rowe

    (@neil-rowe)

    ..specifically the setting for “making known users anonymous so they are served cached files” is the culprit.

    Its when you set this that those logged in users that are masquerading as anonymous through WP supercache will not be able to see the ALM entity. I assume because the nonce does not check out since they are not actually anonymous.

    If you want to have pages cached for known users and have ALM work, just uncheck the following 2 settings in WP supercache:

    Don’t cache pages for known users. (Recommended)

    Make known users anonymous so they’re served supercached static files.

    ..and if you do NOT want to cache pages for known users, just check the first without the second.

    In both these configurations, ALM will work great as it usually does.
    If Dcooney changes it to not check the nonce for logged in users you could then set any of these any way you want without worry, so hopefully he will make that change, or one which reaches the same end result in the future.

    Plugin Author Darren Cooney

    (@dcooney)

    I’m considering adding as is_logged_in() check to the nonce verification. If you want to make sure I remember you can request on the github repo as mark it as a feature request.

    Cheers,

    @neil thanks, I think I’ll keep it checked, as I don’t mind it when logged in users don’t see it, as long logged in users see it I’m fine.

    Thread Starter neil rowe

    (@neil-rowe)

    ill add the request, thanks dcooney 🙂

    Hello. I have same error, but only on mac book in Chrome browser. All browsers in Windows works fine, Mac OS in Safari, FF works ok, but Mac OS with Chrome shows this error : Error: Syntax error, unrecognized expression: Error, could not verify WP nonce.
    And no, any cache plugins not installed.
    Any idea?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘not loading posts when I'm logged in’ is closed to new replies.