• Resolved alanwpeasy

    (@alanwpeasy)


    Hey Guys,

    I just noticed that on some of my sites that I recently installed CleanTalk on I’m getting an 203 XHR error on the request to /wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/Ajax.php

    The sites are cached using LSCache (Litespeed Cache). If I clear the cache, the issue resolves. It appears that it may be a stale NONCE ??

    What is the resolution for CleanTalk to work with caching plugins?

    Thanks,
    Alan.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter alanwpeasy

    (@alanwpeasy)

    Sorry, Typeo.. I meant “403” error.

    Plugin Support sergecleantalk

    (@sergecleantalk)

    Hello,

    Please allow for nginx this file /wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/Ajax.php and/or set Set cookies to Use alternative mechanism for cookies and Alternative cookies handler type to Use REST API here:

    WordPress Dashboard -> Settings -> Antispam by Cleantalk

    Did it help?

    Thread Starter alanwpeasy

    (@alanwpeasy)

    Hello Serge,

    I don’t use nginx, I use Litespeed

    I changed the setting and it worked immediately. However, clearing cache also resolved the issue. So I won’t know if this is resolved unless it keeps working for several days. I will keep checking.

    Is this a known issue with LSCache cached pages?

    Thanks,
    Alan.

    Plugin Support SergeM

    (@serge00)

    Yes, the issue could be fixed by switching to alternative cookies in the CleanTalk plugin settings.
    AS I see you already did that.
    Inform us if the issue persists.
    Thank you.

    Thread Starter alanwpeasy

    (@alanwpeasy)

    Hello Serge,

    That setting made no difference. I just checked https://wiseowlelc.co.nz/

    “Set cookies” is set to “Use alternative mechanism for cookies”
    “Alternative cookies handler type” is set to “Use REST API”

    I’m getting a 403 on Ajax.php in the frontend. The only thing I can think of is the nonce is being cached on the cached page, and has expired?

    Plugin Support SergeM

    (@serge00)

    Hello, @alanwpeasy.

    Please, re-activate the plugin:
    ? WordPress Admin Page —> Plugins —> Installed plugins —> Anti-Spam by CleanTalk —> Deactivate and Activate again

    And then clear all your website cache. It should fix the issue.

    Did it help?

    Thread Starter alanwpeasy

    (@alanwpeasy)

    Hello Serge,
    I have done as you requested. However, because your nonce has a 24 hour life, I won’t know if this is resolved until tomorrow afternoon.

    Also, the same thing is occurring on other sites.

    I’ll report back later tomorrow.

    Plugin Support SergeM

    (@serge00)

    Thank you for your feedback, @alanwpeasy.
    Please, let us know how it went.

    Thread Starter alanwpeasy

    (@alanwpeasy)

    Hello Serge,
    I just checked https://wiseowlelc.co.nz/ a day after the changes you suggested.

    It now makes 10 separate XRH calls to Ajax.php on every page load. Is this normal behaviour?

    Plugin Support SergeM

    (@serge00)

    Yes, this is normal, @alanwpeasy.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Ajax.php 403 error’ is closed to new replies.