- edited description
Course restore fails if using numbers in section titles
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:
- Install the Tiles format.
- Create a new course using e.g. Topics format.
- Change the title of first course section to “1234 first section”.
- Create a backup of the course.
- Try to restore the backup as a new course.
- Restore process fails throwing the exception above.
Comments (6)
-
reporter -
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
-
repo owner - edited description
-
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”.
-
repo owner Thanks I can see what is causing that and will push up a fix this week
-
repo owner - changed status to resolved
Fixes issue
#63with integer section names causing backup exception→ <<cset 1222ff2e2499>>
- Log in to comment