Foliovision › Forums › FV Player › Troubleshooting › Can’t close lightbox – because of blocking Google Analytics with Ghostery
-
Hello Martin,
Please take a look at my site. I can´t close the lightbox.
Check here: http://example.com/blog/flowplayer-test/
Best regards
Bruno
-
-
Hello Bruno,
no luck yet. Notice, that the video can’t be paused either.
I tried to use the same configuration (CloudFront video, controlbar=”no” and splashend=”show”) here, but it works in Safari 7.1: https://foliovision.com/player/demos/cloudfront-download-protection -> Checking Safari 7.1 issues
There must be something with your theme or plugins. I’m noticing this JavaScript error: “ReferenceError: Can’t find variable: TB_WIDTH” in thickbox.js on line 280.
Could you try to use the WordPress theme preview function with the Twenty Fourteen template, find your page using search and see if it also fails on Safari?
Now I’m getting “Fehler beim Aufbau einer Datenbankverbindung”, is your server overloaded?
Thanks,
MartinHello Martin,
thank you, but I do not say that it don’t work in Safari.
There is just an issue with your lightbox. If you use also “lightbox=”true;” it is not possible to close the lightbox on safari.
Please take a look here (don´t publish {admin note – domain changed}): http://example.com/medien/flowplayer/flowplayer.mp4
(Yes server was overload, need a bigger one)
Thank You
BrunoHello Bruno,
thank you for the nice video.
I tried again and I’m no longer seeing the issues I described the last time. I can even close the lightbox.
Does it happen if the video is not using CloudFront? What if you just put up https://foliovision.com/videos/dominika-960-31.mp4 into the lightbox ?
Thanks,
MartinHello Martin,
it´s exactly the same with your Dominika Video.
Flowplayer generates an error in my safari-console.
Flowplayer and Flowplayer Pro running both with the newest version. I’m using WP 4.1.
Please let me know, if I can help you with anything to work out what goes wrong here..
It seems that this happens just with safari. Chrome works well..
Best regards,
BrunoHello Burno,
I found that the error is in the part which takes care of the Google Analytics tracking.
Could you please:
1) Remove the Google Analytics ID from Settings -> FV WordPress Flowplayer -> Sitewide Flowplayer Defaults -> Google Analytics ID? Let’s see if that changes anything.
2) Disable the JavaScript minify and combine for the site (what plugin are you using?). I’m not getting the same error as you. In fact, as soon as I create a copy of your site HTML on my computer, I no longer get the error.
Thanks,
MartinHello Martin,
1. that’s it!! After deleting the code for Analytics, everything works fine, thank you!
2. I’m using W3TC for minifying. Meanwhile I created the screen-video for you, minifying was deactivated, but Flowplayer isn’t included into minifying, cause it don’t work.
If you want that I deactivate W3TC for you now, let me know. But I think it’s the same error that you get also.Best regards
BrunoHello Bruno,
1) Great that it works now, but there is no reason it should not work with Google Analytics enable for the videos. Could you please put it back?
2) Could you please disable the Minifying and see if you get the error now that you put back the Google Analytics tracking ID? I see that you excluded FV Flowplayer from minify, but other scripts may have some issues with it as well. Your site shows several JavaScript warnings.
Thanks,
MartinHello Bruno,
now I don’t see any JS errors on your page.
It’s weird if you get into trouble in your Safari 7.1.
1) Do you see the same message on console when you just play some video which is not in lightbox and then start some other video which is not in lightbox?
2) Can you disable SCRIPT_DEBUG in wp-config.php? Here’s more about it: http://codex.wordpress.org/Debugging_in_WordPress#SCRIPT_DEBUG
3) Are you logged in into your Google account?
Thanks
MartinHello Bruno,
big thanks for the videos!
Could you please play the video without lightbox first, checking if there are any errors, they play the video in lightbox and see if starting the lightbox video causes some error to appear.
I suspect that Google Analytics is failing for you. Are you using Ghostery or some other blocker of tracking scripts?
Thanks,
MartinHello Martin,
It seems that this Safari Extension generates the error:
https://www.ghostery.com/de/I never run in a problem like this before. We use another lightbox for our images also, without any issues.. It’s an extension to protect you from tracking..
Now we learned for future development: Step 1 – deactivate your extensions, if the problem stays, we will take a look for the rest..
Please add it to your area for conflicts..
Best regards
BrunoHi Bruno,
Thanks for the report.
I used Ghostery on most of my computers/browsers as well. To be honest, I run into a lot of website issues with Ghostery and have to customise the settings per site.
We’ll definitely look into what Ghostery is blocking for FV Player though.
Making the web work for you, Alec
Hello Alec,
it’s not the word that matters. It’s the action which happens on the event of that name. In Flowplayer, unload event triggers the Google Analytics stats. And if that is blocked by Ghostery, it’s a fatal error. There should be a check if the Google Analytics function exists.
Thanks
Martin