WordPress.org

Ready to get started?Download WordPress

Forums

calling wp-cron through cmd line by a cron job error: Status: 302 Moved Temporar (1 post)

  1. davidjeanneret
    Member
    Posted 2 years ago #

    Hi Folks,

    I've got an up to date network install of the WordPress.

    I'm trying to set up a cron job (on my server) to call the wp-cron.php script so that scheduled backups (using backupbuddy if you're interested) occur overnight. I can't use wget or curl cos HTTP loopback requests are not allowed by my host.

    Two questions (one minor, one major)

    The minor one is: Do I have to use the Alternate Cron Method using define('ALTERNATE_WP_CRON', true); in wp-config.php in order for WordPress to succesfuly run scheduled jobs at all

    The major one is: when I call wp-cron.php from the command line using:
    /usr/bin/php5 /path/to/wp.cron.php
    I get the following result:

    Status: 302 Moved Temporarily
    X-Powered-By: PHP/5.2.17
    Location: http://www.hostingbydavid.co.uk/wp-signup.php?new=
    Content-type: text/html

    and http://dansgalaxy.co.uk/2010/11/15/wp-cron-and-multisite-headache/ recons it's something to do with WordPress needing wp-cron to be run on a site.

    Does wp-cron.php really need to know the site?
    The plugin schedules backups through the network admin - so I'm not even sure it has a site association

    Any Clues?

    Cheers

    David

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by davidjeanneret
  • This topic is not resolved
  • WordPress version: 3.3.1