This may not be considered a true bug in the code, but it can become an issue if one tries to place the value of the summary field into the name field so that (A) the navigation block will use this title instead of Topic X and (B) a block such as topcoll will display the topic title properly.
What I did, was to execute the following query to populate the mdl_course_sections name field : update mdl_course_sections set name = summary
If there was any code preceding the text for the section summary, topcoll works fine but the navigation side block only shows ... for the section name.
Then the "error/setting_invalid_ui_label' error occurs when backing up those courses.
I think the issue is directly correlatable to the value in the name field in mdl_course_sections. If the title in the summary field starts with any code (such as <span style="font-family: arial,helvetica,sans-serif;">Lecture 1) then the code (<span style="font-family: arial,helvetica,sans-serif;"> breaks the ability to backup the course and causes the "error/setting_invalid_ui_label' to occur.
Unfortunately, i do not know of a clean way to strip out the code so that only the text is moved to the name fild from the summary field. This is what I'm hoping can be resolved in a future update .... a way to populate the name field other than manually, so the Navigation block will show the proper name of the topic/section.
What first led me to this discovery was that courses with all properly named sections in the Navigation block backed up ok. Those with ... in place of the section names in the side block would not. Changing the section names to fewer characters allowed the title to show in the side block but the course would still receive the 'error/setting_invalid_ui_label' error.
The only thing that would eliminate the error for those courses was to revert to the default section title.
Why post this as a bug? ... This may be the cause of others receiving the "error/setting_invalid_ui_label' error message
As an aside, is there an easy way to set the default value for the course section names field for the courses that will not backup? I have 43 of them and that's a lot of changing of this toggle when each course has 14-15 sections. I use navicat to make backend changes to the database, so if there is a field that can be modified, it would be much easier and quicker.
- has been marked as being related by
-
MDL-30812 Latest backup files generate error/setting_invalid_ui_label upon restore
-
- Closed
-