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

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: latestIssue
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 219Stack trace:
FV_Player_Pro_RCP_Bridge->init()
do_action(‘plugins_loaded’)
-
-

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
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.

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
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
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.

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.

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
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
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.
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
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.
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

