This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

3rd party filer.js still calls .size() and throws an error
#1

jquery-3.3.1.min.js:2 jQuery.Deferred exception: o.size is not a function TypeError: o.size is not a function
    at Object._bindInput (https://raber.us/code/comments2/nnryadmi...r.js:28:29)
    at Object._changeInput (https://raber.us/code/comments2/nnryadmi...r.js:142:9)
    at Object.init (https://raber.us/code/comments2/nnryadmi...er.js:25:9)
    at HTMLInputElement.<anonymous> (https://raber.us/code/comments2/nnryadmi...r.js:935:6)
    at Function.each (https://code.jquery.com/jquery-3.3.1.min.js:2:2573)
    at w.fn.init.each (https://code.jquery.com/jquery-3.3.1.min.js:2:1240)
    at w.fn.init.$.fn.filer (https://raber.us/code/comments2/nnryadmi...r.js:11:15)
    at HTMLDocument.<anonymous> (https://raber.us/code/comments2/nnryadmi....js:314:39)
    at l (https://code.jquery.com/jquery-3.3.1.min.js:2:29375)
    at c (https://code.jquery.com/jquery-3.3.1.min.js:2:29677) undefined
w.Deferred.exceptionHook @ jquery-3.3.1.min.js:2
c @ jquery-3.3.1.min.js:2
setTimeout (async)
(anonymous) @ jquery-3.3.1.min.js:2
u @ jquery-3.3.1.min.js:2
add @ jquery-3.3.1.min.js:2
(anonymous) @ jquery-3.3.1.min.js:2
Deferred @ jquery-3.3.1.min.js:2
then @ jquery-3.3.1.min.js:2
w.fn.ready @ jquery-3.3.1.min.js:2
(anonymous) @ common.js:8
setInterval (async)
(anonymous) @ common.js:2
____________________________________________________________________________________
Then, right after that we get:
_____________________________________________________________________________________
jquery-3.3.1.min.js:2 Uncaught TypeError: o.size is not a function
    at Object._bindInput (filer.js:28)
    at Object._changeInput (filer.js:142)
    at Object.init (filer.js:25)
    at HTMLInputElement.<anonymous> (filer.js:935)
    at Function.each (jquery-3.3.1.min.js:2)
    at w.fn.init.each (jquery-3.3.1.min.js:2)
    at w.fn.init.$.fn.filer (filer.js:11)
    at HTMLDocument.<anonymous> (common.js:314)
    at l (jquery-3.3.1.min.js:2)
    at c (jquery-3.3.1.min.js:2)
Reply
#2

Hi thanks for reporting this. It looks like filer.js isn't compatible with jQuery 3. To resolve it, you'd need to either downgrade your site's version of jQuery to jQuery 2, or replace all instances of size() with length (note there are no brackets) in the /frontend/view/default/javascript/ file that's being loaded. If you provide a link to your page I can help with doing that.

Have you completed the interview?
Reply
#3

Thanks. I did that earlier this morning on the chance that it would help. It did, but a new comment still does not save.
Reply
#4

You can also instead add a jquery prototype function:

$.fn.extend({size:function(){return this.length;}});
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
14-Jul-2018, 05:35 PM
Last Post by Steven
03-Mar-2016, 08:12 PM
Last Post by mariank
05-Jan-2014, 03:43 PM
Last Post by Steven
09-Jul-2012, 01:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)