• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Making the web work for you

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

Admin JavaScript warning

[Solved]

Foliovision › Forums › FV Player › Bug Reports › Admin JavaScript warning

  • Cédric 1 year ago

    Hello,

    Following the update of the fv-player plugin (as well as others) we have a problem in the administration of our site when we want to administer a page containing a fv-player.
    An error is displayed instead of the player: “Admin Javascript warning- I’m sorry, your Javascript appears to be broken. Please “Check template” in plugin settings, read our troubleshooting guide, troubleshooting guide for programmers or order our pro support and will get it fixed for you”
    We have checked “check template” and everything seems ok (see attachment)
    We tried to make changes with the information found in your “troobleshooting guide” but nothing works.
    Can you help us to correct this problem which is very annoying.

    Thanks

Viewing 15 replies - 1 through 15 (of 15 total)
  • Martin 1 year ago

    Hello Cirdec,

    please let us know what editor you are using – is it Gutenber, the Classic Editor or some page builder?

    Please try to open your browser developer console (here’s how https://foliovision.com/player/troubleshooting/javascript-browser-console), then load the page where the issue occurs again and see, if any error appears on the console.

    Thanks,
    Martin

    Cédric 1 year ago

    Elementor pro Version 3.6.3

    Martin 1 year ago

    Hello Cirdec,

    I tried with Elementor 3.5.6 on WordPress 5.9.2 and I’m not getting any error on console and the player loads – please see the attached screenshot.

    Does the issue go away if you disable Elementor Pro for a bit? Are you noticing anything on your browser console?

    The way of increasing the resilience of FV Player would be to either load the scripts in header (bad for performance) or load all instances in iframe (even worse).

    But perhaps the header loading is actually a good idea if it only works that way in wp-admin – where top performance is important, but most people editing the website have the script cached already.

    Thanks,
    Martin

    fv-player-editor-elementor-no-issues
    fv-player-editor-elementor-no-issues
    Cédric 1 year ago

    We have the same error in the front, not only in the back.

    Martin 1 year ago

    Hello Cirdec,

    I checked your website and the video here plays: https://www.y…r/topic/vive-le-vent-piano-debutant/

    But what’s strange are the two big symbols above the player – coming from LearnDash.

    It seems you are using some CSS optimization which might be broken. You should start by clearning and WordPress caches and see if that fixes the issue.

    If you still can’t play FV Player videos, please provide the screenshot of your browser console.

    Thanks,
    Martin

    Cédric 1 year ago

    Always the same problem

    275754932_660080988543206_2075406229924808840_n
    275754932_660080988543206_2075406229924808840_n
    275604877_4865715770171247_6259484842728850648_n
    275604877_4865715770171247_6259484842728850648_n
    275570779_332273108955596_5175540817281717827_n
    275570779_332273108955596_5175540817281717827_n
    Martin 1 year ago

    Hello Cirdec,

    thank you for these details. It appears some of the code on your website is using “const i” which then runs into an issue with the “var i” in some of FV Player code. So I took care of this bad practice in our plugin and the other plugin will no longer interfere with it.

    Could you please reinstall FV Player from this link? https://github.com/foliovision/fv-wordpress-flowplayer/archive/master.zip To do that you will have to first deactivate and delete the current FV Player plugin you are using. WordPress will warn you that you might loose settings and data, but it’s not the case with our plugin, no settings now videos will be lost. Or you can just replace the plugin files via FTP.

    Then also reinstall FV Player Pro – 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 way the issue should be fixed.

    However your console also shows the “Uncaught TypeError: L is undefined” coming from Elementor – I’m not sure if this will still break the JavaScript (and thus FV Player) or not.

    Thanks,
    Martin

    Cédric 1 year ago

    Solved !
    Martin you are my saver !
    thanks

    Cédric 1 year ago

    Can we continue to do the updates afterwards?

    Martin 1 year ago

    Hello Cirdec,

    thank you, I’m glad we were able to figure this out.

    These fixes will be part of the future releases of course.

    Thanks,
    Martin

    Jovan 1 year ago

    I had the same problem with the latest release 7.5.20.727. I had to roll back to version 7.4.47.727.

    I am also using version 7.5.19.727 FV Player Pro which is not causing issues.

    Martin 1 year ago

    Hello Jovan,

    please make sure you purge any caches, specially if you use something to optimize the JavaScript.

    If the issue persists, then please check open your browser developer console (here’s how https://foliovision.com/player/troubleshooting/javascript-browser-console), then load the page where the issue occurs again and see, if any error appears on the console.

    Thanks,
    Martin

    Jovan 12 months ago

    I got it working by turning off the LiteSpeed cache. I need LiteSpeed cache on because it is a high-traffic website with 700K page views monthly.

    I am not minifying CSS or Javascript with LiteSpeed cache and it still gives me an error.

    I have attached a screenshot of the Google Dev console error.

    I get an error with version 7.5.20.727 and no error with version 7.4.47.727.2.

    Let me know what I need to do on my end to let the latest version of FV Player work.

    Thank you

    screenshot-2022-04-04-163412
    Screenshot-2022-04-04-163412
    Martin 12 months ago

    Hello Jovan,

    could you please reinstall FV Player from this link? https://github.com/foliovision/fv-wordpress-flowplayer/archive/master.zip To do that you will have to first deactivate and delete the current FV Player plugin you are using. WordPress will warn you that you might loose settings and data, but it’s not the case with our plugin, no settings now videos will be lost. Or you can just replace the plugin files via FTP.

    Then it will work.

    I found that we forgot to include a single , in the code and that has caused the issue. We will add automated JavaScript code check using JSlint to avoid issues like this. Our current tests did not detect this as this bug does not break anything unless there is some other code on your website which is using a global variable named isSupported. So it’s an edge case bug and we will stop it from happening ever again.

    Thanks,
    Martin

    Jovan 12 months ago

    It is now working. Thank you

Viewing 15 replies - 1 through 15 (of 15 total)
Reply To: Admin JavaScript warning



Please Sign in or Register to upload files.

Related Posts

  1. AMP pages: Admin JavaScript warning: ERROR

    AMP pages: Admin JavaScript warning: ERROR

  2. Question about ADMIN JAVASCRIPT WARNING and other issues…

    Question about ADMIN JAVASCRIPT WARNING and other issues…

  3. Javascript warning message.

    Javascript warning message.

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Foliovision logo
All materials © 2023 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in settings.

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!