Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter joseffb

    (@joseffb)

    For more info, I’m trying to run a script in a parallel process. It runs fine when embedded in the theme page but goes to wp-signup?new= when I initiate it in it’s own process.

    details on multiple processes here:

    http://www.php-code.net/2010/05/running-multiple-processes-in-php/

    Try wp-load.php instead. wp-blog-header,php does some pre-setup for loading the front end of the site (ex. theme) which you shouldn’t need for the external script.

    Also, make sure that you are using a url to an existing site in the network.

    If you want people who work with WP networks/multisite to see your thread, use the multisite section of the support forum: http://wordpress.org/support/forum/multisite

    Thread Starter joseffb

    (@joseffb)

    I was using

    define('WP_USE_THEMES', false);
    require_once("/home/html/site/wp-load.php");

    It still errored out. I’m loading from the directory side, should i be loading another way?

    in the header I have:

    $commands = array('/dir/bin/php home/html/site/scripts/sql-update.php');

    This is basically an on demand cron job. So I guess I can ask how do you run a script via cron on MU without it error with redirect.

    If you are running it from cron, then cron is most likely using the IP address (or localhost) for the hostname.

    Have a look at the sunrise.php in http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Anyone figure out how to get around MU admin redirect on external scripts?’ is closed to new replies.