Support » Plugin: Contact Form 7 » Contact form not sending
Contact form not sending
-
We have a few forms on this site.
Some forms were sending some forms were not.
There was a 403 error on the wp-json file in the contact-form directory.
After adding this to htaccess:
RewriteCond %{REQUEST_URI} !^.*/wp-json/(.*) [NC]
it seems to work again.Also – after sending the form the wheel spins for about 5 seconds, then disappears, all the content in the fields disapear and a few seconds later the confirmation message shows.
Wordpress version 5.6.2
Contact form 7 version: 5.4
See video screenshot: https://www.dropbox.com/s/6ypp0bwdgaq5qun/cf7-send-email.wmv?dl=0Thanks for your help and support.
Dan
The page I need help with: [log in to see the link]
-
I have read some more related posts here:
https://forum.ait-pro.com/forums/topic/contact-form-submission-403-forbidden-error-page/I’m not sure, but is there an issue with a double slash in the path to the file?
What other plugins and theme do you use on the site?
Hi @takayukiser,
These are the sites details. The theme is based on wp’s 2010 theme.### wp-core ### version: 5.7 site_language: he_IL user_language: he_IL timezone: Asia/Jerusalem permalink: /%category%/%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 3 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/amihayco/yoga-studio.co.il wordpress_size: 144.02 MB (151015991 bytes) uploads_path: /home/amihayco/yoga-studio.co.il/wp-content/uploads uploads_size: 207.97 MB (218070752 bytes) themes_path: /home/amihayco/yoga-studio.co.il/wp-content/themes themes_size: 8.28 MB (8677720 bytes) plugins_path: /home/amihayco/yoga-studio.co.il/wp-content/plugins plugins_size: 76.38 MB (80090256 bytes) database_size: 65.13 MB (68295309 bytes) total_size: 501.78 MB (526150028 bytes) ### wp-dropins (2) ### advanced-cache.php: true maintenance.php: true ### wp-active-theme ### name: Yoga Studio Responsive (yoga-studio-responsive) version: 1.4 author: Dan Stramer author_website: (undefined) parent_theme: none theme_features: core-block-patterns, editor-style, post-formats, post-thumbnails, automatic-feed-links, menus, custom-background, custom-header, widgets theme_path: /home/amihayco/yoga-studio.co.il/wp-content/themes/yoga-studio-responsive auto_update: כיבוי ### wp-themes-inactive (5) ### GalorDesign's Yoga Studio: version: 1.0.0, author: Galor Design, עדכונים אוטומטיים מושבתים Twenty Ten: version: 3.3, author: צוות וורדפרס, עדכונים אוטומטיים מושבתים Twenty Twenty-One: version: 1.2, author: צוות וורדפרס, עדכונים אוטומטיים מושבתים Yoga Studio 2: version: 1.4, author: Dan Stramer, עדכונים אוטומטיים מושבתים Yoga Studio: version: 1.2, author: Dan Stramer - Dan Media Design, עדכונים אוטומטיים מושבתים ### wp-mu-plugins (1) ### ManageWP - Worker Loader: author: ManageWP, version: (undefined) ### wp-plugins-active (30) ### Advanced Custom Fields: version: 5.9.5, author: Elliot Condon, עדכונים אוטומטיים מושבתים Advanced Custom Fields: Options Page: version: 2.1.0, author: Elliot Condon, עדכונים אוטומטיים מושבתים Advanced Custom Fields: Repeater Field: version: 2.1.0, author: Elliot Condon, עדכונים אוטומטיים מושבתים Akismet Anti-Spam: version: 4.1.9, author: Automattic, עדכונים אוטומטיים מושבתים Ambrosite Body Class Enhanced: version: 1.3, author: J. Michael Ambrosio, עדכונים אוטומטיים מושבתים CF7 to Webhook: version: 2.2.3, author: Mário Valney, Vizir Software Studio, עדכונים אוטומטיים מושבתים Classic Editor: version: 1.6, author: WordPress Contributors, עדכונים אוטומטיים מושבתים Contact Form 7: version: 5.4, author: Takayuki Miyoshi, עדכונים אוטומטיים מושבתים Display Posts: version: 3.0.2, author: Bill Erickson, עדכונים אוטומטיים מושבתים Flamingo: version: 2.2.1, author: Takayuki Miyoshi, עדכונים אוטומטיים מושבתים Honeypot for Contact Form 7: version: 2.0.5, author: Nocean, עדכונים אוטומטיים מושבתים Jetpack by WordPress.com: version: 9.6, author: Automattic, עדכונים אוטומטיים מושבתים ManageWP - Worker: version: 4.9.8, author: GoDaddy, עדכונים אוטומטיים מושבתים Meteor Slides: version: 1.5.6, author: Josh Leuze, עדכונים אוטומטיים מושבתים NextGEN Gallery: version: 3.9.1, author: Imagely, עדכונים אוטומטיים מושבתים PHP Code Widget: version: 2.3, author: Otto, עדכונים אוטומטיים מושבתים Really Simple SSL: version: 4.0.13, author: Really Simple Plugins, עדכונים אוטומטיים מושבתים Regenerate Thumbnails: version: 3.1.5, author: Alex Mills (Viper007Bond), עדכונים אוטומטיים מושבתים Relevanssi: version: 4.12.5, author: Mikko Saari, עדכונים אוטומטיים מושבתים Responsive Menu Pro: version: 3.1.31, author: ExpressTech, עדכונים אוטומטיים מושבתים Share Buttons by AddThis: version: 6.2.6, author: The AddThis Team, עדכונים אוטומטיים מושבתים Sucuri Security - Auditing, Malware Scanner and Hardening: version: 1.8.26, author: Sucuri Inc., עדכונים אוטומטיים מושבתים TablePress: version: 1.13, author: Tobias Bäthge, עדכונים אוטומטיים מושבתים TablePress Extension: Responsive Tables: version: 1.8, author: Tobias Bäthge, עדכונים אוטומטיים מושבתים Widget Logic: version: 5.10.4, author: WPChef, עדכונים אוטומטיים מושבתים WordPress Importer: version: 0.7, author: wordpressdotorg, עדכונים אוטומטיים מושבתים WP-PageNavi: version: 2.93.4, author: Lester 'GaMerZ' Chan, עדכונים אוטומטיים מושבתים WP Rocket: version: 3.8.8, author: WP Media, עדכונים אוטומטיים מושבתים WP RSS Images: version: 1.1, author: Alain Gonzalez, עדכונים אוטומטיים מושבתים Yoast SEO: version: 16.1.1, author: Team Yoast, עדכונים אוטומטיים מושבתים ### wp-plugins-inactive (1) ### Easy WP SMTP: version: 1.4.6, author: wpecommerce, alexanderfoxc, עדכונים אוטומטיים מושבתים ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1802 imagemagick_version: ImageMagick 7.0.10-10 Q16 x86_64 2020-07-09 https://imagemagick.org file_uploads: File uploads is turned off post_max_size: 128M upload_max_filesize: 128M max_effective_size: 128 MB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 62 GB imagick::RESOURCETYPE_DISK: 9.2233720368548E+18 imagick::RESOURCETYPE_FILE: 37500 imagick::RESOURCETYPE_MAP: 62 GB imagick::RESOURCETYPE_MEMORY: 31 GB imagick::RESOURCETYPE_THREAD: 1 gd_version: 2.2.5 ghostscript_version: unknown ### wp-server ### server_architecture: Linux 3.10.0-962.3.2.lve1.5.42.el7.x86_64 x86_64 httpd_software: LiteSpeed php_version: 7.4.16 64bit php_sapi: litespeed max_input_variables: 10240 time_limit: 300 memory_limit: 512M max_input_time: 300 upload_max_filesize: 128M php_post_max_size: 128M curl_version: 7.71.0 OpenSSL/1.1.1d suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 10.2.37-MariaDB-log client_version: 10.2.37-MariaDB ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/amihayco/yoga-studio.co.il/wp-content WP_PLUGIN_DIR: /home/amihayco/yoga-studio.co.il/wp-content/plugins WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 512M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable ### jetpack ### site_id: 80692118 ssl_cert: No time_diff: undefined version_option: 9.6:1617729615 old_version: 9.5:1615168935 public: Public master_user: #6 Yoga-Studio current_user: #4 dan tokens_set: Blog blog_token: 4xFejY9KuuUYoFi3deE%T%Pl)Q^LQzbG user_token: Not set. version: 9.6 jp_plugin_dir: /home/amihayco/yoga-studio.co.il/wp-content/plugins/jetpack/ plan: free protect_header: {"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false} full_sync: {"started":"Thu, 01 Jan 1970 00:00:00 +0000","finished":"Thu, 01 Jan 1970 00:00:00 +0000","progress":[],"config":[]} sync_size: undefined sync_lag: 0 seconds full_sync_size: undefined full_sync_lag: 0 seconds idc_urls: {"home":"https:\/\/www.yoga-studio.co.il","siteurl":"https:\/\/www.yoga-studio.co.il","WP_HOME":"","WP_SITEURL":""} idc_error_option: false idc_optin: true cxn_tests: All Pass.
Who is your host?
it’s an Israeli hosting company:
https://jetserver.co.il/I have ~45 sites hosted there on a shared plan.
I see. I just wondered if you really need to use caching plugins like WP Rocket. The host seems to provide a caching solution as a drop-in plugin (advanced-cache.php).
They actually requested that I install a caching plugin.
Do you think this is because of caching?
What about the trailing slash thing – is it not relevant?
The server has been giving me issues and timeouts, so could the CF7 issue be impacted by that?I don’t know if it’s due to caching, but I think it’s likely to have something to do with one of the plugins or the theme. Try switching to the default theme, deactivating all plugins excluding Contact Form 7, Akismet Anti-Spam, Classic Editor, Flamingo and WordPress Importer, and clearing all cache data.
Why you are advised to deactivate plugins and switch to the default theme.
I found the culprit, it has to do with wp-rocket.
They wrote about it here.
Can you confirm this is the best practice fix for the issue? this is what they recommend on their site:
https://docs.wp-rocket.me/article/1495-contact-form-7-is-not-workingThis is what was said on wp rocket’s facebook group by one of the users:
“it’s very much an issue with contact form 7 where it swapped to using the rest api for submissions as opposed to ajax. What ends up happening is the nonce expires if the page is cached. I didn’t check how long it expires but you’re going to either need to keep lowering the global cache time OR exclude the page from cache.”Could you please advise?
Thanks,
DanWP Rocket’s second advice to set a short cache lifespan is very valid. Not only with WP Rocket (and not only for Contact Form 7), as a general advice, setting too long cache lifespan should be avoided.
What would you consider as short?
24 hours at longest. 8 hours is much better.
- The topic ‘Contact form not sending’ is closed to new replies.