Fatal error: Maximum execution time of 30 seconds exceeded in

Fatal error: Maximum execution time of 30 seconds exceeded in

致命错误:超过 30 秒的最长执行时间 -

D:\xampp\htdocs\website.com\wp-includes\class-http.php on line 1513

1513 line $theHeaders = WP_Http::processHeaders( $this->headers, $url );

似乎 $this->headers 持有大量 headers。 WP 函数循环遍历 headers 以处理它们。要么增加 ini 中的执行时间,要么增加 ini_set(我不推荐),或者检查为什么 $this->headers 需要这么长时间来处理。

并且,添加更多代码,单行代码将无法让 SO 用户检测到问题的根本原因。