• 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

PHP 8.3 Deprecation Notices and Early Textdomain Load in FV Player

Foliovision › Forums › FV Player › Bug Reports › PHP 8.3 Deprecation Notices and Early Textdomain Load in FV Player

  • D.C. D. 6 months, 2 weeks ago

    Hi FV Player team,

    On WordPress (latest) with PHP 8.3 I’m seeing repeated deprecation notices from FV Player:

    PHP Deprecated: Creation of dynamic property FV_Player_Db_Video::$caption is deprecated
    in /wp-content/plugins/fv-player/models/db-video.php on lines 452, 467, 505

    Suggestion: declare the property on the class to avoid dynamic properties on PHP 8.2+:

    // models/db-video.php
    class FV_Player_Db_Video {
        /** @var ?string */
        public ?string $caption = null; // prevents dynamic property deprecations
        // ...
    }

    Alternatively (short-term), adding #[\AllowDynamicProperties] on the class would suppress the deprecation, but declaring the property is the cleaner fix.

    I’m also seeing:

    PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ‘fv-player’ domain was triggered too early.

    Recommendation: move load_plugin_textdomain(‘fv-player’, …) to run on init (or later), for example:

    add_action('init', function () {
        load_plugin_textdomain('fv-player', false, dirname(plugin_basename(__FILE__)) . '/languages');
    });

    Thanks for looking into this—happy to test a dev build if helpful.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Martin 7 months ago

    Hello D.C.,

    Thank you for the bug report.

    I see the issue with FV_Player_Db_Video::$caption would occur on websites which upgraded from FV Player 7 to 8.

    I put in a fix for the next release. You can also reinstall FV Player from this link to get it right away: https://foliovision.com/downloads/fv-player-8.zip

    I did not notice the _load_textdomain_just_in_time warning though. Are you able to see if on a standard video page when using the Query Monitor plugin, or when you check the PHP error log?

    Thanks,
    Martin

    D.C. D. 6 months ago

    It was the PHP error log.

    Love this plugin, Martin. It literally makes my website.

    Martin 6 months ago

    Hello D.C.,

    Thank you!

    We will we looking for that message in our own error logs.

    Please let us know if it’s really willing in your error logs fast and it does not only occur rarely.

    Thanks,
    Martin

Viewing 3 replies - 1 through 3 (of 3 total)
Reply To: PHP 8.3 Deprecation Notices and Early Textdomain Load in FV Player



Please Sign in or Register to upload files.

Related Posts

  1. "Load JS everywhere" not checked results in a 404

    "Load JS everywhere" not checked results in a 404

  2. Load FV Player within Ajax Load More infinite scroll

    Load FV Player within Ajax Load More infinite scroll

  3. Reply To: Stream loader

    Reply To: Stream loader

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‬