Virtual Learning Platforms Thread, Moodle Fatal Error in Technical; Hello folks,
I'm having problems with an installation of Moodle (created from a backup of the database and moodledata).
When ...
-
1st March 2010, 12:37 PM #1 Moodle Fatal Error
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.
-
-
IDG Tech News
-
2nd March 2010, 12:05 PM #2
Anyone got any idea?
-
-
2nd March 2010, 01:26 PM #3 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 to paulgarratt83 from:
rush_tech (2nd March 2010)
-
2nd March 2010, 01:56 PM #4 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.
-
Thanks to secretlife from:
rush_tech (2nd March 2010)
-
2nd March 2010, 02:07 PM #5
- Rep Power
- 7
Check the file permissions
It would be worth checking the file permissions. Is your moodle hosted on Linux?
-
Thanks to nathanfriend from:
rush_tech (2nd March 2010)
-
2nd March 2010, 02:34 PM #6 Cheers for the replies guys I'll take a look at those when I get a chance
-
-
2nd March 2010, 02:50 PM #7 
Originally Posted by
secretlife
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
that did the trick unticked the external database(which wasn't configured) all OK now
-
-
2nd March 2010, 07:14 PM #8 oh thanks
Glad it's sorted.
-
SHARE: 
Similar Threads
-
By russdev in forum Windows 7
Replies: 10
Last Post: 3rd May 2009, 11:07 AM
-
By ChrisH in forum Windows
Replies: 0
Last Post: 10th October 2008, 12:10 PM
-
By damienharrison in forum Virtual Learning Platforms
Replies: 5
Last Post: 26th September 2007, 10:15 AM
-
By DaveP in forum Wireless Networks
Replies: 7
Last Post: 7th February 2007, 10:58 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules