Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-30933

Backup fails for some courses with "error/setting_invalid_ui_label' in Moodle 2.2+ (Build: 20111223)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 2.1.3, 2.2
    • Backup, Blocks
    • None
    • MySQL 5.5.9 ; PHP 5.3.6
    • MySQL
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • Hide

      Manually revert to the default section title for each section.

      Show
      Manually revert to the default section title for each section.
    • Hide

      Attempt to back up course with code (such as <span style="font-family: arial,helvetica,sans-serif;">Lecture 1</span> in the name field

      Show
      Attempt to back up course with code (such as <span style="font-family: arial,helvetica,sans-serif;">Lecture 1</span> in the name field

      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.

            moodle.com Moodle HQ
            dr.tech Larry M Elchuck, Ph.D. (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.