Note: You are currently viewing documentation for Moodle 3.1. Up-to-date documentation for the latest stable version of Moodle is probably available here: error/moodle/nocontext.
This is a very unusual error. It should never happen in normal operation.
If you see this error, one thing to try is to check your database for corruption.