• I just noticed the message: “There was a problem spawning a call to the WP-Cron system on your site. This means WP-Cron events on your site may not work. The problem was: Unexpected HTTP response code: 404”

    I have no idea why this happened and no idea how to debug it. I installed several plugins but they all say it’s not working, but not one gives a clue on how to fix it.

    Any tips on how to debug it ? Or how to setup a custom cron through my webhost ?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator Marius L. J.

    (@clorith)

    Hi,

    This file is actually needed even if you set things up on your web host, as they rely on the file as well.

    What you could try is going to Dashboard > Updates, there’s a Re-install button (don’t worry, it only re-installs WordPress’ core files, it doesn’t touch your configurations, content and such).

    Thread Starter Beee

    (@beee)

    I know what it’s for ?? I just don’t know how to debug any cron errors….
    Never encountered anything like this.

    I already re-uploaded wp through FTP and loaded /wp-cron.php in the browser.
    I also activated a free external cron service and it seems it got picked up now, but wp-cron is still seen as a 404.

    Moderator Marius L. J.

    (@clorith)

    So just to make sure I understand you correctly.

    If you visit the wp-cron.php file directly in your browser, you see the file as expected, but if WordPress tries to sue it, it fails?

    Thread Starter Beee

    (@beee)

    no i get a blank screen if I check without https and an error if I check with https.

    Moderator Marius L. J.

    (@clorith)

    The 404 page you are seeing, is it styled like your WordPress website, or is it more generic? (I am presuming the error you just referenced is still the 404 error)

    Thread Starter Beee

    (@beee)

    Thread Starter Beee

    (@beee)

    wp-cron is now disabled in wp-config.php because I set an alternative one up through easycron (free package = 200 crons per day)

    Thread Starter Beee

    (@beee)

    I enabled it again, because the external service couldn’t reach the cron either so now it’s in 404 again.

    I’m wondering though what did trigger it, since all my crons now last run about a day ago instead of almost 6 months.

    Thread Starter Beee

    (@beee)

    I disabled it again and now setup a cron on my server. See what that does.

    I did notice it doesn’t go in error on my local install (which is identical in code), so it must be something server related.

    Thread Starter Beee

    (@beee)

    Oh and I added a die command on the live server and then loaded the file and I saw the die command so the file is reachable, so don’t understand why it would result in 404.

    Thread Starter Beee

    (@beee)

    Can htaccess be involved ? I don’t think so, since the exact same code works local.

    Thread Starter Beee

    (@beee)

    I noticed doing_cron is constantly defined as yes and thus wp-cron.php dies early.

    Anyone know how to solve this ?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Cron gives 404’ is closed to new replies.