• 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 7.3.12.727: PHP 7.3 stripos(): Non-string needles will be interpreted…

[Solved]

Foliovision › Forums › FV Player › Bug Reports › Pro 7.3.12.727: PHP 7.3 stripos(): Non-string needles will be interpreted…

  • Leho Kraav 6 years, 7 months ago

    Deprecated stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

        hybrid_get_content_template()
        /home/convers/deploy/cxl/hbd-institute-theme/releases/20190429.204249-leho/index.php:23
        the_content()
        /home/convers/deploy/cxl/institute-theme/releases/20190530.172725-paul/content/page.php:57
        apply_filters('the_content')
        wp-includes/post-template.php:247
        do_shortcode()
        wp-includes/class-wp-hook.php:286
        preg_replace_callback()
        wp-includes/shortcodes.php:199
        do_shortcode_tag()
        Unknown location
        Grid_Columns->do_shortcode()
        wp-includes/shortcodes.php:325
        apply_filters('gc_column_content')
        wp-content/plugins/grid-columns.git/grid-columns.php:259
        do_shortcode()
        wp-includes/class-wp-hook.php:288
        preg_replace_callback()
        wp-includes/shortcodes.php:199
        do_shortcode_tag()
        Unknown location
        flowplayer_content_handle()
        wp-includes/shortcodes.php:325
        flowplayer_frontend->build_min_player()
        wp-content/plugins/fv-wordpress-flowplayer/controller/shortcodes.php:162
        apply_filters('fv_flowplayer_args_pre')
        wp-content/plugins/fv-wordpress-flowplayer/models/flowplayer-frontend.php:86
        FV_Player_SEO->should_i()
        wp-includes/class-wp-hook.php:286
        flowplayer_frontend->get_splash()
        wp-content/plugins/fv-wordpress-flowplayer/models/seo.php:76
        apply_filters('fv_flowplayer_splash')
        wp-content/plugins/fv-wordpress-flowplayer/models/flowplayer-frontend.php:959
        FV_Player_Pro->get__cached_splash()
        wp-includes/class-wp-hook.php:288
        stripos()
        wp-content/plugins/fv-player-pro/beta/fv-player-pro.class.php:3548
    

    Hopefully stack trace is readable. There’s no preview function so can’t tell up front.

