Follow us on Facebook and Twitter!

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
  w3 reports ERROR Bad Value jennifer 2 408 14-Jul-2018, 06:35 PM
Last Post: Steven
  Brief flash of page when error box is shown Apod42 1 852 26-Jul-2016, 06:50 PM
Last Post: Steven
Exclamation Sorry but 1 error was found Christopher 2 930 11-Jun-2016, 01:16 PM
Last Post: Christopher
  Unexpected Token Error franck 1 820 03-Mar-2016, 09:12 PM
Last Post: Steven
Big Grin Strange 404 Error When Hovering Over Admin Menu Methyus 6 1,940 01-Nov-2015, 11:50 AM
Last Post: Methyus
  Like (thumb) gives error mariank 8 4,037 05-Jan-2014, 04:43 PM
Last Post: mariank
  alignment error when smilies are disabled stevenvh 1 1,391 24-Jan-2013, 07:25 PM
Last Post: Steven
  Minor error in help text. stariocek 1 1,308 09-Jul-2012, 02:18 PM
Last Post: Steven
  frm.cmtx_terms is undefined javascript error jonoweb 1 1,358 27-Jun-2012, 04:12 PM
Last Post: Steven
  500 Internal Server Error Dashboard doesn't show up ssmyat 2 2,159 09-Apr-2012, 04:20 PM
Last Post: ssmyat

Forum Jump:


Users browsing this thread: 1 Guest(s)