Thankyou. I did not recive the reply.
It works now
I have this same problem with page being restricted even when user bought product.
Using current version of plugin, Version 3.0.6. Haaaalp!
@dansarn is it all pages or just a single page? Is the order in the completed status? Is the user logged in to the account they purchased through? Do you have any caching plugins or server level caching running?
It’s a couple of pages, all who have been working really nice for a year and now all of a sudden stopped working. No other plugins or so is added, so it appears to have gone broken due to version update.
wc_pay_per_post.DEBUG: User has NOT purchased product id # [] []
But they have.
Might be the “Transient”-update. Also, my “Transients-list” is empty and contains nothing. Should it be that way?
If you goto Admin->Pay for Post->Purchased Content does that page load up for you?
whats the link?
admin.php?page=wc_pay_per_post-purchased-content ?
@dansarn can you please reach out to support@pramadillo.com this way we can help you faster.
Sorry, i’m not a payed sub. 🙁
I would still like to address issue, but email would be better form of communication than the forums. I will post our findings as a reply on this form when we get it resolved for any other people having same issue.
Ok great, i’ll throw you an email! +1
@mattpramschufer
Was there a solution to this problem?
I had the same thing happening, people were not able to access the page after purchase, nor did it show on the ‘you have purchased’ list I had created.
It did re-appear once I refreshed the transient list. Surely I don’t have to do that all the time?
@kel2020 the transients are for all posts that are protected, they get stored for 24 hours and then get regenerated. If you are adding several protected posts per day you might want to reduce the transient expiration to a lower amount of time, you can do that by using the filter
add_filter('wc_pay_per_post_posts_transient_time', function(){
return 43200; //12 hours in minutes
});
Hope that helps!