• Resolved osamaorabi

    (@osamaorabi)


    Ajax not working with NewsPaper theme
    But working some time only if i Purge All
    But after a while ajax comes be back not working
    How can I fix this problem?
    My website:
    https://thetechfun.com/

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    this sounds like nonce issue

    please provide the report number , you can get it in toolbox -> report -> click “send to LiteSpeed”

    and also , where/how do I trigger that ajax call ?

    best regards,

    Thread Starter osamaorabi

    (@osamaorabi)

    This is report number:
    FANOIKAD
    Ajax call I tested in home page
    Example load more posts button not working

    Plugin Support qtwrk

    (@qtwrk)

    okay , didn’t see NONCE there

    what is the error message you receive when ajax call failed in browser’s developer tool ?

    as what is the request header and response header , response body ?

    best regards,

    Thread Starter osamaorabi

    (@osamaorabi)

    This errors shown

    `Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
    thetechfun.com/:1 Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
    ?v=2.0:16 WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed:
    w @ ?v=2.0:16
    /wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 403 ()
    ?v=2.0:16 WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed:
    w @ ?v=2.0:16
    ?v=2.0:16 WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed:
    w @ ?v=2.0:16
    jquery.min.js:2 POST https://thetechfun.com/wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=11.4.1 403

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    in your last row , this one jquery.min.js:2 POST https://thetechfun.com/wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=11.4.1 403

    please check this admin-ajax.php request, and screenshot me its request header, response header and response body

    best regards,

    Thread Starter osamaorabi

    (@osamaorabi)

    How can I do that?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    use the browser’s developer tool , in network tab , check the XHR request as my screenshot

    Thread Starter osamaorabi

    (@osamaorabi)

    THis correct:
    https://i.ibb.co/mvynJm5/Screen-Shot-20220223125113.png

    • This reply was modified 2 years, 9 months ago by osamaorabi.
    Thread Starter osamaorabi

    (@osamaorabi)

    Ajax worked after plugin updated

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Ajax not working with NewsPaper theme’ is closed to new replies.