PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Manual End of Term (EOT) not processed

s2Member Plugin. A Membership plugin for WordPress®.

Manual End of Term (EOT) not processed

Postby PseudoNyhm » July 12th, 2011, 10:55 am

I manually set a user's Automatic End of Term field to a date in the past (several days in the past). However, they are still Level 1 (should have been demoted to Level 0).

Is EOT something that is processed periodically (wp-cron)? If so, how long should I await the change to be noticed? Is there a way to tell s2Member to check an EOT immediately?
User avatar
PseudoNyhm
Experienced User
Experienced User
 
Posts: 79
Joined: June 19, 2011

Re: Manual End of Term (EOT) not processed

Postby Cristián Lávaque » July 12th, 2011, 1:10 pm

Jason Caldwell wrote:
(1) Will the cron job ignore an imported Automatic-EOT date we set to, say, 6 months ago? (Or did we simply not wait long enough for the cron job to run?)
Yes, s2Member will process all EOTs, even if the dates are in the past. The Auto EOT system will look for Users with an EOT Time that is less than or equal to the current time, at the time the WP-Cron process is running. So the answer to this question is no, s2Member will NOT ignore them, they will be processed. You probably just didn't give the WP-Cron system enough time.


You could try using the 'ws_plugin__s2member_during_configure_user_registration_admin_side' and 'ws_plugin__s2member_during_users_list_update_cols' to run the EOT behavior using /?s2member_auto_eot_system_via_cron=1 at the time the admin creates/modifies the account.

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Manual End of Term (EOT) not processed

Postby PseudoNyhm » July 12th, 2011, 2:08 pm

Ah, I see that impatience won out. Sorry to pester you with this before waiting long enough. (Note to myself: Make coffee with half decaf.)

Awaiting wp-cron should be perfectly fine, but thank you for the technical pointers to forcing the processing.

By the way, here is what I was testing when I came across this.
User avatar
PseudoNyhm
Experienced User
Experienced User
 
Posts: 79
Joined: June 19, 2011

Re: Manual End of Term (EOT) not processed

Postby Cristián Lávaque » July 12th, 2011, 10:48 pm

:)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron