Support » Plugin: Ozpital WPWeTransfer » querySelector error

  • Resolved Bas

    (@webcreationz)


    I would love to use your plugin, but I’m getting this strange error about a ‘querySelector’.

    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)
    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 10 months, 2 weeks ago by  Bas.
    • This topic was modified 10 months, 2 weeks ago by  Bas.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ozpital

    (@ozpital)

    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.

    This problem occurs when the shortcode is inside a form tag.

    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.