Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • SOLVED DEFINITELY.
    It was a DNS problem.
    wp-cron.php upgrades posts by calling with a socket the host in get_option(‘siteurl’). This hostname is your blog. If you dns does not answer right to you internal server the connection will fail and wp-cron.php will be not called.
    To solve this in my “home” server i set up bind9 and set it to answer to the internal requests of my domain with 127.0.0.1. Now it work like a charm.

    I think it’s not a problem with configuration of apache/mysql because if i call wp-cron.php directly it WORKS!

    So the problem is that nobody calls wp-cron.php and probably it’s a WordPress bug. I’ll investigate on this.

    the problem seems to be at the fsockopen step, i checked my php.ini file and i saw that it allows fsockopen functions.

    If it was a configuration problem either calling directly wp-cron.php should not work….

    SOLVED:
    With a brute hack, finally i got this feature working again. Sorry for the last 3 posts, but i’m making a lot of test and i reported each single progress.
    To solve it:

    chmod -R 775 * to set executable flag to each wp script.

    Then edit wp-cron.php and comment the following lines:

    #if ( $_GET[‘check’] != wp_hash(‘187425’) )
    # exit;

    #if ( get_option(‘doing_cron’) > time() )
    # exit;

    Then edit index.php and force the execution of wp-cron.php each time that the index.php webpage is loaded (yes i know that it will increase database calls… this is why it’s a brute hack). To do so change your index.php with this one:

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wp-cron.php’);
    require(‘./wp-blog-header.php’);
    ?>

    Now everyting should work, when the timestamp is reached && an user views your blog, it’s automatically updated with new posts.

    Ps: probably there should be a better solution, but for now it works…

    I tried to execute directly wp-cron.php and it didn’t work.
    Then i edited teh file and commented out the following lines

    #if ( $_GET[‘check’] != wp_hash(‘187425’) )
    # exit;

    Now when i start wp-cron.php it WORKS! It’ able to post automatically when the timestamp is reached.
    The only problem that remains is that it seems that wp-cron.php is not started automatically. In fact, if i start it, the blog is update with new posts, but it is not so if the script is not executed manually.

    Does anybody know which file calls wp-cron.php?

    Problem not solved even if i do a fresh install…

    same problem in my blog with wordpress 2.2

Viewing 6 replies - 1 through 6 (of 6 total)