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

Foliovision

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

video not playing because of bad external scripts

Foliovision › Forums › FV Player › Troubleshooting › video not playing because of bad external scripts

  • Andrew H. 11 years, 2 months ago

    Hey guys,

    So just updated to latest version of plugin (2.2) and it is breaking across my site throwing this error…

    PHP Warning: Invalid argument supplied for foreach() in /var/www/learntoplayguitartv.com/wp-content/plugins/fv-wordpress-flowplayer/controller/frontend.php on line 274

    The player displays, but is overlaid with text of the control functions. There’s no play button and the splash image is zoomed way in. Any idea of how to fix this?

    I’ve already re-saved settings, de-activated, deleted, then re-installed plugin with no effect and so had to downgrade to old version using your site recommended fix and of course, works with the old version.

    Thanks,

    Andrew

Viewing 10 replies - 1 through 10 (of 10 total)
  • Martin 11 years ago

    Hello Andrew,

    sorry about the inconvenience. Have you tried version 2.2.1? There were issues in the CSS optimization. We also put in the fix for the PHP warning into it just now.

    Thanks,
    Martin

    Andrew H. 11 years ago

    Hey Martin, thanks for the reply. Just tried 2.2.1 and get an Admin warning “I’m sorry, your JavaScript appears to be broken. Please use “Check template” in plugin settings or order our pro support and we will get it fixed for you.”

    Previous version before 2.2 or 2.1 (whatever was pre 2/24) worked fine but don’t have that .zip file so can’t downgrade to the 2.0 versions.

    No other changes were made to the site and no other plugins were updated.

    What seems to be happening though is a Javascript conflict with W3TC and Aweber analytics.

    When I deactivate W3TC things work. With it active, the pages are hanging on Aweber’s JS analytics call.

    As another note, Firefox seems to be responding now while Safari is the one throwing that Admin message across all videos.

    I’m now downgrading back so as not to keep active members from watching videos…but hopefully there’s a fix :-)

    Martin 11 years ago

    Hello Andrew,

    the admin warning only shows to admins letting you know that there is an issue.

    Could you please let us know what W3TC settings do you use? A screenshot would be great, just send it in as a email reply.

    Which version works for you, is it 2.1.52? http://downloads.wordpress.org/plugin/fv-wordpress-flowplayer.2.1.52.zip

    Thanks,
    Martin

    Andrew H. 11 years ago

    Hey,

    This version is still problematic and actually Firefox and Safari are behaving the same. Had to wipe cache in both and with that done both mis-behave. It seems to be it’s just any JS being loaded…AWeber, Jetpack, etc…page load hangs, video unplayable and as you said, if logged in as admin, I see the message.

    I have Page, Fragment, and Browser Cache active using Disk mode with default JS minify settings.

    Andrew H. 11 years ago

    I should note that eventually the pages are loading, but we’re talking upwards of a minute for these JS script hangs to gravatar and aweber to process and then the videos play fine (the text controls showing over the player window is resolved in all versions). It also seems to be affecting v1.2.17 right now.

    AWeber is under a DDos attack right now and so all their servers are down…not sure how long a time-out takes, but maybe that is affecting something??

    Martin 11 years ago

    Hello Andrew,

    indeed, you site hangs on “Loading forms.aweber.com…” for me.

    The problem is that this script is inserted in a way that it blocks everything else. All scripts need to be in footer, that’s the best practice. The external ones at the very end.

    I tried W3 Total Cache (although we prefer Hyper Cache, read why) and configured it to minify all CSS, and JS. No issues. I added JetPack, no issue wither.

    So it must be Aweber as far as I can tell. I suggest you get rid of it for now. Then you can ask support to provide a proper asynchronous loading script which won’t fail like this even when DoS attack is taking place.

    People occasionally have issues like this and then they blame our player for not working, so that’s why we put up the admin warning – so you know there is a general JavaScript issue on the site which can run everything.

    Thanks,
    Martin

    Andrew H. 11 years ago

    Awesome! Thanks Martin. When AWeber is back up I’ll send their support a message. Since I need their tracking and web forms though, not sure I can ditch the plugin.

    I like that new admin message format and it was helpful in pointing me in the right direction. And I’m also becoming more aware of checking my logs to see if any particular plugin is throwing an error.

    Hope the music is going well man!!!

    Andrew H. 11 years ago

    Just one more note. I deactivated AWeber’s plugin and that fixes it. However, even installing a line of JavaScript into a post/page or widget hangs the site and thus the Flowplayer plugin.

    So how can you have any JavaScript in the content and not kill the video player? Do I have to resort back to html forms??!! NOOOOOOOOO :-) LOL

    Thanks.

    zach 11 years ago

    I’m getting the same error messgae “I’m sorry, your JavaScript appears to be broken. Please use “Check template” in plugin settings or order our pro support and we will get it fixed for you” and have no idea what to do. Help?

    Martin 11 years ago

    Hello Zach,

    did you tried to use the “Check template” on the plugin settings screen? What kind of output did you get?

    Hello Andrew,

    this is something we have to figure out. We follow the best JavaScript practices by putting our scripts in the footer. On the other hand it’s not the most compatible solution if there is some dirty coding like in AWeber’s case. It’s fine 99.9% of the time, but if the inline AWeber code fails to load as their server is down, you get into trouble.

    Thanks,
    Martin

Viewing 10 replies - 1 through 10 (of 10 total)
Reply To: video not playing because of bad external scripts



Please Sign in or Register to upload files.

Related Posts

  1. Incompatible Plugins and Scripts

  2. Playing YouTube videos in your own player

  3. Using the Video Lightbox Effect

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

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 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 .

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!