後台搜尋 WP Plugin出現HTTP Error During the API Request

Author: Eric  //  Category: Free Teaching

00. 家裡的速度有時不夠快 (其實是在亂下載),在後台搜尋插件時如果超過5秒沒反應,就會出現An Unexpected HTTP Error occurred during the API request。

01. 找到 /wp_include/ 下的 http.php

02. Ctrl+F 找到

'timeout' => apply_filters( 'http_request_timeout', 5),

03. 把數字改大一點 (eg:120),單位是秒。

'timeout' => apply_filters( 'http_request_timeout', 120),

04. 存檔,就完成了,接下來就可以快樂的在後台搜尋Plugin了。 // 直到下一次的大改版
// 如果是放在虛擬主機的,要下載下來改,改完再上傳覆蓋

Tags: , , ,

Leave a Reply