Support

Home Forums Event Espresso Premium TypeError: undefined is not a function

TypeError: undefined is not a function

Posted: November 20, 2014 at 9:50 am

Viewing 4 reply threads


Emma Hartsfield

November 20, 2014 at 9:50 am

Wordpress 4.0
EE 4.4.5.p
Upgraded
Registration page http://cmproficiency.com/cmpro-events/cmproficiency-2015/

I am getting this error:

TypeError: undefined is not a function
http://cmproficiency.com/wp-content/plugins/event-espresso-core-reg/core/templates/global_assets/scripts/espresso_core.js?ver=4.4.5.p:224

How can I fix this?

Thank you,

Emma


Lorenzo Orlando Caum

  • Support Staff

November 20, 2014 at 10:24 am

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.


Lorenzo


Tony

  • Support Staff

November 20, 2014 at 11:14 am

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.


Emma Hartsfield

November 24, 2014 at 12:59 pm

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


Lorenzo Orlando Caum

  • Support Staff

November 24, 2014 at 2:33 pm

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.


Lorenzo

Viewing 4 reply threads

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.

Event Espresso