Foliovision › Forums › FV Player Pay Per View › Bug Reports › Restrict Content Pro – Restrict Past Content not working with PPV
-
Hi, we have over 400 videos in our library, and until recently everything worked fine.
with your new PPV Beta everything now is out of whack.we have two main memberships, one that restricts past content, and one that doesnt. Silver and Gold.
If someone signs up to Silver today he is supposed to see just the new videos but not something from say a month ago. Gold is unrestricted.
on top of that each video is available for PPV purchase.
now.
When i add new videos i now have to select which memberships have access to RCP https://gyazo.com/890b3b67e0487ed2a23d9721ef78bc14
if i dont do that, even members have to PPV. but if i do that, now it circumvents the restrict past content restriction and silver members have access to old videos. I need a solution asap
-
-
Hello Turbokingspoker,
We’re sorry about the inconvenience.
We have fairly recently launched a new subscription system which is an integration with RCP as a part of the PPV plugin. Thank you for reporting these conflicts between the two systems.
I’ll notify our development team and they will deal with it shortly.
Making the web work for you,
MariaHello Turbokingspoker,
please download a fresh copy of FV Player Pay Per Vie ZIP file from https://foliovision.com/my-licenses and reinstall from that.
Then the issue should be fixed.
Thanks,
MartinHello Turbokingspoker,
I checked the video.
You said that a user with RCP membership would get the Pay Per View buttons even though the video was associated with the RCP membership level which he purchased. So he should have access to the video.
However if you then open the player in the editor, the issue goes away. But then it does come back the next day or so.
On one occasion you also noticed that the RCP memberships set for the player would disappear from its configuration.
I’m sorry to hear about such issues, it’s certainly not what you should be experiencing with FV Player.
I was not able to replicate these issues, I don’t see how this could be happening at all. It seems like some database error.
As a first troubleshooting step please get a fresh FV Player Pay Per View ZIP file from https://foliovision.com/my-licenses and reinstall from that.
Then enable wp-admin -> Settings -> FV Player PPV -> Debug. Then find another video for which your test member gets the Pay Per View buttons, add
?fvppv_debug
to the link in the browser location bar and open it again. Then open the page source HTML code and look for lines with<!--fvppv_debug msg:
If the player is restricted for certain RCP memberships, then there should be a log message like this:
RCP Membership Level IDs ‘1,2’
Then is the user has the access to that membership there will be:
User has the required RCP Membership Level ‘2’
If the post is too old and is restricted by Restrict Past Content RCP addon you will see:
However rcp_membership_can_access filter restricts the access
But there might be some weird issue or that message might not come at all. In that case you might just see:
No EDD nor RCP restriction found
If that’s the case then please try to export the player by using wp-admin -> FV Player -> however over the player row and click “Export”. Will you be able to find the
rcp_levels
part if in? Something like this:{“ab”:””,”ad”:””,”ad_height”:””,”ad_width”:””,”ad_skip”:””,”align”:””,”autoplay”:””,”controlbar”:””,”copy_text”:””,”embed”:””,”end_actions”:””,”end_action_value”:””,”height”:””,”hflip”:””,”lightbox”:””,”lightbox_caption”:””,”lightbox_height”:””,”lightbox_width”:””,”player_name”:””,”player_slug”:””,”playlist”:””,”playlist_advance”:””,”qsel”:””,”share”:””,”share_title”:””,”share_url”:””,”speed”:””,”sticky”:””,”video_ads”:””,”video_ads_post”:””,”width”:””,”status”:”published”,”meta”:[{“meta_key”:”rcp_levels”,”meta_value”:”1,2″},{“meta_key”:”post_id”,”meta_value”:”147204″}],”videos”:[{…}]}
Thanks,
MartinHello Turbokingspoker,
please double check that you actually grabbed a fresh FV Player Pay Per View ZIP file from https://foliovision.com/my-licenses and reinstalled from that.
It includes some more debug information which is missing on your output. Was there really nothing about “RCP Membership” ?
Thanks,
Martinjust downloaded a new version from our license tab again and reinstalled, did the debug thing and this the debug message now:
<!–fvppv_debug msg: User purchases for user_id ‘none’ –>
<!–fvppv_debug msg: EDD Purchase date ‘none’ –>
<!–fvppv_debug msg: Rental duration 96 –>
<!–fvppv_debug msg: Seconds left -1665407829 –>
<!–fvppv_debug msg: Showing preview –>when i do the reload thing as i have shown you in the video then suddenly the debug message shows this <!–fvppv_debug msg: RCP Membership Level IDs ‘4,5,6,3,2’ –>
<!–fvppv_debug msg: User purchases for user_id ‘none’ –>
<!–fvppv_debug msg: EDD Purchase date ‘none’ –>
<!–fvppv_debug msg: User has the required RCP Membership Level ‘3’ –>
<!–fvppv_debug msg: Rental duration 96 –>
<!–fvppv_debug msg: Seconds left -1665408085 –>
<!–fvppv_debug msg: Access permitted for RCP member –>Hello Turbokingspoker,
what’s strange is that when you reinstalled FV Player Pay Per View you did not get that “RCP Membership Level IDs” debug message. You only got it after reloading the page.
That suggests to me the issue is with page caching. A WordPress caching plugin or your web host page cache might be interfering with the membership functions of your website.
Are you able to reproduce the behavior where you do not get the access to the video, but you can see “RCP Membership Level IDs” in debug?
Our paid support is available here: https://foliovision.com/pro-support We would require a WordPress admin access, FTP access and access for a test member to use for the testing.
Thanks,
MartinNo, I’m not able to reproduce that. if there is access to the video, then this debug message shows it, however, if there is no access then it doesn’t show it.
What’s strange is that I know that I went over every single video myself which is over 500 to make sure all videos in the FV Player have the memberships set which have access, now when I double check some of them don’t. It’s really mind-boggling and frustrating, as I can’t reopen over 500 videos in the FV Player to double-check those every time.
And I don’t think it has anything to do with caching, to be honest. Just now checked video 54 which I know for a fact last night had all the right authorizations set, I opened it in FV Player, and next to Restrict Content Pro under PPV Tab everything is empty. So again I had to select the memberships I want to have free access to that video. I keep doing the same work over and over for tons of videos
also please check this GIF.
I open video 104 it has no rights assigned, open video 105 no rights assigned. then i add rights to video 105, then open 104 and suddenly 104 has the same rights as 105 where it was empty before.
to your last question, here is the gif:
Video on website shows PPV buttons, exported video from FV player has no RCP metadata, however now i open that video in FV Player and under RCP it does show memberships, when i now close that video and open Metadata it suddenly has RCP metadata and a refresh of the website removes the PPV buttons
https://gyazo.com/8912e55b7f25bc38a1b88df4cb642a7bHello Turbokingspoker,
regarding the first GIF – I see that we do not reset the status of the RCP membership picker properly. It’s fixed now, please grab a fresh copy of FV Player Pay Per Vie ZIP file from https://foliovision.com/my-licenses and reinstall from that
I see that with a bug like this it would be very hard to edit anything. So perhaps you thought the membership restrictions are all set while they were in place from your previous edit.
Would you like to apply the same RCP Membership Level IDs for all the players in your database? If you, you can use SQL like this, please just make sure you backup your database and change
1,2
to your actual membership IDs:DELETE FROM wp_fv_player_playermeta WHERE meta_key = 'rcp_levels' AND meta_value = ''; INSERT INTO `wp_fv_player_playermeta` ( `id_player`, `meta_key`, `meta_value`) select id, 'rcp_levels', '1,2' FROM wp_fv_player_players WHERE id NOT IN ( SELECT id_player FROM wp_fv_player_playermeta WHERE meta_key = 'rcp_levels' );
Thanks,
Martin