Saturday, May 11, 2013

Upgrade Moodle versi 2.3.3 > 2.4.3+

Sesuai judul diatas, saat mencoba melakukan upgrade, saya mendapatkan pesan error seperti ini:
Mixed Moodle versions detected, upgrade cannot continue
The Moodle update process has been paused because PHP scripts from at least two major versions of Moodle have been detected in the Moodle directory.
This can cause significant problems later, so in order to continue you must ensure that the Moodle directory contains only files for a single version of Moodle.
The recommended way to clean your Moodle directory is as follows:
  • rename the current Moodle directory to "moodle_old"
  • create a new Moodle directory containing only files from either a standard Moodle package download, or from the Moodle CVS or GIT repositories
  • move the original config.php file and any non-standard plugins from the "moodle_old" directory to the new Moodle directory
When you have a clean Moodle directory, refresh this page to resume the Moodle update process.
This warning is often caused by unzipping a standard Moodle package over a previous version of Moodle. While this is OK for minor upgrades, it is strongly discouraged for major Moodle upgrades.
This warning can also be caused by an incomplete checkout or update operation from a CVS or GIT repository, in which case you may just have to wait for the operation complete, or perhaps run the appropriate clean up command and retry the operation.
Padahal, langkah-langkah seperti yang dianjurkan (recommended way) seperti pada pesan error tersebut sudah dilakukan. Tetapi, tetap pesan error yang muncul tetap sama.

Setelah Googling, saya mendapatkan alamat ini. Ada posting yang tampaknya berhasil bagi orang lain, tapi saya tidak mengerti jika diterjemahkan jadi bahasa Indonesia. Kalimatnya begini :
Upload the 2.4 to de site and ONLY your configuratie file and theme files, he will see the config and start the update
Terjemahan versi saya, mungkin begini : "Upload versi 2.4 ke site Moodle, dan HANYA file konfigurasi dan file tema, lalu Moodle akan melihat konfigurasi yang ada dan memulai proses update."

Ternyata maksudnya adalah  : "Upload versi 2.4 ke site Moodle, LALU upload file konfigurasi sebelumnya (previous working configuration file) dan folder themes-nya SAJA"

Setelah itu, refresh halamannya. Voila... proses upgrade pun berjalan mulus !

Satu lagi, jika Anda menggunakan Linux seperti saya, maka Anda bisa melihat di halaman ini. Untuk langkah upload custom mod, HANYA lakukan jika Anda memiliki custom mod. Jangan folder mod-nya yang ikutan di-upload. Sebab, jika ya, maka proses update akan gagal saat deteksi modul-modul Moodle.

Selamat mencoba!

Referensi :
https://tracker.moodle.org/browse/MDL-34046
http://docs.moodle.org/24/en/Upgrading
Post a Comment