Error 800 when restoring a template to a course with ":" in its name
welegionsr opened this issue · 5 comments
Hi,
We're using your plugin (free version) and it works great so far.
There's a bug we encountered lately where an error is shown if a template is restored in a course with a colon (:) in its name.
When I removed the colon from the course and and tried again, it worked.
The error says:
"Restore failed with status: 800
Error reading from database"
(paraphrasing a bit, our Moodle isn't in English)
Does it mess the plugin's code somehow?
Would other symbols cause similar issues? ("/", "'" etc)
We're on Moodle 3.9.
Is it something you could fix?
Thanks!
Hi!
Thanks for reporting and glad you like it 👍
We'll have a look and get back to you!
Best
Stefan
Sorry but I think it's actually a different issue.
I think it's because the course shortname is too long.
Is there a limit to the course name within your code?
It's possible that when I removed the colon it went under the limit...
I say that because it just happened now with another course that has no symbol in the name.
I removed some letters from the name and then it worked...
The original shortname of this course had 57 chars.
I removed about 10 and it worked, so I guess maybe 50 is the limit somewhere?
Can that be changed?
Thanks for the additional information. We'll have a look and get back to you.
Best
Stefan
Hi! We've discussed this internally and think the reason is probably something different. Would you be able to provide a .mbz backup file which does not work on your site for us to test? Thanks!
Sure!
I attached a zip that contains two .mbz files, both had issues and were fixed as I described before.
course-templates.zip
Keep in mind that some of the content there is in Hebrew :)
And again, this happened maybe 2-3 times out of 100-200 courses so far, and those courses had long names (in Hebrew) and one had the colon.
Thanks!