Trying to use the [lightbox] shortcode in X theme v 7.2.3 but I get the following error in my Developer console:
cs.0ce70e6.js:1
Unable to render element TypeError: a.toLowerCase is not a function
at X (eval at (ilightbox.js?ver=4.2.3:7), :1:2121)
at HTMLSpanElement.eval (eval at (ilightbox.js?ver=4.2.3:7), :1:10892)
at Function.each (jquery.js?ver=1.12.4-wp:1)
at a.fn.init.each (jquery.js?ver=1.12.4-wp:1)
at aa.attachItems (eval at (ilightbox.js?ver=4.2.3:7), :1:10716)
at new aa (eval at (ilightbox.js?ver=4.2.3:7), :1:6820)
at a.fn.init.g.fn.iLightBox (eval at (ilightbox.js?ver=4.2.3:7), :1:54522)
at HTMLSpanElement. (cs.0ce70e6.js:8)
at cs.0ce70e6.js:1
at cs.0ce70e6.js:1 <span id="x-lightbox-1" data-x-element="lightbox" data-x-params="{“selector”:".lightbox-image",“deeplink”:false,“opacity”:"0.85",“prevScale”:"0.85",“prevOpacity”:"0.65",“nextScale”:"0.85",“nextOpacity”:"0.65",“orientation”:"horizontal",“thumbnails”:false}">
(anonymous) @ cs.0ce70e6.js:1
I’ve already tried disabling all plugins (except for Cornerstone) and setting Cloudflare to “maintenance mode” to bypass all cacheing, but the same error appears.
I’m not using a child theme, and there’s no custom JS under Theme Options.