I'm having problems with an installation of Moodle (created from a backup of the database and moodledata).
When any user logs on, they are met with a blank page. Nothing at all - page source is also empty. If they then use the browser 'back' button and click on the 'Portal' crumb on the top-left they are in and Moodle works fine.
I've turned the debugging on, and there are several errors, with this bringing up the rear:
Fatal error: Cannot access empty property in .../moodle/enrol/database/enrol.php on line 42
Can anyone suggest a solution? There are several pages on the Interweb referring to this but no solution that I can find.