• Hi everybody, i’ve some issues with the plugin in my site, i was trying to enable developer mode in the plugin and i was having this result:

    PATCH https://staging.pritikin.com/wp-admin/admin-ajax.php?action=cloudflare_proxy 404 (Not Found)
    d.end @ compiled.js:35
    o @ compiled.js:35
    s @ compiled.js:35
    u @ compiled.js:30
    (anonymous) @ compiled.js:6
    (anonymous) @ compiled.js:35
    value @ compiled.js:35
    r @ compiled.js:16
    a @ compiled.js:16
    u @ compiled.js:16
    d @ compiled.js:6
    g @ compiled.js:6
    r @ compiled.js:30
    processEventQueue @ compiled.js:6
    r @ compiled.js:35
    handleTopLevel @ compiled.js:35
    i @ compiled.js:35
    perform @ compiled.js:6
    batchedUpdates @ compiled.js:35
    i @ compiled.js:6
    dispatchEvent @ compiled.js:35
    VM1657:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.callback (compiled.js:6)
    at compiled.js:35
    at d.callback (compiled.js:35)
    at d.<anonymous> (compiled.js:35)
    at d.r.emit (compiled.js:35)
    at XMLHttpRequest.n.onreadystatechange (compiled.js:35)

    What can i do? Any way to fix this?

    I hope for you help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Usually this error:

    Uncaught SyntaxError: Unexpected token < in JSON at position 0

    Indicates a 500 error on the server side. What is the error in the PHP error logs?

    Thanks,
    John

    I had the same issue, but with DELETE request. Appears my apache server was not configured to handle PUT PATCH DELETE requests. Here is a snippet that fixed the problem (goes into .htaccess):

    <RequireAny>
        Require method DELETE GET POST PUT OPTIONS
    </RequireAny>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘/wp-admin/admin-ajax.php?action=cloudflare_proxy 404 (Not Found)’ is closed to new replies.