
-
AuthorPosts
-
March 14, 2025 at 1:16 pm #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 onlyIf 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
EricMarch 15, 2025 at 3:03 pm #1479399Hey 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,
RikardMarch 15, 2025 at 4:17 pm #1479410Hi 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
MikeMarch 15, 2025 at 4:44 pm #1479413Hi 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
MIkeMarch 16, 2025 at 12:12 pm #1479457Thanks 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.March 16, 2025 at 12:39 pm #1479463Hi 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
MikeMarch 17, 2025 at 10:52 am #1479519Hi,
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,
IsmaelMarch 17, 2025 at 12:00 pm #1479528Hi 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
March 17, 2025 at 12:01 pm #1479529Hi 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
MikeMarch 20, 2025 at 11:36 am #1479792Hi Ismael
Is there any news on this issue? Do you need more information?
Thx
MikeMarch 25, 2025 at 1:26 pm #1480130Dear 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
MikeMarch 27, 2025 at 4:47 pm #1480277Hi folks,
The Enfold support is usually excellent.
Looking forward to a speedy resolution to this problem.
Thanks
EricMarch 29, 2025 at 3:38 pm #1480447Hi,
@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,
MikeMarch 31, 2025 at 8:14 pm #1480539Hi @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
EricMarch 31, 2025 at 10:29 pm #1480541Hi,
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,
MikeApril 1, 2025 at 7:50 am #1480561HI 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
EricApril 1, 2025 at 9:48 pm #1480597Hi,
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,
MikeApril 1, 2025 at 10:14 pm #1480603Apologies @Mike , please try again now.
April 2, 2025 at 7:04 am #1480618Hi,
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,
IsmaelApril 2, 2025 at 11:51 am #1480638Hi Ismael
You can try and fix it on the live site please. As it is currently broken, you can’t really cause much damage.
April 3, 2025 at 7:54 am #1480692Hi,
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,
IsmaelApril 3, 2025 at 8:05 am #1480693Hi,
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,
IsmaelApril 3, 2025 at 10:03 am #1480708Hi @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
EricApril 4, 2025 at 6:20 am #1480754Hey!
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,
IsmaelApril 4, 2025 at 12:02 pm #1480766Hi @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
EricPS. As @mediaformers is also getting the same error, it may be worthwhile comparing our environments for any similarities?
April 7, 2025 at 12:15 am #1480897Hi,
Do you have this issue when Enfold Theme Options ▸ Performance ▸ JS & CSS file merging and compression is disabled?Best regards,
MikeApril 7, 2025 at 6:48 am #1480903Hey!
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.
In the meantime, we recommend using third-party contact forms such as Contact Form 7 or WPForms to replace the current contact form.
Regards,
IsmaelApril 7, 2025 at 7:00 am #1480905Hey!
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!
IsmaelApril 7, 2025 at 2:56 pm #1480934April 8, 2025 at 5:22 am #1480968Hi,
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 -
AuthorPosts
- The topic ‘After adding Captcha V3, we get “Token to validate form already expired.”’ is closed to new replies.