• Resolved Frenchy

    (@k2300)


    Hello, thank you very much for this great plugin that works perfectly well, however I discovered a bug with my images embedded in my article, WordPress offers to enlarge images on click so that you can enlarge the image when you click on it and since I have your plugin it no longer works so I wonder if it’s me who has misconfigured something or is it a bug? Thank you in advance for your help ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Anton Vanyukov

    (@vanyukov)

    Hi @k2300,

    Could you please provide some steps for me to replicate this?

    Best regards,
    Anton

    Thread Starter Frenchy

    (@k2300)

    Yes, of course, all you have to do is create a test article and add media to the body of your article and check the “Enlarge on click” option. Then open the Preview and try to click on the image to enlarge it, but it doesn’t work.

    Plugin Author Anton Vanyukov

    (@vanyukov)

    @k2300,

    I have included the fix in the update that I have just release. Will mark this as resolved. But, please do let me know if this isn’t fixed for you.

    Best regards,
    Anton

    Thread Starter Frenchy

    (@k2300)

    Hello, thanks for the update, but it doesn’t solve my problem – I still can’t enlarge an image by clicking on it. I’ve uninstalled all my plugins to try again but nothing works and I’ve just noticed an error in my console and I don’t know if it’s related, here it is :

    interactivity.min.js?ver=6.4.1:2 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘net/HSF8f5cImNJhDlLkZroCGQ/10988bbb-2658-4fdb-24c0-8e06cca72a00/w=9999’)
    at interactivity.min.js?ver=6.4.1:2:23147
    at Array.forEach ()
    at interactivity.min.js?ver=6.4.1:2:23132
    at interactivity.min.js?ver=6.4.1:2:23156
    at interactivity.min.js?ver=6.4.1:2:27034
    at Array.forEach ()
    at Object.bind (interactivity.min.js?ver=6.4.1:2:27007)
    at w.me as constructor
    at w.D as render
    at U (interactivity.min.js?ver=6.4.1:2:6164)

    interactivity.min.js?ver=6.4.1:2 Uncaught TypeError: Cannot destructure property ‘naturalWidth’ of ‘t’ as it is null.
    at setButtonStyles (view.min.js?ver=32caaf5e7c6834efef4c:1:4584)
    at interactivity.min.js?ver=6.4.1:2:23193
    at interactivity.min.js?ver=6.4.1:2:25440
    at Ht. (interactivity.min.js?ver=6.4.1:2:21779)
    at Ht.c (interactivity.min.js?ver=6.4.1:2:17029)
    at Ut (interactivity.min.js?ver=6.4.1:2:14170)
    at interactivity.min.js?ver=6.4.1:2:21719
    at Object.__ (interactivity.min.js?ver=6.4.1:2:21812)
    at at (interactivity.min.js?ver=6.4.1:2:12357)
    at Array.forEach ()

    Plugin Author Anton Vanyukov

    (@vanyukov)

    Yeah, I can replicate it again. It looks like the Gutenberg interactivity API is not able to work with Cloudflare image URLs. I’ll need some time to debug this and see if I can either fix it on the plugin side or do a PR for Gutenberg.

    Thread Starter Frenchy

    (@k2300)

    Thank you, no worries, I’ll be patient and I hope you’ll find a solution ??

    Plugin Author Anton Vanyukov

    (@vanyukov)

    Hi @k2300

    I have found the issue. I’ve added the fix to the next release. If you want to apply the fix now, this is what’s changed

    Best regards,
    Anton

    Thread Starter Frenchy

    (@k2300)

    Hello, thank you very much, it now works perfectly well ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘A little bug: “Enlarge image on click”’ is closed to new replies.