Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author kilbot

    (@kilbot)

    Hi, I would like to take a closer look at the issue. If possible, can you join the discord chat so we can find a solution: https://wcpos.com/discord

    Or, if you email [email protected] we can pick up there. I will need to get temporary access to the POS so I can investigate.

    Thread Starter Gik000

    (@gik000)

    I have checked out that the problem is very weird,
    somehow connected to wp_create_nonce, called in row 120 of includes/Templates/Frontend.php

    https://ibb.co/7r29HVw

    Some how (check image below) the function broke up the request:

    https://ibb.co/txCN5rQ

    No idea why, but if I comment that line the /pos become visible!
    Not yet sure the plugin would work anyway with this line ??

    • This reply was modified 1 year, 10 months ago by Gik000.
    Plugin Author kilbot

    (@kilbot)

    I see, interesting. You probably have a login or security plugin that is altering the wp_create_nonce function somehow.

    The nonce is important for the web app, but you should still be able to use the desktop app, as this uses a different login method: https://github.com/wcpos/electron/releases

    Thread Starter Gik000

    (@gik000)

    The problem is related with Lite Speed Cache. Disabling this plugin, the POS one, works normally.

    I am trying to figure out why.

    Plugin Author kilbot

    (@kilbot)

    Ah! That helps a lot. I do know caching plugins can cause a problem. I already have code to disable W3 Total Cache and WP Super Cache for the POS page. I will include something similar for Lite Speed Cache.

    • This reply was modified 1 year, 10 months ago by kilbot.
    Thread Starter Gik000

    (@gik000)

    I have temporarily changed the the argument of web wp_create_nonce into a random string (“asd”).

    https://ibb.co/sKGg5R6

    Maybe “wp_rest” was conflicting somehow with litespeed-cache.

    Thread Starter Gik000

    (@gik000)

    Disabling the ESI Cache of litespeed cache, pos plugin is working normally.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can not see /pos page … json string appears’ is closed to new replies.