Reminders not running wp-cron

Viewing 2 reply threads
  • Author
    Posts
    • #4291
      Ryan Barrett
      Participant

      Hello,
      The organization I work with is running the “PTA Volunteer Sign-up Sheets” on wordpress 4.2.2.

      The issue we are having is with the reminders for events.
      We are able to run manually without issue (and I receive the admin email).

      The cron, however, does not seem to trigger it.

      The PTA cron job does not seem to be attached to the main cron job. Their site is hit thousands of times per day, and I’m sure the other cron jobs are running (updates and such are working as expected in other plugins)

      I have tested by adding a blank plugin with a hook to print the cron array “print_r( _get_cron_array())” (https://developer.wordpress.org/plugins/cron/simple-testing/). I have also tried running the cron manually by hitting the /wp-cron.php hourly from the systems crontab.
      I don’t see anything referencing the PTA Sign-up sheets nor anything scheduled hourly (all system functions or other pluginst that run daily/twicedaily).
      Please let me know if there is any other information I can provide to troubleshoot.

      I’m curious if you have any thoughts of something I can try to get this working? Thanks,

      -Ryan

    • #4307
      Stephen Sherrard
      Keymaster

      The CRON event is scheduled within the activation hook, and the handle for the job is:
      pta_sus_cron_job

      I like the plugin Crontrol for examining Cron events and rescheduling them or forcing them to run.

      If you are not seeing that Cron function, then something may have prevented it from being set up properly when you first installed the plugin. So, you may want to first try simply deactivating it and then reactivating it, which should schedule the function again.

      If that still doesn’t work, then perhaps there is some other plugin causing some weird conflict that is preventing the cron job from getting registered? Hard to say as it is working fine on my development server as well as my son’s school PTA web site.

      If it still isn’t showing up after deactivating/reactivating the plugin, you could use that Crontrol plugin to add an hourly cron job, with the hook being: pta_sus_cron_job
      and just leave the arguments set to none: []
      Then see if it works.

    • #4315
      Ryan Barrett
      Participant

      Thank you Stephen,
      Deactivate/Activate registered the pta_sus_cron_job.

      Thanks for your help.
      -Ryan

Viewing 2 reply threads
  • You must be logged in to reply to this topic.