Hi - there appears to be a conflict between Contact Form 7 and the DentalPress theme.
If I am logged in to wordpress, and view the page, the form will send (and be received), however if I attempt the same while NOT logged in, then the form results in "There was an error trying to send your message. Please try again later."
I have tried with 2 different hosting providers (WP Hosting, and Siteground) and the result in consistently the same.
However, if I change the theme to e.g. Twenty Twenty-One, then the form sends (and is received) perfectly.
Hi - I have just been chatting to the hosting company, and they have informed me that there is no caching currently running on the website. They suggested I disable the DentalPress theme and see if the problem still exists. I told them that CF7 works perfectly with the Twenty Twenty-One theme, and that I had told you this last week. They said the problem is highly likely to be coming from the theme, and that if you need them to make any changes, I should let them know.
FlexiPress - Would there be an issue if this line is commented out? I notice from this page https://contactform7.com/2017/08/18/contact-form-7-49/ that since Contact Form 7 4.9, WPCF7_VERIFY_NONCE has been set to false. Is there any reason why DentalPress needs it set to true?
Hi - there appears to be a conflict between Contact Form 7 and the DentalPress theme.
If I am logged in to wordpress, and view the page, the form will send (and be received), however if I attempt the same while NOT logged in, then the form results in "There was an error trying to send your message. Please try again later."
I have tried with 2 different hosting providers (WP Hosting, and Siteground) and the result in consistently the same.
However, if I change the theme to e.g. Twenty Twenty-One, then the form sends (and is received) perfectly.
Do you have a solution? Thanks
Hello, I have the same problem.
Hi - I have just been chatting to the hosting company, and they have informed me that there is no caching currently running on the website. They suggested I disable the DentalPress theme and see if the problem still exists. I told them that CF7 works perfectly with the Twenty Twenty-One theme, and that I had told you this last week. They said the problem is highly likely to be coming from the theme, and that if you need them to make any changes, I should let them know.
How do you suggest we proceed with this?
Thanks
add_filter( 'wpcf7_verify_nonce', '__return_true' ); in filters.php - this is the problem just comment this line:
//add_filter( 'wpcf7_verify_nonce', '__return_true' );
Pavel - Yes that works - Good find!
FlexiPress - Would there be an issue if this line is commented out? I notice from this page https://contactform7.com/2017/08/18/contact-form-7-49/ that since Contact Form 7 4.9, WPCF7_VERIFY_NONCE has been set to false. Is there any reason why DentalPress needs it set to true?
Hi,
Yes, this is the solution to the issue. In the past the default value used to be set to true. You can now completely comment the following line.
Thanks @Pavel for pointing out the solution.
Best regards,
FlexiPress Support
Follow on Envato Facebook Twitter
Thanks
You're welcome!
FlexiPress Support
Follow on Envato Facebook Twitter