Using Moodle v3.9.4 and Moove theme I started getting Exception thrown for all users, thus nobody is able to login not even admin.
Only solution is to purge all cache via CLI.
It happened yesterday at around 15.00 and today at 7h something.
I can only find this topic https://moodle.org/mod/forum/discuss.php?d=394001 that talks directly about this, but user didnt have same Moodle version or same theme installed.
After going through php's, only mention of this Exception is at two places in /lib/geopattern-php/GeoPattern/GeoPattern.php@94 & @104.
Problem is, both lines have same error, which is imo sign of bad code and I cannot repeat this Exception by hand, would need to wait again for error to return on its own. Unless somebody knows when this thing gets triggered. I tried looking for reference in the rest of the Moodle code but unable to find any.
I went ahead and added few lines that avoid throwing Exception and simply return some random hardcoded hex color. I know this is not optimal, but I really cant have this errors in the middle of exam period..