Cron Schedule Not Updating & “Reschedule Report” Button Issues (Stripe Reports) #8033
Unanswered
jmason84
asked this question in
Developer Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve built a custom GiveWP addon that generates daily email reports based on Stripe transactions. I’m running into two persistent issues: cron scheduling not updating and the “Reschedule Report” button not reliably rendering or working. I would really appreciate insight from anyone familiar with GiveWP internals or WordPress cron!
Problem 1: Cron Schedule Not Updating
Goal:
Let users pick a time (via admin UI) for when the daily Stripe report email is sent.
Issue:
No matter what time is set in the UI (for example, 2:00 PM), the cron event (give_email_reports_stripe_daily_email) stays at the previous time (such as 1:00 PM). Saving settings and manually trying to reschedule don’t update the scheduled event. Debug logs confirm the correct value is saved to the options table, but the cron continues to fire at the wrong time.
Key Code (class-stripe-daily-report-email.php, schedule_emails):
Problem 2: “Reschedule Report” Button – Missing or Non-functional
Goal:
Display a button in the settings UI so admins can manually reschedule the cron event.
Symptoms:
The button is frequently missing from the settings page.
When it does show up, clicking it doesn’t always reschedule the cron event.
Console/logs show errors such as: [Give Stripe Daily Report] Time field not found in DOM...
Key Code (class-stripe-daily-report-email.php, force_render_reschedule_button):
The button’s HTML is definitely being generated, but it’s not always visible or functional.
Plugin Structure
Other Notes
The cron schedule time remains at the old value regardless of UI changes.
Manual test emails do work and contain the correct Stripe data/time range.
Using the latest code. I can provide diffs or full source if helpful.
Posting here per GiveWP support recommendation.
Request
Would appreciate any pointers on:
Beta Was this translation helpful? Give feedback.
All reactions