• Resolved cyberstyle7

    (@cyberstyle7)


    Hello!

    I’m using a pop up with a form. It is working fine for the first 24 hours but after that, the form does not work. It does not submit in the last step and stay stuck there. When that happens I need to clear all my cache plugins and It starts working again. I’m using CloudFlare CDN and his cache system.

    I need help, thanks.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Brave

    (@getbrave)

    @cyberstyle7 Cloudflare cache should not cause this issue. This mostly happens if object cache option of a caching plugin is active. Are you using any caching plugin of some sort?

    And you can also reduce the “Browser Cache TTL” option of Cloudflare and see if that fixes the issue.

    Thread Starter cyberstyle7

    (@cyberstyle7)

    Hello

    I’m using Litespeed cache + CloudFlare. I don’t have object caching enable. I set Browser Cache TTL in CloudFlare to 1 hour yesterday and the problem persist. Is there anything else I can do?

    Thanks.

    Plugin Author Brave

    (@getbrave)

    @cyberstyle7 Can you kindly disable the Litespeed caching and see if that fixes the issue?

    Thanks

    Thread Starter cyberstyle7

    (@cyberstyle7)

    I did that, but the same problem persist. I’m only using cloudflare cache now… there is a huge problem between the plugin and cache systems.

    Plugin Author Brave

    (@getbrave)

    @cyberstyle7 Can you please share the page link where the popup is visible?

    Thanks

    Thread Starter cyberstyle7

    (@cyberstyle7)

    Yes, this is the site : https://freefiregenerador.com/

    Plugin Author Brave

    (@getbrave)

    @cyberstyle7 Just made a test submission and it worked fine. You said you cannot get it to work from your end. Can you kindly submit the form and when it fails, open the browser console log(press ctrl+shift+J). There should be some error messages. Take a screenshot of the console log and share it with us.

    Thanks

    Thread Starter cyberstyle7

    (@cyberstyle7)

    ok, this is the error message : https://ibb.co/0Cy4MVB

    You can test it again, I won’t clear the cache, Thanks.

    Plugin Author Brave

    (@getbrave)

    @cyberstyle7 Can you kindly share your php error log file through [email protected]

    Thanks

    Thread Starter cyberstyle7

    (@cyberstyle7)

    How can I get that log file?

    Plugin Author Brave

    (@getbrave)

    You can ask your webhost to send it to you.

    Thread Starter cyberstyle7

    (@cyberstyle7)

    Php is not the problem. I have been testing using the In content form in a page without cache and It is working fine. The cache systems are the problem, so you have to check that.

    Plugin Author Brave

    (@getbrave)

    @cyberstyle7 You are correct. Its not an issue with php.
    The email function is failing to send the email and its prints out the reason for the failure in the php error log file.

    Its most probably a cache issue though. The mail function uses a short lived security key which is generated on each page load. If your cache plugin caches the whole page, the cached security key is used which is already expired and mail function fails.

    Can you kindly make sure your cache plugin/system is not caching whole page/html? or Object caching is not enabled?

    Thanks

    Thread Starter cyberstyle7

    (@cyberstyle7)

    Right, that is the problem. I’m not using object caching, but the plugins I have been using (LiteSpeedCache and WP Rocket) are caching the whole page/html for default. So I don’t know is there a way to exclude only the security key that you said.

    Plugin Author Brave

    (@getbrave)

    @cyberstyle7 Whole page caching is not a good idea. Most plugins rely on the wordpress generated security key for ajax operations. So if you turn that on, the plugins that does ajax operations will fail.

    Since the security keys are valid for 24 hours. Its better to set the page cache to expire within 24 hours or less.

    Thanks

    • This reply was modified 4 years, 2 months ago by Brave.
Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Cache problems with forms’ is closed to new replies.