Viewing 8 replies - 1 through 8 (of 8 total)
  • CXL 6 years ago

    We’re at 7.4.9.727 and this is still a major log spam source.

    [22-Jan-2020 08:13:17 UTC] PHP Notice: get__cached_splash stripos needle is unexpectedly not a string: #0 /home/convers/public_html/institute/wp-includes/class-wp-hook.php(290): FV_Player_Pro->get__cached_splash(false)
    #1 /home/convers/public_html/institute/wp-includes/plugin.php(206): WP_Hook->apply_filters(false, Array)
    #2 /home/convers/public_html/institute/wp-content/plugins/fv-wordpress-flowplayer/models/flowplayer-frontend.php(983): apply_filters(‘fv_flowplayer_s…’, false, Object(flowplayer_frontend))
    #3 /home/convers/public_html/institute/wp-content/plugins/fv-wordpress-flowplayer/models/seo.php(76): flowplayer_frontend->get_splash()
    #4 /home/convers/public_html/institute/wp-includes/class-wp-hook.php(288): FV_Player_SEO->should_i(Array)
    #5 /home/convers/public_html/institute/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
    #6 /home/convers/public_html/institute/wp-content/plugins/fv-wordpress-flowplayer/models/flowplayer-frontend.php(86): apply_filters(‘fv_flowplayer_a…’, Array)
    #7 /home/convers/public_html/institute/w in /home/convers/public_html/institute/wp-content/plugins/fv-player-pro/fv-player-pro.class.php on line 3685

    Can yall figure this out?

    Juraj Kacaba 6 years ago
    Avatar photo

    Hello,

    Thanks for letting us know! I’ve forwarded this issue to our development team for a check.

    We’ll get in touch with you in the close future with more info.

    Thanks for being part of Foliovision,
    Juraj

    CXL 6 years ago

    Thanks. I forgot to add y-day, that my debugging showed $src parameter occasionally being NULL instead of a string. I ran out of time and couldn’t quite tell what video source produces this situation. Let me know if you need more information about the inputs.

    Martin 6 years ago

    Hello CXL,

    FV Player and FV Player Pro 7.4.14.727 were released. They use a simpler code around these automated splash images for Vimeo and YouTube images which will get rid of your warning. That edge case under which it was appearing should also no longer occur. It was not using a proper variable to pass the video source URL, but a full object which was hard to manage and there was no reason for it.

    Thanks,
    Martin

    CXL 6 years ago

    WIth 7.4.14.727, logs are flooded with “[29-Jan-2020 12:10:33 UTC] PHP Notice: Undefined variable: src in /home/convers/public_html/institute/wp-content/plugins/fv-player-pro/fv-player-pro.class.php on line 3680”

    Traceback:

    wp-content/plugins/fv-player-pro/fv-player-pro.class.php:3680
    FV_Player_Pro->get__cached_splash()
    wp-includes/class-wp-hook.php:288
    apply_filters(‘fv_flowplayer_splash’)
    wp-content/plugins/fv-wordpress-flowplayer/models/flowplayer-frontend.php:983
    flowplayer_frontend->get_splash()
    wp-content/plugins/fv-wordpress-flowplayer/models/seo.php:76
    FV_Player_SEO->should_i()
    wp-includes/class-wp-hook.php:288
    apply_filters(‘fv_flowplayer_args_pre’)
    wp-content/plugins/fv-wordpress-flowplayer/models/flowplayer-frontend.php:86
    flowplayer_frontend->build_min_player()
    wp-content/plugins/fv-wordpress-flowplayer/controller/shortcodes.php:195
    flowplayer_content_handle()
    wp-includes/shortcodes.php:325
    do_shortcode_tag()
    Unknown location
    preg_replace_callback()
    wp-includes/shortcodes.php:199
    do_shortcode()
    wp-includes/class-wp-hook.php:288
    apply_filters(‘the_content’)
    wp-includes/post-template.php:253
    the_content()
    /home/convers/deploy/cxl/institute-theme/releases/20200104.143555-leho/content/lesson-singular.php:47
    hybrid_get_content_template()
    /home/convers/deploy/cxl/hbd-institute-theme/releases/20200122.151833-leho/sensei.php:23

    CXL 6 years ago

    Are you guys using IntelliJ / PhpStorm? IDE-s and of course any static analysis tools would’ve caught this pre-release.

    Martin 6 years ago

    Hello CXL,

    FV Player Pro 7.4.15.727 is out and it fixes this issue.

    The issue was not running the unit tests on the Release version of the plugin, only Beta where these changes were made first. Thank you for your recommendation, I’m trying out phpstan.

    Thanks,
    Martin

    Martin 6 years ago

    Hello CXL,

    the issue with PHP static analysis is that we would have to rewrite our classes to use autoload. Besides that I don’t think it would catch an issue like this, as it uses the WordPress filters API.

    The WordPress filters are not such a great idea when you develop your own plugin after all. If we would use PHP classes instead and extend them, this would be easier to test with PHPUnit too.

    Thanks,
    Martin

Viewing 8 replies - 1 through 8 (of 8 total)
Reply To: Pro 7.3.12.727: PHP 7.3 stripos(): Non-string needles will be interpreted…



Please Sign in or Register to upload files.

Related Posts

  1. Unsupported operand types: string after server upgrade to PHP8.0

    Unsupported operand types: string after server upgrade to PHP8.0

  2. Error in log

    Error in log

  3. 7.1.15.727: “PHP Fatal error: … Call to a member function queue_check() on nu

    7.1.15.727: “PHP Fatal error: … Call to a member function queue_check() on nu

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‬