fatal error during upgrade to 1.8: something to do with enrolment plug-in

fatal error during upgrade to 1.8: something to do with enrolment plug-in

by Norbert Berger -
Number of replies: 12
Just downloaded and installed the 1.8 latest to my experimental server before I roll out and encountered the following:
Fatal error: Class enrolment_plugin: Cannot inherit from undefined class enrolment_base in c:\eap17\www\enrol\internal\enrol.php on line 4
That's where it all stops.
Any suggestions anyone?

Thanks
Average of ratings: -
In reply to Norbert Berger

Re: fatal error during upgrade to 1.8: something to do with enrolment plug-in

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Try refreshing your PHP cache. See MDL-9162
In reply to Martin Dougiamas

Re: fatal error during upgrade to 1.8: something to do with enrolment plug-in

by Norbert Berger -
Thanks Martin,

will try this and report back in a day or two.

Best wishes

Norbert
In reply to Norbert Berger

Re: fatal error during upgrade to 1.8: something to do with enrolment plug-in

by Jeff Wood -
Same issue here too.

I installed 1.8 over 1.7 (my usual upgrade method - always worked in the past)

Exploring cures now.

Jeff
In reply to Jeff Wood

Re: fatal error during upgrade to 1.8: something to do with enrolment plug-in

by Jeff Wood -
Hosting company said i had a problem with my enrol.php file and needed to change the path, so I changed the current:


<?php
require_once("$CFG->dirroot/enrol/enrol.class.php");

class enrolment_plugin extends enrolment_base {
/// nothing to do - it's already perfect!
}

?>

to

<?php
require_once("$CFG->/home/mysite/public_html/enrol/internal/enrol.class.php");

class enrolment_plugin extends enrolment_base {
/// nothing to do - it's already perfect!
}

?>

Error goes away but the page is blank white.

Site seems to work at teacher level and admin... but is the upgrade doneÉ

Jeff
In reply to Jeff Wood

Re: fatal error during upgrade to 1.8: something to do with enrolment plug-in

by Jeff Wood -
Success!!!!!!!!!!!!!!!!!!!!!!!!

The old enrol directory (from previous versions) was causing the problem.

Once I removed it and uploaded the 1.8 enrol directory all was fine.

Jeff
In reply to Jeff Wood

Re: fatal error during upgrade to 1.8: something to do with enrolment plug-in

by Jez H -
Thanks for that post, you just saved me a lot of time wink

I wonder why tar did not overwrite properly?
In reply to Jez H

Re: fatal error during upgrade to 1.8: something to do with enrolment plug-in

by Mauno Korpelainen -

Hi Jez,

it is not a question of overwriting properly - moodle 1.5 had a folder enrol/internal but since moodle 1.6 there has not been that folder anymore. If you overwrite old moodle folders with new ones some parts like this folder may cause you trouble later...

In reply to Jeff Wood

Re: fatal error during upgrade to 1.8: something to do with enrolment plug-in

by Ellen Marie Murphy -
Jeff, what do you mean by "old enrol directory"? When I look in the enrol/internal folder I see two files both labeled "enrol" . One is a php file and the other an html file. Should I delete one of those?

Ellen Marie
In reply to Ellen Marie Murphy

Re: fatal error during upgrade to 1.8: something to do with enrolment plug-in

by Mauno Korpelainen -

Hi Ellen,

you should delete both files and the directory internal itself.

In reply to Mauno Korpelainen

Re: fatal error during upgrade to 1.8: something to do with enrolment plug-in

by Marcus Tremble -
Hello all, I'm having the same problem with an upgrade from 1.6.1 to 1.8. So, is it my understanding that I need to delete the internal directory and replace it with the newer one that comes with 1.8? If thats correct, where should I get the newer folder from?

Do I need to get a fresh moodle package and extract the folder from there? Please advise.... thanks...
In reply to Marcus Tremble

Re: fatal error during upgrade to 1.8: something to do with enrolment plug-in

by Mauno Korpelainen -
Just delete it - there is no (and should not be any) folder internal in moodle 1.8.
In reply to Mauno Korpelainen

Re: fatal error during upgrade to 1.8: something to do with enrolment plug-in

by Marcus Tremble -
Thanks very much for your timely response Mauno, this is a great support area.
I've taken this action and am looking forward to diving into the site again. Moodle is fantastic!
Peace...