Txus_ito Posted October 24, 2014 Share Posted October 24, 2014 I get this error: Uncaught TypeError: undefined is not a function in these 2 files index.php:1067 $("#product_form").validateadmin-products.js:1204 $('#curPackItemName').select2({ The last thing I did before the failure occurred was to update to the latest version 1.06.09 This error prevents me from making modifications to the new items, allows me to enter the name of the article but little more in the following fields is blank screen with no option to add numbers, images or assign to a category Link to comment Share on other sites More sharing options...
thepan Posted October 24, 2014 Share Posted October 24, 2014 What version did you upgrade from? Seems like incomplete upgrade. Link to comment Share on other sites More sharing options...
Txus_ito Posted October 24, 2014 Author Share Posted October 24, 2014 Was the previous version, 1.06.08 and if an incomplete update as update can again since the upgrade on a click does not allow Link to comment Share on other sites More sharing options...
lingmaaki Posted April 1, 2020 Share Posted April 1, 2020 This is a common JavaScript error that happens when you try to call a function before it is defined. You get "'undefined' is not a function" error when you try to execute a function that is uninitialized or improperly initialized . It means that the expression did not return a function object. So you have to figure out what you are trying to execute isn't a function. In Javascript , when you execute a function, it's evaluated like the following: expression.that('returns').aFunctionObject(); // js execute -> expression.that('returns').aFunctionObject // what the JS engine does That expression may be complex. So when you get undefined is not a function it means that expression did not return a function object. So you have to figure out what you are trying to execute isn't a function. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now