• 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

fatal error on activation with php 8.1 and above

[Solved]

Foliovision › Forums › FV Player › Troubleshooting › fatal error on activation with php 8.1 and above

  • josh 1 month, 2 weeks ago

    Subject: FV Player Pro fatal error with Restrict Content Pro (null $fv_fp in rcp-bridge.php)

    Hello Foliovision Support Team,

    I’m running into a repeatable fatal error when activating FV Player Pro on a modern WordPress stack that includes Restrict Content Pro.

    Environment
    • WordPress: 6.7.x
    • PHP: 8.1 (WP Engine)
    • FV Player Pro: latest
    • Restrict Content Pro: latest
    • LearnDash LMS: latest

    Issue

    As soon as FV Player Pro is activated (with RCP active), the site throws a fatal error and the admin becomes inaccessible.

    PHP Fatal error: Uncaught Error: Attempt to modify property “conf” on null
    in wp-content/plugins/fv-player-pro/rcp-bridge.php on line 219

    Stack trace:
    FV_Player_Pro_RCP_Bridge->init()
    do_action(‘plugins_loaded’)

Viewing 20 replies - 1 through 20 (of 20 total)
  • Martin 2 months ago

    Hello Josh,

    Thank you for the bug report.

    I see FV Player Pro fails if Restrict Content Pro is active, but there is no FV Player.

    FV Player is the free plugin which works as the base for all FV Player video functionality. Please follow the setup instructions available here: https://foliovision.com/player/getting-started/installation/pro-extension

    You can also just install FV Player using wp-admin -> Plugins -> Add New, but then I would recommend you to also download a new copy of FV Player Pro from https://foliovision.com/my-licenses and reinstall it – as I just added a bug fix for the above issue. It will be part of the future FV Player Pro releases too.

    Thanks,
    Martin

    josh 1 month ago

    Hi,

    I’m still having problems activating with the latest plugin and fv player installed.

    [28-Dec-2025 03:07:08 UTC] PHP Parse error: syntax error, unexpected token “endif” in /nas/content/live/monstermedidev/wp-content/plugins/fv-player-pro/hls.class.php on line 1004

    Site is hosted with wp-engine and tried with php 7.4, 8.2, and 8.4.

    Installation was attempted with rcp de-activated.

    We were able to get running earlier and was having very odd behavior with video progression settings not saving and other oddities.

    I tried installing on a dev site and now i’m not able to successfully activate.

    Martin 1 month ago

    Hello Josh,

    Thank you for posting these details.

    Now it’s fixed.

    Please delete the FV Player Pro plugin and then hit the “Apply Pro upgrade” button at the top of wp-admin -> FV Player -> Settings and it will work. Or you can download a new FV Player Pro ZIP file from https://foliovision.com/my-licenses and install from that.

    Sorry about the issue, I found there was an issue with the merge of the recent code changes. Our automated error checking was actually checking the FV Player Pro plugin in a bad folder after some internal structural changes, so we were not alerted about the bad plugin file being in place. Now the monitoring is fixed too.

    Thanks,
    Martin

    josh 1 month ago

    I was able to get it to install, i’m not sure how we were getting to successfully install earlier but we’re having the same issue as before where after insert the video and saving the settings don’t save

    Martin 1 month ago

    Hello Josh,

    Please let me know more about the saving issue.

    Do you mean that the FV Player Editor does not save some field properly? If so, which fields are not saving?

    Or are you referring to the LearnDash specific fields like “Use FV Player”? https://foliovision.com/player/membership-ppv-elearning/elearning/learndash-progression-player

    Are there any errors in the PHP error log when the saving fails?

    Thanks,
    Martin

    josh 1 month ago

    hi,

    i’m not seeing any errors in the error log but settings don’t get saved for video progression and video isn’t showing up on the front end.

    screenshot-2025-12-31-at-2-29-14-am
    Screenshot-2025-12-31-at-2.29.14 AM
    screenshot-2025-12-31-at-2-30-01-am
    Screenshot-2025-12-31-at-2.30.01 AM
    josh 1 month ago

    tested on local test install (running on mamp pro) with regular fv player and vimeo video and same thing happens. After checking off “enable fvplayer” and saving settings the settings don’t save.

    This is with a fresh install running only learndash and fvplayer in php 8.5.

    Changed php version to php 7.4.33 with same results.

    We are hoping to have working this week to work with a prospective client.

    josh 1 month ago

    Sorry for multiple posts, one thing to note it does work when using a gutenberg block.

    Martin 1 month ago

    Hello Josh,

    Thank you for the screenshots, now I realize the issue – you are actually posting a LearnDash Topic and not a Lesson.

    The issue is fixed. Could you please confirm by reinstalling the base FV Player plugin from this ZIP file? https://foliovision.com/downloads/fv-player-8.zip

    I found that the more recent LearnDash LMS versions have changed the way the Topic Settings are saved and that broke our integration.

    Thanks,
    Martin

    josh 1 month ago

    hi martin, that did fix the issue, however still need do some testing for functionality.

    Is it possible to be able to use the pro plugin on my local staging environement or a staging site in our hosting account?

    Martin 1 month ago

    Hello Josh,

    Thank you for confirming that it fixed your issue. We will make that fix part of the next FV Player release too.

    Please read here about the staging website licenses: https://foliovision.com/player/licensing-and-account/staging-sites-developers

    Thanks,
    Martin

    josh 1 month ago

    hey martin,

    topic and lesson completion isn’t working.

    here’s a summary of what is happening.

    We’re using FV Player with LearnDash Video Progression on Topics. Watching the video to completion consistently triggers FV Player’s “video end” and we see FV Player AJAX calls (e.g. video position save / Vimeo fetch) returning success.

    Issue: it works for the first Topic in the course (Topic 1 gets marked complete as expected), but later Topics in the same course do not get marked complete even though the video is watched fully.

    ID findings:
    • On the affected Topic page, the body class shows the correct post ID (e.g. postid-76 / learndash-cpt-sfwd-topic-76-current), and our console checks confirm the correct Topic post ID is present.
    • However, completion behavior appears to only apply reliably to the first Topic in the course, suggesting FV Player may be associating the video completion to the wrong LearnDash Topic/Post on later Topics.

    Martin 1 month ago

    Hello Josh,

    I found there is a conflict with the JavaScript Cookie libraries with the new LearnDash version.

    The issue is fixed for the next FV Player release.

    Could you please confirm by reinstalling the base FV Player plugin from this ZIP file? https://foliovision.com/downloads/fv-player-8.zip

    Thanks,
    Martin

    josh 1 month ago

    hi martin,

    i can confirm it is working now.

    are there a lot of users for the plugin? I’m surprised no one else is reporting any of these issues?

    Martin 1 month ago

    Hello Josh,

    Thank you for confirming, FV Player 8.1.3 has been released now.

    Most of the FV Player Pro users are still using FV Player 7. So I guess they are also using the older LearnDash version.

    We should probably remind our users to upgrade to FV Player 8.

    Thanks,
    Martin

    josh 1 month ago

    Do you have any idea of most of your users are using Linear Mode for course completion?

    Martin 4 weeks ago

    Hello Josh,

    No, as FV Player does not affect in what order the students can complete the lessons.

    Please let us know if you are having any specific FV Player or related issue.

    Thanks,
    Martin

    josh 3 weeks ago

    Hi martin,

    We’re running into an error where registration doesn’t work for restrict content pro and is giving a javascript error.

    Fatal error during registration AJAX:
    • fv-player-pro/beta/rcp-bridge.php:270
    • in_array(): Argument #2 ($haystack) must be of type array, null given
    • Triggered on rcp_form_processing → rcp_process_registration() → admin-ajax.php
    • Also right before it: Undefined array key ppv_rcp_levels in the same file/line.

    Martin 3 weeks ago

    Hello Josh,

    Thank you for posting these details.

    Please delete the FV Player Pro plugin and then hit the “Apply Pro upgrade” button at the top of wp-admin -> FV Player -> Settings and it will work.

    Or you can download a new FV Player Pro ZIP file from https://foliovision.com/my-licenses and install from that.

    We removed the deprecated RCP code completely.

    Thanks,
    Martin

    josh 3 weeks ago

    Upgraded to Version 8.0.27.beta.1 and was able to create a membership without any errors.

Viewing 20 replies - 1 through 20 (of 20 total)
Reply To: fatal error on activation with php 8.1 and above



Please Sign in or Register to upload files.

Related Posts

  1. Sean B.

    Sean B.

  2. Reply To: Parallel Captions with glossary for language learning

    Reply To: Parallel Captions with glossary for language learning

  3. Reply To: Pre-roll VAST/VPAID ads with HLS

    Reply To: Pre-roll VAST/VPAID ads with HLS

Primary Sidebar

Troubleshooting

    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‬