Title: querySelector error
Last modified: November 6, 2018

---

# querySelector error

 *  Resolved [Bas](https://wordpress.org/support/users/webcreationz/)
 * (@webcreationz)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/queryselector-error/)
 * I would love to use your plugin, but I’m getting this strange error about a ‘
   querySelector’.
 * ![](https://i0.wp.com/image.ibb.co/cPXjkA/Schermafbeelding-2018-11-06-om-12-24-
   23.png?ssl=1)
 * script.js?ver=1540634379:1 TypeError: Cannot read property ‘querySelector’ of
   null
    at e.value (script.js?ver=1540634379:1) at e.<anonymous> (script.js?ver
   =1540634379:1) at w (script.js?ver=1540634379:1) at Generator._invoke (script.
   js?ver=1540634379:1) at Generator.e.(/offerte-aanvragen/anonymous function) [
   as next] ([https://www.domain.com/wp-content/plugins/ozpital-wetransfer/assets/js/script.js?ver=1540634379:1:89622](https://www.domain.com/wp-content/plugins/ozpital-wetransfer/assets/js/script.js?ver=1540634379:1:89622))
   at l (script.js?ver=1540634379:1) at s (script.js?ver=1540634379:1)
 * It seems because I have a query in my url like: ?var=0&var2=3&var3=0
    And that’s
   causing an error.
 * I’m using PHP7.2 on a VPS, WP 4.8.9 and very little plugins.
    -  This topic was modified 7 years, 6 months ago by [Bas](https://wordpress.org/support/users/webcreationz/).
    -  This topic was modified 7 years, 6 months ago by [Bas](https://wordpress.org/support/users/webcreationz/).

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

 *  Plugin Author [ozpital](https://wordpress.org/support/users/ozpital/)
 * (@ozpital)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/queryselector-error/#post-10866259)
 * Morning Bas (@webcreationz),
 * Are you able to provide me a URL where I can see this issue and debug a bit deeper?
 * If anyone else reading this has this issue with the plugin can you also give 
   this thread a +1 – just so I know the extent of the problem.
 * Thanks everyone.
 *  [bjnstad](https://wordpress.org/support/users/bjnstad/)
 * (@bjnstad)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/queryselector-error/#post-10933351)
 * This problem occurs when the shortcode is inside a form tag.
 *  [TickTockDesign](https://wordpress.org/support/users/ticktockdesign/)
 * (@ticktockdesign)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/queryselector-error/#post-11152692)
 * I had this same error when embedding the shortcode inside the GravityForms HTML
   element. If I take the shortcode out of the form and instead add it to the page
   template, then it works fine. I’ve used jQuery insertBefore() to move the div
   containing the WeTransfer code to the section of the form I want it to be in,
   and all works well now.

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

The topic ‘querySelector error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ozpital-wetransfer_7a7a7a.svg)
 * [Ozpital WPWeTransfer](https://wordpress.org/plugins/ozpital-wetransfer/)
 * [Support Threads](https://wordpress.org/support/plugin/ozpital-wetransfer/)
 * [Active Topics](https://wordpress.org/support/plugin/ozpital-wetransfer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ozpital-wetransfer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ozpital-wetransfer/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [TickTockDesign](https://wordpress.org/support/users/ticktockdesign/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/queryselector-error/#post-11152692)
 * Status: resolved