Moodle

CLONE -Missing question types not handled properly on backup (still present or regressed)

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.9.7
  • Fix Version/s: None
  • Component/s: Backup
  • Labels:
    None
  • Database:
    Any
  • Affected Branches:
    MOODLE_19_STABLE

Description

Elsewhere in the code, if you have a question of a type that no longer exists (perhaps it was uninstalled) then there is code in place to handle this, so quiz results go on working, etc.

Currently line 499 in question/backuplib.php fails when the current question's type is no longer installed. There may be other locations where missing types are not handled, but this is the first one that is hit.

This is in build 20100311.

Issue Links

Activity

Hide
Nick Phillips added a comment -

I've cloned this as it's either still present or returned to haunt us, and cloning appears to be the favoured way of dealing with this in this tracker so far as I can tell. Hope that's right, feel free to point out if I should rather have commented on #15290 or whatever else.

Show
Nick Phillips added a comment - I've cloned this as it's either still present or returned to haunt us, and cloning appears to be the favoured way of dealing with this in this tracker so far as I can tell. Hope that's right, feel free to point out if I should rather have commented on #15290 or whatever else.
Hide
Nick Phillips added a comment -

Should mention for the benefit of anyone else suffering this issue:

The symptom is backup silenty failing at the point where it is dealing with quizzes. The logs from automated backups look like this:

01:09 AM:13 Start backup course FooBar Sandbox Colloquial
01:09 AM:13 Phase 1: Checking and counting:
01:09 AM:13 checking parameters
01:09 AM:13 calculating backup name
01:09 AM:13 calculating modules data
01:09 AM:13 choice
01:09 AM:13 data
01:09 AM:13 glossary
01:09 AM:13 label
01:09 AM:13 lesson
01:09 AM:13 quiz

And nothing further.

When backing up manually, the page confirming the backup details fails to fully load:

Course backup: MedMoodle Sandbox Colloquial (Colloquial)
Name:
Backup Details:
Include Choices with user data
Choices 1
Include Labels with user data
Labels 1
Include Lessons with user data
Lessons 2
Include Quizzes with user data

And then nothing further.

Workaround is to go into "Questions" for that course, and delete any and all questions showing as "missingtype".

Show
Nick Phillips added a comment - Should mention for the benefit of anyone else suffering this issue: The symptom is backup silenty failing at the point where it is dealing with quizzes. The logs from automated backups look like this: 01:09 AM:13 Start backup course FooBar Sandbox Colloquial 01:09 AM:13 Phase 1: Checking and counting: 01:09 AM:13 checking parameters 01:09 AM:13 calculating backup name 01:09 AM:13 calculating modules data 01:09 AM:13 choice 01:09 AM:13 data 01:09 AM:13 glossary 01:09 AM:13 label 01:09 AM:13 lesson 01:09 AM:13 quiz And nothing further. When backing up manually, the page confirming the backup details fails to fully load: Course backup: MedMoodle Sandbox Colloquial (Colloquial) Name: Backup Details: Include Choices with user data Choices 1 Include Labels with user data Labels 1 Include Lessons with user data Lessons 2 Include Quizzes with user data And then nothing further. Workaround is to go into "Questions" for that course, and delete any and all questions showing as "missingtype".
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: