Title: Redirect jQuery Errors
Last modified: August 31, 2016

---

# Redirect jQuery Errors

 *  [djion](https://wordpress.org/support/users/djion/)
 * (@djion)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/redirect-jquery-errors/)
 * I am having a problem where the redirect is not working at all. When I click 
   on the submit button I see the default google form submit page, which I have 
   already hidden. It does not redirect to my custom URL. Looking in the console
   I see
 * `Uncaught ReferenceError: jQuery is not defined`
 * This is occuring because the declaration for jQuery is happening in the footer.
   This I am running a million other plugins and do not really have the option to
   turn them off.
 * Is there an easy fix to this error?
 * Thanks,
    Alex
 * [https://wordpress.org/plugins/wpgform/](https://wordpress.org/plugins/wpgform/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/redirect-jquery-errors/#post-7453566)
 * I thought I had responded to this thread when it was first posted but since I
   don’t see my response, I am not sure what happened.
 * The declaration of jQuery in the footer is unlikely the source of the problem.
   The jQuery function that Google Forms uses runs when the page is completely loaded.
   The fact that jQuery is loaded in the footer is fairly common and fully supported
   by WordPress ([see the documentation for wp_enqueue_script()](https://developer.wordpress.org/reference/functions/wp_enqueue_script/)).
   The reason for loading it in the footer is due to so many themes doing odd things
   in the header, using the footer tends to be more reliable.
 * I have seen some themes which do not call [wp_footer()](https://developer.wordpress.org/reference/functions/wp_footer/)
   which is a problem as all themes are supposed to call it. it is typically older
   themes where I have seen wp_footer() missing.
 * Back to your problem – I would suspect one of three things is happening:
    1. One of the plugins you’re loading has a Javascript error somewhere which causes
       something further down the chain not to load correctly. The only way to chase
       these down is by process of elimination. It can be time consuming but I don’t
       know of a better way.
    2. Your theme is doing something unusual which I haven’t encountered before. This
       isn’t uncommon, particularly themes which use a lot of AJAX.
    3. You’ve encountered a bug which I have not seen before and it will need to be
       fixed. To chase this down I’d need more detail than what you’ve posted and likely
       need to have debug enabled on your site to see what is happening.
 * Of the three potential sources of the problem, #1 is the most likely.

Viewing 1 replies (of 1 total)

The topic ‘Redirect jQuery Errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpgform_8cc59f.svg)
 * [Google Forms](https://wordpress.org/plugins/wpgform/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpgform/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpgform/)
 * [Active Topics](https://wordpress.org/support/plugin/wpgform/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpgform/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpgform/reviews/)

## Tags

 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/redirect-jquery-errors/#post-7453566)
 * Status: not resolved