Role Grant after expiry not working

2 replies [Last post]
Terrence
Offline
Joined: 01/20/2010
Status: 
Answered

Hi Leighton,

I've been running tests from my dev site with PayPal Sandbox and am seeing accounts expire on schedule and the purchased role getting removed on schedule, but the role that I set under "Role to Grant after Membership Role is removed" is not getting set. The odd thing is that there are log entries that say the role was granted, but the entry did not specify what role was granted.

Log entries (both are from the same cron run at midnight on the expiry date):
Removed role Test Member from Test4.
Added role to Test4.

I've double checked the plan definition and it is configured properly and I've seen this behavior repeated twice with different test users and different test plan definitions. Both of these were term plans and the expiry is due to 'natural causes' and not cancellation.

Any ideas?

Thanks,
Terrence

Leighton Whiting
Offline
Joined: 06/02/2009
Terrence, I tracked this bug

Terrence,
I tracked this bug down, it was a problem where array_unshift() was resetting the keys of the roles array, causing it to store invalid role ids sometimes. I fixed it and will be rolling it out in version 5.9.

Sincerely,
Leighton Whiting

Terrence
Offline
Joined: 01/20/2010
Thanks, Leighton

Thanks, Leighton,

You must be a busy man right now with the new core development and your bug squasher still works swiftly!

Thanks for the quick response!
Terrence

Twitter Feed