• I’ve created a cron job to call wp-cron.php at frequent intervals:
    wget -q -O - https://spirit-gallery.com/staging/wp-cron.php?doing_wp_cron >/dev/null 2>&1

    The server logs indicate that it fires:
    192.81.170.9 - - [03/Jun/2018:12:50:11 -0400] "POST /staging/wp-cron.php?doing_wp_cron=1528044611.4166240692138671875000 HTTP/1.1" 200 - "https://spirit-gallery.com/staging/wp-cron.php?doing_wp_cron=1528044611.4166240692138671875000" "WordPress/4.9.6; https://spirit-gallery.com/staging"

    I’ve come across a few suggestions on the internet that itsec blocks WGET and to either disable via wp-config or the itsec .inc files at …wp-content/plugins/better-wp-security/core/modules/ban-users/lists/ No signs of the line of code that I’m supposed to remove, so figure this is an old feature.

    So, the cron job appears to fire, but the scheduled tasks under wp-cron do not run. Is there something in my iThemes Security settings blocking the implementation?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Have you tried deactivating the iTSec plugin ?
    It might help exclude the iTSec plugin as a possible cause.

    Thread Starter jminnie

    (@jminnie)

    Thanks for the suggestion. Yes, when I disable iTSec, the 14 cron jobs that were supposed to have fired sometime during the night and did not were successfully run.

    Does this message mean anything?
    “The DISABLE_WP_CRON constant is set to true. WP-Cron spawning is disabled.”
    Obviously, the first part makes sense, but wondering if ‘spawning’ is a factor in my issues?

    That message is probably generated by the WP Crontrol plugin.
    It should say “WP-Cron spawning initiated from WordPress is disabled”.
    WP-Cron spawning is actually enabled using wget.

    When switching from WordPress calling the wp-cron.php script (on every page request) to scheduling it using wget it makes sense to set the DISABLE_WP_CRON to true in the wp-config.php file.

    Not sure why the iTSec plugin is preventing scheduled cron tasks to run when initiating the wp-cron.php script using wget …

    Oh, spawning means run scheduled tasks…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘cron job blocked by itsec?’ is closed to new replies.