Barusan aku gagal upgrade otomatis WordPress dari 2.8.4 ke 2.8.5 via Dashboard, mungkin karena bandwidth yang sedang penuh ataupun koneksi dari server tempat aku hosting ke server wordpress lagi lambat.
Error message-nya seperti dibawah ini:
Downloading update from http://wordpress.org/wordpress-2.8.5.zip.
Download failed.: Operation timed out after 60000 milliseconds with 641464 bytes received
Installation Failed
Coba cari2 di Google, akhirnya nemu solusinya adalah dengan cara:
Edit file wp-admin/includes/file.php
Cari baris code yang mengandung tulisan dibawah ini
$response = wp_remote_get($url, array('timeout' => 60));
Kalau di versi 2.8.4 ada di baris 448. Naikkan nilai timeout-nya sesuai kebutuhan, ditempatku aku ubah jadi 120 seperti dibawah ini :
$response = wp_remote_get($url, array('timeout' => 120));
Kemudian lakukan upgrade lagi via dashboard, dan … tadaaaaaaaaaaa … BERHASIL !
Downloading update from http://wordpress.org/wordpress-2.8.5.zip.
Unpacking the update.
Verifying the unpacked files
Installing the latest version
Upgrading database
WordPress upgraded successfully
Selamat mencoba.
Picture tribute to : http://divageekdesigns.com/blog/wp-content/uploads/wordpress-logo1.png
Related posts:
yah, begitulah. security wordpress terlalu jelek. apalagi Spammer.