Viewing 30 posts - 1 through 30 (of 36 total)
  • Author
    Posts
  • #1479339

    Hi there,

    We’ve got two websites now where, after adding Google Captcha V3, we get this error when testing the contact form in Enfold:

    Token to validate form already expired.
    Form could not be submitted. Please reload page and try again.
    Transient to verify form was missing or expired.

    We’ve tried:
    1. Clearing and disabling cache
    2. Updating all plugins
    3. Updating Enfold to latest version
    4. Re-saving the captcha keys
    5. Assigning new captcha keys
    6. Switching to Captcha V2 only

    If we switch the form’s security to use the Enfold numerical captcha, that works. However neither Captcha V2 or V3 will work.

    Please kindly advise?

    Thanks
    Eric

    #1479399

    Hey engage24,

    Maybe a plugin or custom code is causing that to happen? https://kriesi.at/support/topic/recaptcha-error-token-to-validate-form-already-expired/

    Best regards,
    Rikard

    #1479410

    Hi there

    We have the same effect on a client’s website for a few days now. We have tested everything like user “engage24”. We still have to check whether it also occurs on our other customer websites.

    Are there any new findings as to how this problem suddenly arises?

    Thank you very much
    Mike

    #1479413

    Hi there

    In the meantime, we have noticed that this effect occurs on all our customer websites since the update to Enfold 7.0.
    We need a solution as soon as possible, as resetting ReCaptcha to v1 is not a long-term alternative.

    Thank you very much
    MIke

    #1479457

    Thanks folks

    @Rikard
    – the link you provided to a previous question was down to user error, not the case here.

    @mediaformers
    – we actually saw the issue on Enfold v6 too, we upgraded to v7 which we hoped would resolve it, but it didn’t.

    #1479463

    Hi everybody


    @engage24
    : Thank you, that’s interesting. We’ve only noticed it since the update to Enfold 7.0 or it has been reported by customers.

    Our latest findings:
    We do not have this problem on all customer websites with Enfold. Although the setup is usually the same. It cannot be due to the installed plugins. The problem continues to occur even with deactivated plugins (especially with deactivated caching plugin). As soon as we run the form with Enfold numerical captcha, it works without any problems.

    We cannot logically narrow down the cause of the error and urgently need support from Enfold.

    Thanks
    Mike

    #1479519

    Hi,

    Thank you for the inquiry.

    The website xxxxxx is using a very old version (5.1.1) of the theme. Please download the latest version from your ThemeForest account and update the theme via FTP.

    https://kriesi.at/documentation/enfold/theme-update/#update-via-ftp

    Best regards,
    Ismael

    #1479528

    Hi Ismael,

    Sorry yes, the above steps were all done on a different website where this is also an issue.

    We have now upgraded this website to v7, but as you can clearly see this problem exists across every version of your theme.

    It hasn’t been a problem until recently though – so this problem must have been caused by a change on Google’s side which impacts Enfold.

    I’ve added website access to the sensitive info area (pls kindly remove the website name from your post above)

    Thanks

    #1479529

    Hi Ismael

    Our affected websites (see private content) are all up to date (theme, WP, plugins). Nevertheless, the problem occurs, but not on all pages.

    Should I give you access to one of the affected websites? I could also give you access to another website with the same setup, but where the contact form still works with Recapcha v3.

    Thanks for the support.

    Regards
    Mike

    #1479792

    Hi Ismael

    Is there any news on this issue? Do you need more information?

    Thx
    Mike

    #1480130

    Dear team Enfold

    I ask again: Do we still receive support for this? We would be very grateful if someone would take care of this problem.

    Thx
    Mike

    #1480277

    Hi folks,

    The Enfold support is usually excellent.

    Looking forward to a speedy resolution to this problem.

    Thanks
    Eric

    #1480447

    Hi,

    @engage24
    I tested your site with both v2 & v3 reCAPTCHA and both worked for me. I also tested on my install with both v2 & v3 reCAPTCHA and both worked for me with my own keys.
    Perhaps your browser has a ad-blocker, but I can’t reproduce this on either your site or mine.

    Best regards,
    Mike

    #1480539

    Hi @Mike,

    Thanks very much for your reply.
    When you say both worked for you, how did you test them?
    Because the test facility within the Enfold options says they connect fine. So don’t base it on that please.
    The problem is when it comes to someone completing the contact form.
    So if you go to the home page, scroll to the bottom and fill in the contact form… check the results in (the text is white on white, so just highlight it to see).

    Thanks
    Eric

    #1480541

    Hi,
    I originally tested the frontend and did it again just now, I don’t get a error message on your site or mine.
    Your contact form is over a image, I don’t see white background with white text, I did try to highlight the section.

    Best regards,
    Mike

    #1480561

    HI Mike

    I just tried via another device on a another wifi network, and even via a VPN to another country and still get the same.

    Just to be sure you’re testing the same way as I am, please see the screen recording I have added to this ticket. (Google Drive link)

    I have another site this is happening on too, so I can give you the details of that one too if necessary.

    Thanks
    Eric

    #1480597

    Hi,
    I can not view the recording without a login, please allow non login access or use a different platform to post your video.

    Best regards,
    Mike

    #1480603

    Apologies @Mike , please try again now.

    #1480618

    Hi,

    Thank you for the update.

    Would you mind creating a staging environment so we can check the issue without affecting the live site? You can use Duplicator or WP Migrate DB to clone the site to a different domain. Please provide the WP and FTP details in the private field.

    Best regards,
    Ismael

    #1480638

    Hi Ismael

    You can try and fix it on the live site please. As it is currently broken, you can’t really cause much damage.

    #1480692

    Hi,

    We installed the Transients Manager plugin, and according to it, the site is using a persistent object cache. It’s possible that the site is retrieving an old version of the transient entry from the object cache instead of the wp_options table. What happens when you disable this feature temporarily?

    Best regards,
    Ismael

    #1480693

    Hi,

    Excluding the av_recaptcha_token transient might also help:

    https://developer.wordpress.org/reference/hooks/pre_transient_transient/
    https://developer.wordpress.org/reference/functions/wp_cache_add_non_persistent_groups/

    In the functions.php file:

    add_filter( 'pre_transient_av_recaptcha_token', '__return_false' );
    

    The Appearance > Theme File Editor is not accessible, so we’re not able to test this.

    Best regards,
    Ismael

    #1480708

    Hi @Ismael,

    As mentioned in the original post, we tried disabling cache altogether.

    But I have made the Theme Editor available in the back-end now.

    I also added the code above, but it made no difference

    Thanks
    Eric

    #1480754

    Hey!

    Please note that persistent object cache is different from the cache created by the W3 Total Cache plugin. You will need to ask your hosting provider to disable this feature. Please disable the object cache temporarily while we are testing the site.

    Best regards,
    Ismael

    #1480766

    Hi @Ismael

    Luckily we are the hosting provider as well, so we have disabled cPanel server-side caching.

    I still get the same error when testing though…

    Thanks
    Eric

    PS. As @mediaformers is also getting the same error, it may be worthwhile comparing our environments for any similarities?

    #1480897

    Hi,
    Do you have this issue when Enfold Theme Options ▸ Performance ▸ JS & CSS file merging and compression is disabled?

    Best regards,
    Mike

    #1480903

    Hey!

    Persistent object cache is still enabled when we checked. Please disable it temporarily while we’re testing. We’ll let you know once we’re done debugging so you can enable it again.

    View post on imgur.com

    In the meantime, we recommend using third-party contact forms such as Contact Form 7 or WPForms to replace the current contact form.

    Regards,
    Ismael

    #1480905

    Hey!

    We’ll also need the FTP details so we can edit the files properly. We tried making changes via Appearance > Theme File Editor, but it wouldn’t save.

    Cheers!
    Ismael

    #1480934

    @Mike , yes sadly when disabling that the problem remains.

    @Ismael
    , I’ve added cPanel login to private content.

    Please folks, if testing – be quick and return everything to the way it was. I just found the site with all its plugins disabled :(
    Maybe duplicate the site to your own staging area?

    #1480968

    Hi,

    Thank you for the update.

    Earlier, we asked if you could clone the site to a staging environment and also requested the FTP details. How did you disable the persistent object cache in cPanel? We may need to edit the wp-config.php file to test this further. Please provide the FTP details so we can access and edit the files if necessary.

    We tried to change the PHP version without the redis and memcached extensions, but it’s not possible to adjust it for the current domain because PHP is handled by PHP-FPM. You’ll need to contact your hosting provider to disable this option and allow the domain to use the system PHP version. (see private field)

    For additional assistance, please contact your hosting provider.

    Best regards,
    Ismael

Viewing 30 posts - 1 through 30 (of 36 total)
  • The topic ‘After adding Captcha V3, we get “Token to validate form already expired.”’ is closed to new replies.