• Resolved mattsmith23

    (@mattsmith23)


    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

    (@johnh10)

    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

    Thread Starter mattsmith23

    (@mattsmith23)

    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

    Thread Starter mattsmith23

    (@mattsmith23)

    Actually when I click in run now it duplicates the hook with a new one.

    View post on imgur.com

    Thread Starter mattsmith23

    (@mattsmith23)

    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.