Foliovision › Forums › FV Player › Bug Reports › Javascript Error when player loaded dynamically
-
-
Hello Lartigue,
are you able to play these videos?
Are you able to play these videos when you are not logged in?
Please send us a link to such page. Perhaps it will help us find a way of preventing this error. If your website has a hard (fatal) JavaScript error it stops any JavaScript from running, including FV Player.
Thanks,
Martinthe videos work here :https://webdesign-lartigue.ch/creation-sites-internet/portfolio/chopard-ice-cube/
but not here : https://portfolio.lartigue.ch/portfolio/chopard-ice-cube-collection-2017/
these are exactly the same videos
Hello Lartigue,
I see we are using some code which no longer works with the jQuery version in latest WordPress. We haven’t noticed this as this code is not run at all times, only when scroll autoplay is on.
Please deactivate and delete the FV Player Pro plugin you are using, then hit “Install Pro extension” at the top of the wp-admin -> Settings -> FV Player screen.
That will reinstall the Pro plugin and will give you the fixed version.
Thanks,
MartinHello, I don’t know why but the problem has returned
Hello Lartigue,
I checked the links you sent 6 days ago, but they seem to work fine.
Are you only running into the problem when you are logged in? Please please open your browser developer console (here’s how https://foliovision.com/player/troubleshooting/javascript-browser-console), then reload the page with video and see what comes up on the console.
Sometimes a fatal error in JavaScript stops every other JavaScript from executing (all of it, not just FV Player). I would like to see what it’s like in your case, perhaps we can find a way of making FV Player more resilient.
Thanks,
Martinhere the error in the console :
DevTools failed to load source map: Could not load content for https://portfolio.lartigue.ch/wp-content/plugins/fv-wordpress-flowplayer/flowplayer/hls.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILUREHello Lartigue,
we will fix that error, but it’s not the kind of error which can really affect anything. It’s really only debugging information for developers.
We had a look and noticed the JavaScript error reported by FV Player only occurs when your page content is loaded using JavaScript – you seem to be using some variation of infinite scrolling.
Since it does not use jQuery Ajax, it requires a bit of code to let FV Player load in your dynamic environment.
We added documentation about how to make FV Player work on dynamic websites: Dynamic Content Loading
I tested this with some other popular WordPress plugin for video and I run into the same limitations. It wouldn’t work without custom code.
Thanks,
Martin