Title: APS Not executing
Last modified: August 12, 2021

---

# APS Not executing

 *  Resolved [mattsmith23](https://wordpress.org/support/users/mattsmith23/)
 * (@mattsmith23)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/aps-not-executing/)
 * It was working just fine, but it suddenly stopped working.
 * In the logs it only shows
    2021-08-12 23:29:27 – Auto Post Scheduler Enabled!
   2021-08-12 23:29:27 – DEBUG: First wp_next_scheduled for 2021-08-12 23:34:27 .
 * But it never actually tries to do the run, I guess the cron job is no longer 
   working.
    I check wp-cron and it is working fine, if I try to “run now” the aps_auto_post_hook
   job it does nothing, at least nothing is shown in the debugging logs.
 * I disabled wp-cron and enable a cron job to execute the wordpress cron manually
   but no results.
 * If I restart the pluging the next execution time is fine, but it never get’s 
   executed at that time
 * Current server time:2021-08-12 23:37:08
    Next auto post check:2021-08-12 23:34:
   27
 * Then the current server is > than the next auto post exec.
 * Can you provide some instructions on how can I better debug this?

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

 *  Plugin Author [johnh10](https://wordpress.org/support/users/johnh10/)
 * (@johnh10)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/aps-not-executing/#post-14765240)
 * Install a cron plugin like WP-Crontrol, then check your cron events. If APS event
   is missing, another plugin is not behaving correctly. If the times to next events
   are negative, then your server cron job call is not correct.
 * [screenshot](https://i.imgur.com/i7m1S9d.jpg?1)
 *  Thread Starter [mattsmith23](https://wordpress.org/support/users/mattsmith23/)
 * (@mattsmith23)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/aps-not-executing/#post-14766522)
 * I can see the job in WP-Control, by clicking in “run now” it changes the next
   execution date to
    Next auto post check:1970-01-01 00:00:01
 * Here’s how it is shown in WP-Control
 * > [View post on imgur.com](https://imgur.com/ZKR1O85)
 *  Thread Starter [mattsmith23](https://wordpress.org/support/users/mattsmith23/)
 * (@mattsmith23)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/aps-not-executing/#post-14766524)
 * Actually when I click in run now it duplicates the hook with a new one.
 * > [View post on imgur.com](https://imgur.com/aNHGYKk)
 *  Thread Starter [mattsmith23](https://wordpress.org/support/users/mattsmith23/)
 * (@mattsmith23)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/aps-not-executing/#post-14766568)
 * Running
    wp cron event run aps_auto_post_hook;
 * Manually in the cli runs the plugin fine, so pretty sure it is not a problem 
   with the plugin.
 * Thanks for the help

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

The topic ‘APS Not executing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/auto-post-scheduler_bfcacf.svg)
 * [Auto Post Scheduler](https://wordpress.org/plugins/auto-post-scheduler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auto-post-scheduler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auto-post-scheduler/)
 * [Active Topics](https://wordpress.org/support/plugin/auto-post-scheduler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auto-post-scheduler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auto-post-scheduler/reviews/)

## Tags

 * [cron](https://wordpress.org/support/topic-tag/cron/)

 * 4 replies
 * 2 participants
 * Last reply from: [mattsmith23](https://wordpress.org/support/users/mattsmith23/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/aps-not-executing/#post-14766568)
 * Status: resolved