• Resolved antekapa

    (@antekapa)


    I have problem with the Search box in my website, I’m using the search function integrated in my theme… The last week I tried to fix the problem with my hosting, but they cannot find any issue on the server side. (LiteSpeed server)

    The problem is only when the page is cached – it works around a day and on the next day I get to – access forbidden 403, only for the Search Ajax call, the rest of the ajax calls works.

    Now I have my own topic if that is easy for you.

    Report number:?HAYRXEGW

    Thanks!

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

    (@qtwrk)

    yes , this will be easier for me so I don’t mistaken you and other user

    is that searchbox coming from Martfury theme ?

    Thread Starter antekapa

    (@antekapa)

    Yes, from the theme…. and I repeat, the issue is only with the Search AJAX and after re-create a new Cache works for a day or two and then the issue come back again…

    Plugin Support qtwrk

    (@qtwrk)

    yeah , that’s typical nonce issue , the nonce will valid for 24 hours or so , that’s why it works for that long and breaks, and once you purge cache and it starts to work again for another 24 hour or so

    please try this:

    go to LiteSpeed Cache -> Cache -> ESI -> enable ESI, add _martfury_nonce into ESI nonce list, save and purge all , then give it a day or two , see how it goes.

    Thread Starter antekapa

    (@antekapa)

    Ok, it is done, all set and now I rebuild the cache.

    I will get back to you in a few days with the results.

    Just, please confirm is the nonce correct – this is the request which I make when use the Search:

    POST /?wc-ajax=martfury_search_products

    is the NONCE which you gave me should work?

    Thanks for the quick answer and decision!

    • This reply was modified 5 months, 1 week ago by antekapa.
    Plugin Support qtwrk

    (@qtwrk)

    yes , at least from what I see that is the correct name , in a day or two , we will know

    Thread Starter antekapa

    (@antekapa)

    Hi, I just tried now again and is the same issue, any other ideas?

    (I will not clear the cache now if you want to see it)

    Thanks!

    Edit: I’m not very sure about the ESI function (it never works for anything what I tried) also about the actual name of the nonce. Now is “_martfury_nonce” but what if I make it “martfury_nonce private” ? Is this will be better?

    • This reply was modified 5 months ago by antekapa.
    Plugin Support qtwrk

    (@qtwrk)

    hm , please try this

    go to toolbox -> debug setting -> debug log to ON, debug level to advance , debug include URI, add lsesi and test into that field

    then go to toolbox -> log view -> clean up any existing log

    then purge all

    then open the page like https://your_domain.com/?test , once page loaded , go to log view again , it should generate you some log

    now copy paste it to https://paste.ubuntu.com/ and share the log

    Thread Starter antekapa

    (@antekapa)

    I did what you ask from me, but I post the log in pastebin, because I don’t want to make registration in ubuntu.

    https://pastebin.com/acePvptd

    Thanks!

    Plugin Support qtwrk

    (@qtwrk)

    the log seem incomplete , please try share the file /wp-content/debug.log

    Thread Starter antekapa

    (@antekapa)

    Yes now when I compare it, it look small that this in the plugin. So this is a link to the file:

    https://drive.google.com/file/d/133oDBCsIbsB9WuOUIxKBjnezoVENf9wG/view?usp=sharing

    Thanks!

    Plugin Support qtwrk

    (@qtwrk)

    the log looks weird , some lines I was looking for doesn’t show up

    please share me the report number again to allow me double check your current conf

    Thread Starter antekapa

    (@antekapa)

    UTCCERFJ

    Plugin Support qtwrk

    (@qtwrk)

    from report, it shows you did not enable ESI, not add _martfury_nonce into ESI nonce list, please verify ?

    Thread Starter antekapa

    (@antekapa)

    This is screenshot from the ESI settings page:

    https://ibb.co/nksr3LG

    I don’t touch anything just make the screenshot, so I think I did it correctly from the first time following your instructions.

    Thanks!

    Plugin Support qtwrk

    (@qtwrk)

    okay , please try this , export your current setting if needed and import it back after wipe database records, then re-do the debug log again with same setting and share log

Viewing 15 replies - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.