Page 1 of 1

Free Download Stopped Working

PostPosted: September 14th, 2011, 12:49 pm
by denvert
I am administrating a site that has 1 free video download per free registrant every 60 days and it is automatically going to the membership options page without letting users get the one free download. It has been working and just stopped working. I'm at a loss as to how to troubleshoot this.

http://alturl.com/sz6ey

Re: Free Download Stopped Working

PostPosted: September 15th, 2011, 10:10 am
by denvert
Hey, Any advice? sorry to be inpatient but we just sent out a huge e-mail blast.

Re: Free Download Stopped Working

PostPosted: September 15th, 2011, 1:01 pm
by Jason Caldwell
Hi there. Thanks for reporting this important issue.
I'm investigating this now. Thanks for your patience.

What version of WordPress/s2Member are you running please?

Re: Free Download Stopped Working

PostPosted: September 15th, 2011, 1:14 pm
by Jason Caldwell
Thanks for your patience.

I've just taken a quick look at your site, and it appears that you're running a corrupted and/or incomplete installation of s2Member and s2Member Pro. Upon free registration, I received this error:
Code: Select all
Fatal error: Class 'c_ws_plugin__s2member_pro_remote_ops' not found in /home/thevideo/public_html/wp-content/plugins/s2member/includes/classes/registrations.inc.php on line 433
This indicates to me that your installation of s2Member and s2Member Pro are incomplete. That is, I would try logging in via FTP and delete these two directories completely.
Code: Select all
/wp-content/plugins/s2member/
/wp-content/plugins/s2member-pro/

Then upload a complete copy of both s2Member and s2Member Pro again following these instructions. Both of these applications are available inside your account at s2Member.com. Please let us know if you continue to have trouble after upgrading your installation to the latest version.

Re: Free Download Stopped Working

PostPosted: September 15th, 2011, 1:40 pm
by denvert
Hi Jason,

I think you were subscribing as I was upgrading to latest version. I went back and upgraded to latest versions based on link you sent and still getting the same results. When hovering over link it shows url of the re-direct page. In the past it would show the location of the video and then be re-directed after logging in.

We have had conflict with other scripts on site/theme so their were some mods made that could be creating the error. There also used to be a popup that would appear saying how many downloads were left etc. and this isn't working anymore either.

thanks for your time

Re: Free Download Stopped Working

PostPosted: September 15th, 2011, 2:03 pm
by Jason Caldwell
Ah, gotchya. Thanks.
I just logged into my account with you, and all of the download links point directly to this page:
Code: Select all
http://www.thevideopool.com/membership-options
Since s2Member doesn't modify the links directly, I'm guessing this problem has more to do with the logic behind the actual display of links, and not with s2Member itself. You mentioned that JavaScript confirmation is not working either, and that would be expected when the links are no longer pointing to an actual file download, and just pointing directly to the Membership Options Page: http://www.thevideopool.com/membership-options

Re: Free Download Stopped Working

PostPosted: September 15th, 2011, 2:14 pm
by denvert
When logged in as a user level 1 or above the links work though, they are not set up to go to http://www.thevideopool.com/membership-options.

I upgraded your account to a monthly user, you should be able to see what i'm explaining.

Re: Free Download Stopped Working

PostPosted: September 15th, 2011, 2:34 pm
by Jason Caldwell
Thank you. Yes, the download links are functioning properly on my account now.

The reason the download confirmation prompt is still not working, is because the content portion of your site is being loaded dynamically, through what looks like AJAX, and so s2Member's event listeners are not being attached, because the content of the document does not contain any download links initially. This may also explain the Free Subscriber problem you're having. That is, if content is being pulled via AJAX dynamically, and your developer has integrated conditionals to test Membership Level, these might be failing to provide accurate results, depending on the way your developer integrated things.

The download prompt may or may not be a huge deal for you, but I'm sure that the accurate testing of conditional routines IS important. I would start debugging, by taking a look at your dynamic content integration, and make sure that the current User/Member is being recognized properly in any custom routines that you've built. I'm not seeing anything here that I could call a bug with s2Member yet.

Re: Free Download Stopped Working

PostPosted: September 15th, 2011, 2:44 pm
by denvert
Thanks for your help Jason.

The developer needs "some functions that will return true or false when i'm checking if the current user has the right to download a single file". Is there any documentation I can point him to for integrating the ajax with the plugin?

Re: Free Download Stopped Working

PostPosted: September 16th, 2011, 4:09 pm
by Jason Caldwell
Yes, please direct them to our forum, and specifically to this article in the s2Member Codex:
viewtopic.php?f=40&t=12455&src_doc_v=110913

Re: Free Download Stopped Working

PostPosted: September 16th, 2011, 4:25 pm
by denvert
Thanks Jason.