Skip to content

Course categories creation breaks #4916

@ywarnier

Description

@ywarnier

Describe
In newly installed 1.11.26 (and possibly 1.11.24) or systems updated where vendor/ and composer.lock was deleted before a composer update, there is an error when creating a new course category.

The error message is:
Fatal error: Uncaught Error: Call to undefined function html_filter() in main/inc/lib/course_category.lib.php:191

The html_filter() function is present in FormValidator.class.php (but not part of the FormValidator class), but apparently it doesn't get picked up.

Apparently, this is not present in systems where vendor/ and composer.json are a bit older, suggesting to me that something might have changed in the composer update process that removed the mapping of the html_filter() function in the autoload files.

To Reproduce
Steps to reproduce the behavior:

  1. Install a fresh 1.11.26 or remove composer.lock and vendor/ from an existing system, then "composer update"
  2. Go to admin > Courses categories > "Create" icon > Input something > Save.

References

**Server

  • Version of PHP: 7.4

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions