• Hi. i am getting the below error when I click on an image.

    Uncaught TypeError: a.onCleanup is not a function
        at _show (jquery.fancybox.min.js?ver=1.3.24:1)
        at _process_image (jquery.fancybox.min.js?ver=1.3.24:1)
        at Image.E.onload (jquery.fancybox.min.js?ver=1.3.24:1)
    _show	@	jquery.fancybox.min.js?ver=1.3.24:1
    _process_image	@	jquery.fancybox.min.js?ver=1.3.24:1
    E.onload	@	jquery.fancybox.min.js?ver=1.3.24:1
    load (async)		
    _start	@	jquery.fancybox.min.js?ver=1.3.24:1
    (anonymous)	@	jquery.fancybox.min.js?ver=1.3.24:1
    dispatch	@	jquery.js:4670
    r.handle	@	jquery.js:4338
Viewing 3 replies - 1 through 3 (of 3 total)
  • Can you share a link to your site?

    I get the same Error:

    Uncaught TypeError: a.onCleanup is not a function
    at _show (jquery.fancybox.min.js?ver=1.3.24:1)
    at _process_inline (jquery.fancybox.min.js?ver=1.3.24:1)
    at _error (jquery.fancybox.min.js?ver=1.3.24:1)
    at Object.success (jquery.fancybox.min.js?ver=1.3.24:1)
    at i (jquery.js?ver=1.12.4-wp:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
    at x (jquery.js?ver=1.12.4-wp:4)
    at XMLHttpRequest.c (jquery.js?ver=1.12.4-wp:4)

    Hi, this usually happens when there are two instances of the jQuery library. I’d need to see it live to know more.

    Or you can go to Settings > Media and find the Compatibility section. There you can try excluding the native WordPress jQuery library and/or moving the light box script to earlier or later position in either the header or the footer.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uncaught TypeError: a.onCleanup is not a function’ is closed to new replies.