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)) );
Comments
11 responses to “Ping Problem?”
Be careful, you write in English;-)
How can I test whether my blog has a Ping-Problem?
Hi Frank,
don’t want to be picky but what about replacing “Original…” and “Änderung…” with the english counterpart? 😉
Regards,
Christian
Fixed, thanks Christian 😉
As usual, thanks Frank! These little hacks are a lifesaver for us.
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.
Hi,
Nice solution but… not working for my WP 2.8 🙂
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?
[…] wpengineer.com […]
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/
this bug isn’t resolved again with Wp 2.9.2 @_@
thanks a lot for your share!*
and also i put a cronjob like Brad said 😉