The 'do_pings' action causes the maximum execution time error in wp-cron.php
-
I keep getting the following error.
[13-Jun-2014 00:26:47 UTC] PHP Fatal error: Maximum execution time of 30 seconds exceeded in ...\wp-includes\class-http.php on line 1375 [13-Jun-2014 00:26:47 UTC] PHP Stack trace: [13-Jun-2014 00:26:47 UTC] PHP 1. {main}() ...\wp-cron.php:0 [13-Jun-2014 00:26:47 UTC] PHP 2. do_action_ref_array() ...\wp-cron.php:100 [13-Jun-2014 00:26:47 UTC] PHP 3. call_user_func_array() ...\wp-includes\plugin.php:546 [13-Jun-2014 00:26:47 UTC] PHP 4. do_all_pings() ...\wp-includes\plugin.php:546 [13-Jun-2014 00:26:47 UTC] PHP 5. do_enclose() ...\wp-includes\comment.php:2067 [13-Jun-2014 00:26:47 UTC] PHP 6. wp_get_http_headers() ...\wp-includes\functions.php:506 [13-Jun-2014 00:26:47 UTC] PHP 7. wp_safe_remote_head() ...\wp-includes\functions.php:602 [13-Jun-2014 00:26:47 UTC] PHP 8. WP_Http->head() ...\wp-includes\http.php:112 [13-Jun-2014 00:26:47 UTC] PHP 9. WP_Http->request() ...\wp-includes\class-http.php:414 [13-Jun-2014 00:26:47 UTC] PHP 10. WP_Http->_dispatch_request() ...\wp-includes\class-http.php:249 [13-Jun-2014 00:26:47 UTC] PHP 11. WP_Http_Curl->request() ...\wp-includes\class-http.php:333
For this, other scheduled tasks often do not complete. If I add the following code, the other scheduled tasks flawlessly complete.
if ( isset( $_GET['doing_wp_cron'] ) ) { remove_action( 'do_pings', 'do_all_pings' ); }
However, this disables the ‘do_pings’ task all the time. I’d like to disable it only my tasks are triggered in wp-cron.php.
Does anybody know how?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘The 'do_pings' action causes the maximum execution time error in wp-cron.php’ is closed to new replies.