Moodle error “Coding error detected, it must be fixed by a programmer : Failed to unserialise data from file. Either failed to read, or failed to write”

H3ll0,.

kebetulan di kantor untuk e-learningnya masih pake moodle dan sudah 2 kali muncul error seperti ini akibat dari ups untuk server tidak bekerja dengan baik. Pesannya ini terjadi setelah server tiba-tiba mati karena pasokan listrik yang tidak berdaya. tetapi hanya muncul di user selain administrator.

“Coding error detected, it must be fixed by a programmer : Failed to unserialise data from file. Either failed to read, or failed to write”.

Pesan ini muncul disebabkan karena file-file cache moodle yang tidak terhapus secara sempurna, normalnya cache akan di hapus ketika sudah tidak di butuhkan namun karena server mati mendadak maka file-file cache jadi “nyangkut”.

Solusinya ternyata cukup mudah :

  1. Cari dimana letak path moodledata,
  2. Lihat file config.php terutama pada baris “$CFG->dataroot = ‘var/moodledata’
  3. Copy dulu folder ‘var/moodledata/cache’ ke folder lain, jaga-jaga kalau tidak berhasil
  4. Kemudian hapus isi folder ‘var/moodledata/cache’
  5. File “core_component.php” tidak perlu di hapus…
  6. Refresh browser… tralaaa…. aman lancar

reference : https://malikmustofa.org/2021/09/28/ketika-moodle-ada-pesan-error-coding-error-detected-it-must-be-fixed-by-a-programmer-failed-to-unserialise-data-from-file-either-failed-to-read-or-failed-to-write/

Leave a Reply

Your email address will not be published. Required fields are marked *