• Resolved mazze5

    (@mazze5)


    Hi,

    I recognized problems with divi contact form when LiteSpeedPlugin is activated.
    The form data could not be submitted after some days. Some researches give me the hint with the nonces problem. The TTL of the page is longer than the Lifetime of the nonce.
    So if I exclude the page with the contact form it works fine.

    I read this article https://blog.litespeedtech.com/2020/07/08/cache-wordpress-nonces/ and that should be solve my problem. Even without defining special nonces-excludes because it should be predefined as the articel mentioned “Divi Theme Builder et-pb-contact-form-submit”.

    But it does not work. It seems as the nonce exclusion does not work. I also tried to add additional nonces like *et-* or something like that, but it is not working.

    ReportNumber: VMVTCZRA

    Regards

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

    (@qtwrk)

    Hi,

    please try use *et* , save and purge all

    then follow this guide to grab the debug log , after you get the log , please put it in https://pastebin.ubuntu.com/ then share the link of it.

    Best regards,

    Thread Starter mazze5

    (@mazze5)

    Hi

    I have done what you said.
    Here is the debug log from one time call the page, https://pastebin.ubuntu.com/p/3vzJ4cqkMV/

    If you need the log when the problem occurs, let me know. Then I have to mody nonces lifetime shortly.

    regards

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    You only have the contact form in contact page ?

    if that so , please try add this into active theme’s functions.php

    if ( defined( 'LSCWP_V' ) ) {
    do_action( 'litespeed_nonce', '_wpnonce-et-pb-contact-form-submitted-0' );
    }

    let me know how it goes

    Best regards,

    Thread Starter mazze5

    (@mazze5)

    I will try it, but I have 3 or 4 pages with a divi contact form.

    Plugin Support qtwrk

    (@qtwrk)

    okay , let’s use that contact page as test first

    Thread Starter mazze5

    (@mazze5)

    Ok I have tested it. But it doesn’t work ??

    I have changed functions.php with your code and the nonce-lifetime-change to 2minutes. Purge all, called contact page, see in page source current datetime from ls.plugin, sending contact form works, but 3 minutes later I refresh the page, same nonce and after submitting get the error “Please refresh the page and try again.” but that doesn’t work because the nonce stays the same.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please don’t change the nonce life

    the ESI nonce was fixed on 12 hours

    or edit file /litespeed-cache/src/esi.cls.php , at line 792 , change 43200 to 60 , save and purge all

    Best regards

    Thread Starter mazze5

    (@mazze5)

    Ok, thanks for that hint. Now its working. Nonce gets changed.

    Whats the problem? Is the ESI Nonces List in LS-config not the right place?

    Thread Starter mazze5

    (@mazze5)

    @qtwrk I think it is my failure. Because I thought that the esi nonce-lifetime isn’t a fixed value of 12hours, I though that it depends on the wordpress setting add_filter( 'nonce_life', 'my_nonce_lifetime' );

    After activating esi I have not waited 12hours, I’ve changed nonce_life to 2minutes in wordpress only.

    But now with your hint of esi.cls.php I saw whats going wrong. I will do a final test on live site and will report it here after 12hours of waiting ??

    but I am sure it wil work.

    Thank you for your help

    Thread Starter mazze5

    (@mazze5)

    as additional info divi contact form is working out of the box with only esi enabled, I don’t have to put manually additional nonce-name to the list on litespeed config.

    Great plugin, great support, thank you. I close this ticket now.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Divi Contact Form not working with LiteSpeedCache-Plugin’ is closed to new replies.