Page MenuHomePhabricator

Existing courses are treated as invalid
Closed, DuplicatePublic

Description

The course "Seminário Integrador III" is listed at
https://pt.wikipedia.org/wiki/Special:Courses?uselang=en
but the "Enroll" link available at
https://pt.wikipedia.org/wiki/Ensino:Universidade_Federal_do_Rio_Grande_do_Sul/Seminário_Integrador_III_(2015/01)?uselang=en
causes the error

The course you tried to enroll for does not exist. See the list of courses.

This was originally reported at https://pt.wikipedia.org/w/index.php?diff=41709247 by @Lechatjaune.

Event Timeline

He7d3r raised the priority of this task from to High.
He7d3r updated the task description. (Show Details)
He7d3r added subscribers: He7d3r, Lechatjaune.

The problem is the slash in the term field. See T86912.

A workaround would be to recreate the course with a dash instead of a slash in the 'term' field.

Was there any recent changes to title handling? This message is only shown if Courses::singleton()->getFromTitle( $courseTitle ) is false¹.

¹ https://github.com/wikimedia/mediawiki-extensions-EducationProgram/blob/2cfd231e3d352de8893a3cb4ae65ce5e4e2b3d49/includes/specials/SpecialEnroll.php#L68-L72