WordPress: Download failed.: Operation timed out

Barusan gagal upgrade otomatis WordPress dari 2.8.1 ke 2.8.2 via Dashboard, mungkin karena bandwidth yang sedang penuh. Error message-nya seperti dibawah ini:

Downloading update from http://wordpress.org/wordpress-2.8.2.zip.

Download failed.: Operation timed out after 60000 milliseconds with 1267200 out of 2355394 bytes received

Installation Failed

Googling, dan solusinya adalah:

Edit file wp-admin/includes/file.php,

Cari $response = wp_remote_get($url, array('timeout' => 60));
(di wp-2.8.1 ada dibaris 448)

Naikkan nilai timeout-nya sesuai kebutuhan, saya mengubahnya menjadi 120,
$response = wp_remote_get($url, array('timeout' => 120));

Kemudian lakukan upgrade lagi via dashboard, berhasil!

Downloading update from http://wordpress.org/wordpress-2.8.2.zip.

Unpacking the update.

Verifying the unpacked files

Installing the latest version

Upgrading database

WordPress upgraded successfully

beres dah!

13 Comments

Leave a Reply