Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › How to Deal With Membership Renewal, Upgrade and Expiration
Tagged: Cancel membership, membership
- This topic has 21 replies, 6 voices, and was last updated 4 years, 11 months ago by admin.
-
AuthorPosts
-
December 9, 2019 at 2:44 pm #56135RickSpectator
Thanks.
I have been tracking the cron logs every day. That part seems to be working. I have not seen this message this month: “The following users will receive the before expiry email notification”
This morning I reset the “Number of days before the account expiry when the reminder notification is sent (default: 10 days)” to 21.
All memberships expire 2019-12-31 – when will the cron job initiate notifications?
12/31 – 21 = Dec 10th? Dec 9th? Dec 11th?
(The cron job apparently runs at 11:30am-ish my time, if that makes a difference on the date of notification.)
I will open the logs after 1:00pm for and tomorrow, then search for the phrase “following users will” and the single word “reminder”.
_______________
[12/07/2019 11:41 AM] – SUCCESS :eMember cronjob – wp_eMember_auto_migrate()
[12/07/2019 11:41 AM] – SUCCESS :eMember cronjob – wp_eMember_cron_email()
[12/07/2019 11:41 AM] – SUCCESS :End of wp_eMember_cron_email() function
[12/08/2019 11:43 AM] – SUCCESS :Auto expiry email notification feature is enabled. Checking user account expiry details…
[12/08/2019 11:43 AM] – SUCCESS :Checking membership level: 3. fixed date : 2019-12-31
[12/08/2019 11:43 AM] – SUCCESS :Checking membership level: 5. fixed date : 2019-12-31
[12/08/2019 11:43 AM] – SUCCESS :Checking membership level: 6. fixed date : 2020-12-31
[12/08/2019 11:43 AM] – SUCCESS :Checking membership level: 7. fixed date : 2020-12-31
[12/08/2019 11:43 AM] – SUCCESS :Checking membership level: 8. fixed date : 2021-12-31
[12/08/2019 11:43 AM] – SUCCESS :Checking membership level: 9. fixed date : 2021-12-31
[12/08/2019 11:43 AM] – SUCCESS :Checking membership level: 10. fixed date : 2022-12-31
[12/08/2019 11:43 AM] – SUCCESS :Checking membership level: 11. fixed date : 2022-12-31
[12/08/2019 11:43 AM] – SUCCESS :===*** wp_eMember_auto_upgrade() Start ***===
[12/08/2019 11:43 AM] – SUCCESS :Checking member profile with member ID:1, Username: Micky
[12/08/2019 11:43 AM] – SUCCESS :
End of foreach (Member ID: 1)
(etc…)
December 10, 2019 at 12:03 am #56136adminKeymasterThe cronjob is running so that is good. Given the condition you have set, I would say the expiry notification should trigger on the 10th or 11th (21 days to end of 31st December).
Here is a little technique that you can use to create a test member profile that will expire sooner than 21 days then manually trigger the cronjob to run. The following tutorial will show you how you can view the existing conjobs of your site and manually run it whenever you want to:
https://www.tipsandtricks-hq.com/view-and-control-wordpress-cron-jobs-11370
You can run the following eMember’s cronjob which does the expiry email notification check:
wp_eMember_email_notifier_event
December 10, 2019 at 12:43 pm #56137RickSpectatorPlease confirm that the correct script is installed (and running) to create and send the advance notification:
I found two scrips with the word “eMember” in the Hook Name. They are both scheduled to run once a day:
* wp_eMember_email_notifier_event
* wp_eMember_scheduled_membership_upgrade_event
PS: Thank you for introducing me to the cron job tool. Kudos for the information, and the video, on the link you included. Well Done!
December 10, 2019 at 6:19 pm #56138RickSpectatorProgress report: You wrote, “Given the condition you have set, I would say the expiry notification should trigger on the 10th or 11th (21 days to end of 31st December).”
The event was not triggered at 11:45 on Dec 10th.
I changed the run time to 6:15 in the morning, and I will check again on Dec 11th.
Questions: How is time-of-day handled, and does it affect the renewal notices?
Or, is time-of-day simply ignored?
* My time zone = GMT-5
* My server time zone = GMT-6
* I configured eMember to use the WP default time zone
I do not know if the time-of-day is recorded when a member joins, or if it affects when the reminder is set.
Bottom line: When the cron job runs tomorrow at 6:00, will any membership due to expire on Dec 31 be sent a notice regardless of time-of-day when the account was created?
December 10, 2019 at 11:02 pm #56139adminKeymasterTime of day is ignored in this calculation.
December 11, 2019 at 2:22 pm #56140RickSpectatorHelp! Where do I go next?
You wrote, “Given the condition you have set, I would say the expiry notification should trigger on the 10th or 11th (21 days to end of 31st December).“
The event was not triggered at 11:39am on Dec 9th.
The event was not triggered at 11:45am on Dec 10th.
The event was not triggered at 1:20am on Dec 11th.
Note: we have 200+ members in membership level 3 whose accounts will expire on Dec 31.
[12/09/2019 11:39 AM] – SUCCESS :Auto expiry email notification feature is enabled. Checking user account expiry details…
[12/09/2019 11:39 AM] – SUCCESS :Checking membership level: 3. fixed date : 2019-12-31
[12/09/2019 11:39 AM] – SUCCESS :Checking membership level: 5. fixed date : 2019-12-31
[12/09/2019 11:39 AM] – SUCCESS :===*** wp_eMember_auto_upgrade() Start ***===
[12/10/2019 11:39 AM] – SUCCESS :Auto expiry email notification feature is enabled. Checking user account expiry details…
[12/10/2019 11:39 AM] – SUCCESS :Checking membership level: 3. fixed date : 2019-12-31
[12/10/2019 11:39 AM] – SUCCESS :Checking membership level: 5. fixed date : 2019-12-31
[12/10/2019 11:39 AM] – SUCCESS :===*** wp_eMember_auto_upgrade() Start ***===
[12/11/2019 1:20 AM] – SUCCESS :Auto expiry email notification feature is enabled. Checking user account expiry details…
[12/11/2019 1:20 AM] – SUCCESS :Checking membership level: 3. fixed date : 2019-12-31
[12/11/2019 1:20 AM] – SUCCESS :Checking membership level: 5. fixed date : 2019-12-31
[12/11/2019 1:20 AM] – SUCCESS :===*** wp_eMember_auto_upgrade() Start ***===
PS: I just reset the notification to 19 days before, so that should be tomorrow…
December 12, 2019 at 4:28 am #56141adminKeymasterBest if I can take a look inside the site. I will send you an email for it.
-
AuthorPosts
- You must be logged in to reply to this topic.