Page MenuHomePhabricator

Special:Enroll gives fatal error: "Class 'UnknownGroup' not found"
Closed, ResolvedPublic

Description

Attempting to enroll in a course results in:

PHP fatal error in /usr/local/apache/common-local/php-1.21wmf10/extensions/EducationProgram/includes/TimelineGroup.php line 67:
Class 'UnknownGroup' not found

See for example: http://en.wikipedia.org/wiki/Education_Program:Example_University/Example_Course_(2013_Q1)


Version: master
Severity: critical

Details

Reference
bz45496

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 1:31 AM
bzimport set Reference to bz45496.

Confirmed, but it doesn't make sense. The UnknownGroup class is defined in the same file (includes/TimelineGroup.php).

(But only if I have active courses.)

Ah, not sure how this has gone undetected for so long.

/me slaps himself for not having done TDD when writing EP

Simple fix though. https://gerrit.wikimedia.org/r/#/c/51177/

Reedy deployed that fix, but Special:MyCourses is still throwing the same error. Special:Enroll is fixed, though.

That explains it, I did not take the namespace into account.