Jump to content

Recommended Posts

Posted

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.

Posted

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

  • Thanks 1
Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...