Videos cannot be displayed
-
Hi there, I had an issue after updating elementor that no videos (using the video widget) were displayed on my site. This affected both the editor and the frontend. The console printed
TypeError: Cannot read properties of undefined (reading 'url') at Video.onInit
. But there was an URL saved in my video elements. I deleted all caches, regenerated CSS/JS files, enabled/disabled experiments/features and reinstalled elementor with no success.After quite some digging I found out that in the file
plugins/elementor/assets/js/video.78c625e89ab767d621c5.bundle.min.js
there’s a partthis.videoID&&(!e.show_image_overlay||!e.image_overlay.url))
. This is causing my issues because apparentlye.show_image_overlay
is a string (“no” in my case) and not a boolean as expected. This check evaluates to “true”, so it tries to check the URL of the overlay that doesn’t exist. Can be easily fixed by changing this line tothis.videoID && (e.show_image_overlay == "no" || !e.image_overlay.url))
instead.Is this a general issue or something specific to my site?
- You must be logged in to reply to this topic.