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








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