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

Foliovision

  • 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

Pro 0.9.16: wp_enqueue_style "fv-player-pro" missing dependency "fv_flowplayer"

[Solved]

Foliovision › Forums › FV Player › Bug Reports › Pro 0.9.16: wp_enqueue_style "fv-player-pro" missing dependency "fv_flowplayer"

  • Leho Kraav 7 years, 9 months ago

    Hi.

    WP asset dependency system is primarily meant for determining the order of which the asset should be loaded in.

    In FV Player Pro, wp_enqueue_style() is used as a conditional loading mechanism, and the well known developer help plugin Query Monitor correctly highlights this as a red error.

    wp_enqueue_style( ‘fv-player-pro’, plugins_url( ‘//cdn.foliovision.com/css/style.css’, __FILE__ ), array(‘fv_flowplayer’), $this->version );

    Your core player plugin actually goes through a list of condition checks before it enqueues fv_flowplayer, most importantly “does this page even have a matching shortcode/video”. Pro plugin does not have similar checks and just tries to load fv-player-pro stylesheet on every request, which developer help tools flag as an error.

    As a developer, I’d like to keep the dependency error check in place to catch other errors, and not disable it just because we’re using FV Player.

    Fixing this is fortunately simple:

    * move your Pro player enqueue to priority 11, so core plugin can have its own stylesheet enqueued

    add_action( ‘wp_enqueue_scripts’, array( $this, ‘styles’ ), 11 );

    * Pro player styles() function can use wp_style_is() to check loading conditions

    …
    } else {
    if ( wp_style_is( ‘fv_flowplayer’ ) ) {
    wp_enqueue_style( ‘fv-player-pro’, plugins_url( ‘//cdn.foliovision.com/css/style.css’, __FILE__ ), array(‘fv_flowplayer’), $this->version );
    }
    }
    …

    This correctly loads fv-player-pro stylesheet wherever fv_flowplayer is loaded, and avoids trying otherwise.

    Thanks, bye

Viewing 2 replies - 1 through 2 (of 2 total)
  • Martin 8 years ago

    Hello Leho,

    you are exactly right and your fix works. It will be part of the next plugin release.

    Thank you very much for your input and for your support of independent software!

    Thanks,
    Martin

    Leho Kraav 8 years ago

    Np. Thanks for your attention here.

Viewing 2 replies - 1 through 2 (of 2 total)
Reply To: Pro 0.9.16: wp_enqueue_style "fv-player-pro" missing dependency "fv_flowplayer"



Please Sign in or Register to upload files.

Related Posts

  1. FV Player version 7.4.2.727 when i update the fv player css are breaking

    FV Player version 7.4.2.727 when i update the fv player css are breaking

  2. stream-loader.php issues after update with version 7.5.15.727

    stream-loader.php issues after update with version 7.5.15.727

  3. Setting mailchimp API crashed FV Player plugin

    Setting mailchimp API crashed FV Player plugin

Primary Sidebar

Bug Reports

    Categories

    • Business
    • Camera Reviews
    • Case Studies
    • Design
    • FV Player
    • Internet Marketing
    • IT
    • Life
    • SEO
    • Slovak
    • Video of the Week
    • WordPress

    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 © 2026 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‬