error/moodle/setting invalid ui label

From MoodleDocs
Revision as of 12:20, 5 April 2022 by Johannes Albert (talk | contribs) (Specify bugfix versions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This error will occur when the course being backed up (or copied/imported) contains a section with invalid characters in its name.


Due to a bug in the validation code of previous Moodle versions (below 3.10.10 und 3.11.6), any names that consist of whitespace characters are considered invalid and thus trigger this error.

Users that rely on "blank" section names (e.g. to prevent the display of Moodle's default category labels) are advised to

  • remove the whitespace for the duration of the backup or
  • replace it with a   HTML entity (which will add an empty line, unfortunately).

See also