Javascript Event Listener triggering multiple times
Posted on April 20, 2026, 10:46 am • 731 Views
martyn9098
Admin
Rep: 0
Posted on April 20, 2026, 10:46 am
I am completely stuck. It works perfectly on my local XAMPP server but breaks when I upload it to production. Any ideas?
Twonk9098
Admin
Rep: 9999
Replied on April 20, 2026, 11:08 pm
PHP 8 is much stricter. You should always use `isset()` or the null coalescing operator `??` before accessing array keys to prevent that warning.
Twonk9098
Admin
Rep: 9999
Replied on April 21, 2026, 8:47 am
Mobile browsers strictly block autoplaying media to save data. To bypass this, you MUST add the `muted` and `playsinline` attributes to your `<video>` tag.