Title: Uncaught SyntaxError: Failed to execute &#8216;querySelector&#8217;
Last modified: July 28, 2025

---

# Uncaught SyntaxError: Failed to execute ‘querySelector’

 *  Resolved [wynot](https://wordpress.org/support/users/wynot/)
 * (@wynot)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/uncaught-syntaxerror-failed-to-execute-queryselector/)
 * Getting the following in devtools console when editing any multi-step form such
   as the
 * “Health Screen Desk” form:
 * `index.js?ver=6.1:1 Uncaught SyntaxError: Failed to execute 'querySelector' on'
   Document': '#.field-wrap-external_url,.field-wrap-page_id' is not a valid selector.
   
   at l (index.js?ver=6.1:1:1183)at index.js?ver=6.1:1:12672at NodeList.forEach ()
   at HTMLDocument. (index.js?ver=6.1:1:12659)l @ index.js?ver=6.1:1(anonymous) 
   @ index.js?ver=6.1:1(anonymous) @ index.js?ver=6.1:1
 * I already checked with the CF7 Addons and they said it wasn’t cause by their 
   plugin becasue when you deactivate it it’s still there. This is happening when
   editing the multi-step form and have devtools open on that screen.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-syntaxerror-failed-to-execute-queryselector%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/uncaught-syntaxerror-failed-to-execute-queryselector/#post-18575190)
 * What other plugins and theme do you use on the site?
 *  Thread Starter [wynot](https://wordpress.org/support/users/wynot/)
 * (@wynot)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/uncaught-syntaxerror-failed-to-execute-queryselector/#post-18576449)
 * Hi Here’s what’s on this site:
 *     ```wp-block-code
       Parent Theme: Genesis (genesis) Version 3.6.0Active theme: DevKit Impact (devkit-impact) Version 1.0.0Plugins:Anti-Spam by CleanTalk Version 6.60 by CleanTalk - Anti-Spam Protection welcome@cleantalk.orgBlock Visibility Version 3.7.1 by Nick DiegoBreeze Version 2.2.16 by CloudwaysCF7 to Webhook Version 4.0.3 by Mário ValneyContact Form 7 Version 6.1 by Takayuki MiyoshiDuplicator Version 1.5.13 by DuplicatorEWWW Image Optimizer Version 8.2.0 by Exactly WWWExtender Pro Version 1.4.6 by Cobalt AppsFirelight Lightbox Version 2.3.17 by FirelightWPFont Awesome Version 5.1.0 by Font AwesomeGenerate PDF using Contact Form 7 Version 4.1.5 by ZealousWebGenesis Blocks Version 3.1.7 by StudioPressGenesis DevKit Version 1.6.4 by Cobalt AppsJquery Validation For Contact Form 7 (Lite) Version 5.4.2 by DnesscarkeyQuery Monitor Version 3.19.0 by John BlackbournRedirection for Contact Form 7 Version 3.2.4 by ThemeisleSecurity by CleanTalk Version 2.160.99-fix by CleanTalk SecuritySliderPro Version 4.8.12 by bqworksStrong Testimonials Version 3.2.14 by WPChillUltra Addons for Contact Form 7 Version 3.5.25 by ThemeficUltra Addons for Contact Form 7 Pro Version 1.8.16 by ThemeficWP Custom Admin Interface Version 7.39 by Martin GibsonWP Video Lightbox Version 1.9.12 by Tips and Tricks HQ, Ruhul Amin
       ```
   
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/uncaught-syntaxerror-failed-to-execute-queryselector/#post-18577093)
 * Try switching to the default theme, deactivating all plugins excluding Contact
   Form 7, and clearing all cache data.
 * [Why you are advised to deactivate plugins and switch to the default theme.](https://contactform7.com/2019/12/02/why-you-are-advised-to-deactivate-plugins-and-switch-to-the-default-theme/)
 *  Thread Starter [wynot](https://wordpress.org/support/users/wynot/)
 * (@wynot)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/uncaught-syntaxerror-failed-to-execute-queryselector/#post-18578429)
 * Ok, switched to default theme, and deactivated all plugins.
 * Turned on one at a time, when I turned on Redirection for Contact Form 7 the 
   error appeared.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Uncaught SyntaxError: Failed to execute ‘querySelector’’ is closed to
new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [wynot](https://wordpress.org/support/users/wynot/)
 * Last activity: [10 months, 2 weeks ago](https://wordpress.org/support/topic/uncaught-syntaxerror-failed-to-execute-queryselector/#post-18578429)
 * Status: resolved