Course restore fails if using numbers in section titles

Issue #63 resolved
Arto Nieminen created an issue

Hi,

I found a bug in Tiles format restore pre-check. Restoring a course throws an error, if there is a big number in a course section title: Default exception handler: Error: Cannot complete as source course contains incorrectly numbered sections (e.g. section number (1234) is higher than the max allowed (52)

How to reproduce:

  1. Install the Tiles format.
  2. Create a new course using e.g. Topics format.
  3. Change the title of first course section to “1234 first section”.
  4. Create a backup of the course.
  5. Try to restore the backup as a new course.
  6. Restore process fails throwing the exception above.

Comments (6)

  1. David Watson repo owner

    Hi Arto please would you check that you have the latest version of Tiles format installed and upgrade if necessary? You can see your version under Site Admin > Plugins > Plugins Overview > Course Formats. The latest is here https://moodle.org/plugins/pluginversions.php?plugin=format_tiles

    It sounds like at some point you have used the old incompatible version of tiles (for Moodle 3.7) in a Moodle 3.9+ environment.

    I will delete your proposed workaround from the description as I would not recommend the first suggestion. Your best bet is to upgrade to the new version, which contains tools to help you delete excess sections

  2. Arto Nieminen reporter

    I have installed Tiles format recently and it is the latest version: 3.9.0.11 / 2020080611
    There was no older version installed before, and I haven’t even used Tiles format yet on any course in my test Moodle where I was able to reproduce the problem.

    I also looked at the Problem courses tool in Tiles format administration, and it says “No problems found”.

  3. Log in to comment