Posted: November 20, 2014 at 9:50 am
Wordpress 4.0 I am getting this error: TypeError: undefined is not a function How can I fix this? Thank you, Emma |
|
Hi, Could you re-test this with only Event Espresso running and let us know if the issue continues? If the issue clears up, then reactivate a few plugins at a time and re-test again. Continue this process until you have restored your site. — |
|
Hi Emma, Your theme is loading a rather old version of jQuery – 1.4.4 (http://take.ms/4dH2j) this version was released just over 4 years ago now. You will need to find how the theme is loading that version and remove it. You could try using a plugins such as this https://gist.github.com/lorenzocaum/c7bd26b229fa4db033fc But that will only work if the theme is set up to correctly enqueue it’s scripts. Also if other parts of the theme are expecting that version of jQuery, changing to the latest version may also cause further problems. To start I would recommend checking to see if there is an update available for your theme that uses a newer version of jQuery. |
|
Hi Tony, I found where the jQuery file is in the theme /wp-content/themes/theme1168/js/jquery-1.4.4.min.js if I remove it, do I just replace it with the latest version and see if everything is working correctly? Thanks, Emma |
|
Hi, First, check if an update to your theme is available. If so, then you could update to see if it uses a newer version of jQuery. Another option is to try something like this: https://gist.github.com/lorenzocaum/c7bd26b229fa4db033fc It attempts to deactivate the current version of jQuery in use and retrieve a current version that is compatible with the current WordPress from Google. — |
|
The support post ‘TypeError: undefined is not a function’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.