Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter robertstaddon

    (@robertstaddon)

    So after a LiteSpeed cache refresh, the weird characters disappeared and the Optin Module appeared to be functioning normally for the past several days!

    So I re-rolled my code in functions.php as a simple plugin that fixes the Optin Module and other frontend features (e.g. AJAX pagination, A/B testing) in both the Divi theme and Extra theme if ESI is enabled in LiteSpeed settings. It registers all of the necessary frontend nonces for these themes:
    https://github.com/robertstaddon/litespeed-divi-fixes
    https://github.com/robertstaddon/litespeed-extra-fixes

    Right after switching over to these plugins, I again found the weird characters being spit out where the nonce should have appeared: https://paste.pics/bacff9445ae74338729823c735248052 However, I flushed all the LiteSpeed caches again and after that the site started working properly.

    It might be nice if you could consider register these nonces as part of your core plugin for anyone using the Divi or Extra themes.

    Plugin Support Hai Zheng?

    (@hailite)

    Will pass to our test team to reproduce it. Thanks for the info.

    FYI, we did have a 3rd party code for DIVI but didn’t include the nonce you mentioned above, its in https://github.com/litespeedtech/lscache_wp/blob/master/litespeed-cache/thirdparty/lscwp-3rd-divi-theme-builder.cls.php#L41

    Plugin Support Hai Zheng?

    (@hailite)

    Also, we will add a new option to ESI setting, where allows you to set those nonces without writing codes. Hope this can help.

    For the weird chars, our team will try to reproduce. In the meanwhile, do you mind to try turn on debug log, and check the log when you got the weird chars? That may help debug.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Divi Theme’s Email Optin Module Not Working with LiteSpeed Cache’ is closed to new replies.