Wildebeaste Posted March 1, 2010 Posted March 1, 2010 Hello folks, 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. Thanks.
paulgarratt83 Posted March 2, 2010 Posted March 2, 2010 Having checked the enrol.php file it might have something to do with roles. Do you still have the old moodle running. If so copy the enrol.php. Otherwise did you have another type of enrolment turned on. Only other thing I can think of it that there was another type of role created on the old version i.e. student2 and that it is trying to apply the settings to the user but can't find it. Hope this helps 1
secretlife Posted March 2, 2010 Posted March 2, 2010 Did you by any chance switch on "external database" in site admin>courses>enrolments? This can bring up this error if it's enabled but not configured. 1
nathanfriend Posted March 2, 2010 Posted March 2, 2010 It would be worth checking the file permissions. Is your moodle hosted on Linux? 1
rush_tech Posted March 2, 2010 Posted March 2, 2010 Cheers for the replies guys I'll take a look at those when I get a chance
rush_tech Posted March 2, 2010 Posted March 2, 2010 Did you by any chance switch on "external database" in site admin>courses>enrolments? This can bring up this error if it's enabled but not configured. Your a star:third: that did the trick unticked the external database(which wasn't configured) all OK now
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now