Ping Problem?

Since version 2.7 of WordPress, there have been several issues that Pingbacks in WordPress don’t work. WordPress works with it in the request-function (wp-includes/cron.php), not to be confused with the wp-cron.php. There is a time limit of 0:01 seconds set, which is not sufficient under all conditions. It is known and the developers of WordPress have not changed the entry intentionally, with the reference that it runs smoothly under many configurations, see Trac ticket 8923.

This problem in 2.8 continues to be an issue in various installations. Who wants to change the value should set it to 1, and should no longer have problems. All other users can only hope that it will be changed in 2.8.1.

Original code in WordPress 2.8

$cron_url = get_option( 'siteurl' ) . '/wp-cron.php?doing_wp_cron';
wp_remote_post( $cron_url, array('timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters('https_local_ssl_verify', true)) );

after change the value

	
$cron_url = get_option( 'siteurl' ) . '/wp-cron.php?doing_wp_cron';
wp_remote_post( $cron_url, array('timeout' => 1, 'blocking' => false, 'sslverify' => apply_filters('https_local_ssl_verify', true)) );

Posted

in

by

Comments

11 responses to “Ping Problem?”

  1. Fabian Avatar

    Be careful, you write in English;-)

    How can I test whether my blog has a Ping-Problem?

  2. Christian Schenk Avatar

    Hi Frank,

    don’t want to be picky but what about replacing “Original…” and “Änderung…” with the english counterpart? 😉

    Regards,
    Christian

  3. Michael Avatar

    Fixed, thanks Christian 😉

  4. Christopher Ross Avatar

    As usual, thanks Frank! These little hacks are a lifesaver for us.

  5. Vitor Hugo Avatar

    Good to know! Everytime I upgrade WP this issue comes back, again. With 2.8 wasn’t surprise, my ping/track are not working at all.

    I hope this hack fix it! 🙂 Thanks.

  6. Jacek Krużycki Avatar

    Hi,
    Nice solution but… not working for my WP 2.8 🙂

  7. Vasil Toshkov Avatar

    I have a problem with rpc pings since version 2.8. The system do not wants to ping. I have tried on five diferrent hosting companies – the same problem. This fix doesn’t work. Any other ideas?

  8. Brad Touesnard Avatar

    If you are hosted on Media Temple (dv) or using Plesk, I’ve written a blog post describing the problem and how to fix it.
    http://bradt.ca/archives/fix-wordpress-missed-schedule-error-on-media-temple-dv-plesk/

  9. flash Avatar

    this bug isn’t resolved again with Wp 2.9.2 @_@
    thanks a lot for your share!*

  10. flash Avatar

    and also i put a cronjob like Brad said 😉