• Resolved Leinad4Mind

    (@leinad4mind)


    Btw I’ve manually added an user to a Level group and put is expiration date to the next day. So on 26 Jan, I put 27 Jan. We’re now on 29 and the users wasn’t remvoed from the level group after the expiration date gone by.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Leinad4Mind

    (@leinad4mind)

    Could it be from the cron job being block by my host?

    Plugin Author Jason Coleman

    (@strangerstudios)

    It could be cron related. The expiration script runs once per day via “WP_CRON”. If your site has little traffic or something else is keeping the WP_CRON from firing properly, then the expirations won’t happen.

    There is some information here on how to setup a real cron job to trigger WP_CRON stuff more consistently: https://tommcfarlin.com/wordpress-cron-jobs/

    Let me know if that helps. There are other things that can sometimes go wrong… e.g. if the site times out running too many expirations at once or if something else is erroring out while trying to run the script.

    If you are a developer and want to debug a bit, you can write some custom code to run the pmpro_cron_expire_memberships() function on/after init while logged in as an admin: https://github.com/strangerstudios/paid-memberships-pro/blob/dev/scheduled/crons.php#L6

    Thread Starter Leinad4Mind

    (@leinad4mind)

    I’ve disable WP cron and enable it on my host siteground: https://www.siteground.com/tutorials/wordpress/setup-cron-job.htm

    I’ll do more tests. Hope all runs fine.

    Thread Starter Leinad4Mind

    (@leinad4mind)

    Ok, it worked. The Levels are finally working great now.
    Thanks for the support.

    Btw, is there any way/trick to have like 2 groups in 1 subscription.

    Example. User1 subscribes to Level ID 1 (with renew value), and that level would put the user1 in 2 groups. VIP (group selected) and Special group.
    After the expiration of that Level ID 1 the user would be moved to the Special Group.

    Is that possible? Instead of removing the group, changing to another group? Or maybe changing to a Level ID 2 named Special, and then changing to that Level instead of removing?

    Best Regards

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Expiration doesnt work!’ is closed to new replies.