Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write. by Web Developer - Thursday, 12 November 2020, 5:45 PM Number of replies: 3 If any one get this error then there is a simple way to solve this issue:delete the cache folder from your moodledata directory and reload your website Average of ratings: Useful (3) Permalink Reply In reply to Web Developer Re: Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write. by lior gil - Sunday, 23 May 2021, 3:34 PM Manually deleting the folder is more of the last resort type. I would first try doing it through the built in option. Either through the web page /admin/purgecaches.phpOr the CLI php moodle/admin/cli/purge_caches.php Average of ratings: Useful (1) Permalink Show parent Reply In reply to Web Developer Re: Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write. by Kurt Armbruster - Thursday, 10 March 2022, 5:51 AM I tried the solution from here: https://coderwall.com/p/py-nba/moodle-easy-solution-to-failed-to-unserialise-data-from-file-either-failed-to-read-or-failed-to-writeWhen I run php /moodle/admin/cli/purge_caches.php from my xampp console, I get the exact same "failed to unserialize" message in the console that shows up in a browser.And when I look in moodledata/cache, it's empty.Even .../admin/purgedata.php gets the error: Average of ratings: - Permalink Show parent Reply In reply to Kurt Armbruster Re: Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write. by Kurt Armbruster - Thursday, 10 March 2022, 6:49 AM Issue resolved. As it happens, I had 2 folders that were labeled moodledata. I had cleared the cache in the wrong folder. Average of ratings: Useful (2) Permalink Show parent Reply
In reply to Web Developer Re: Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write. by lior gil - Sunday, 23 May 2021, 3:34 PM Manually deleting the folder is more of the last resort type. I would first try doing it through the built in option. Either through the web page /admin/purgecaches.phpOr the CLI php moodle/admin/cli/purge_caches.php Average of ratings: Useful (1) Permalink Show parent Reply
In reply to Web Developer Re: Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write. by Kurt Armbruster - Thursday, 10 March 2022, 5:51 AM I tried the solution from here: https://coderwall.com/p/py-nba/moodle-easy-solution-to-failed-to-unserialise-data-from-file-either-failed-to-read-or-failed-to-writeWhen I run php /moodle/admin/cli/purge_caches.php from my xampp console, I get the exact same "failed to unserialize" message in the console that shows up in a browser.And when I look in moodledata/cache, it's empty.Even .../admin/purgedata.php gets the error: Average of ratings: - Permalink Show parent Reply In reply to Kurt Armbruster Re: Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write. by Kurt Armbruster - Thursday, 10 March 2022, 6:49 AM Issue resolved. As it happens, I had 2 folders that were labeled moodledata. I had cleared the cache in the wrong folder. Average of ratings: Useful (2) Permalink Show parent Reply
In reply to Kurt Armbruster Re: Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write. by Kurt Armbruster - Thursday, 10 March 2022, 6:49 AM Issue resolved. As it happens, I had 2 folders that were labeled moodledata. I had cleared the cache in the wrong folder. Average of ratings: Useful (2) Permalink Show parent Reply