I am using Moodle 4.0 on Linux Mint. I was creating some courses and the lights went off. When the lights came on I tried accessing moodle and I had this 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.
General developer forum
Hi Mark. I have been able to resolve the issue. It was with the cache files in the /var/moodledata/cache directory. I did not have permission to empty the folder so I used the command;
chmod -R 0777 /var/moodledata/cache to allow everyone access to the directory. I then deleted the files in the directory and it worked.