fitVids casper errors

Hi,
I’ve just upgraded my ghost blog from v4 to v5 (latest) and noticed errors in the console:

jquery-3.5.1.min.js:2 jQuery.Deferred exception: $(...).fitVids is not a function TypeError: $(...).fitVids is not a function
    at HTMLDocument.<anonymous> (https://karlstoney.com/:695:22)
    at e (https://code.jquery.com/jquery-3.5.1.min.js:2:30005)
    at t (https://code.jquery.com/jquery-3.5.1.min.js:2:30307) undefined
S.Deferred.exceptionHook @ jquery-3.5.1.min.js:2
t @ jquery-3.5.1.min.js:2
jquery-3.5.1.min.js:2 Uncaught TypeError: $(...).fitVids is not a function
    at HTMLDocument.<anonymous> ((index):695:22)
    at e (jquery-3.5.1.min.js:2:30005)
    at t (jquery-3.5.1.min.js:2:30307)
(anonymous) @ (index):695
e @ jquery-3.5.1.min.js:2
t @ jquery-3.5.1.min.js:2

Can’t really track down what’s up…

Fitvids.js Causing Errors in Casper 2.10.2 Theme looked like the same issue but much, much older version.

Any advice would be welcome!

Are you sure jquery is loading? Is this a new copy of Casper, or the original 4.x version? Ghost switched from loading jquery to not at some point…

1 Like

Hi,
According to my site (https://karlstoney.com) its casper 5.7.0.
Looking at the network tab i see two versions of jquery being loaded: 1.11.3, 3.5.1

Ahh 1.11.3 was in the footer code injection - and i only checked the head!
Must have been in there for a long time, removed it and all sorted ! Doh!

Thank you

1 Like