Dec
24
2009

WordPress2.9の不具合

11:45 am

スケジュール投稿ができないという不具合があるようです。
対応策は、wp-cron.phpのtimeoutを0.01から、例えば10とか20とかの数値に変更してあげれば良いようです。
試しにスケジュール投稿してみましたが、自分の場合は問題ありませんでした。
使っているサーバーによるのかも知れませんね。

Many users have reported that 2.7 cron sometimes fails to publish future
post.
And it is further reported that it depends on the number of jobs on the
cron queue – when the queue is too long, it will miss some.

I believe this is because we set the timeout value too short:

wp_remote_post($cron_url, array(‘timeout’ => 0.01, ‘blocking’ => false));

When making a request to wp-cron.php, it won’t return until all cron jobs
are executed. And 0.01 is just too short time span. It doesn’t hurt to
give it sufficent time, such as 10 minutes. It will return as long as the
mature crons are fired up and executed (in most cases, it’s going to be at
most a few seconds ).

以下のアナウンスが出てました。一部のバージョンの PHP の組み合わせで起こる現象のようです。XserverのPHPでは起こらない現象だったようです。

残念なことに、先日の 2.9 リリースと一部のバージョンの PHP の組み合わせで cURL 拡張に関するバグが起こることが判明しました。該当するバージョンの cURL では、予約投稿およびピンバックが正しく処理されません。組み合わせで cURL 拡張に関するバグが起こることが判明しました。該当するバージョンの cURL では、予約投稿およびピンバックが正しく処理されません。

No Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

www.hbirds.net