Moodle

Importing a Lesson from another course fails

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.8.2
  • Fix Version/s: None
  • Component/s: Lesson
  • Labels:
    None
  • Environment:
    demo.moodle.org
  • Affected Branches:
    MOODLE_18_STABLE

Description

Tested today on demo.moodle.org for repeatability.

Create a new course Foo.

In Foo, Administration -> Import

Specify the Features course

Select Lessons (there is only one Lesson)

Import proceeds to the step where the Lesson is being imported into the target course:
...
...

  1. Creating roles definitions
  2. Creating course level role assignments and overrides
  3. Creating module level role assignments and overrides
  4. Creating user level role assignments and overrides
  5. Checking course
  6. Cleaning temp data

and then gives a pink box "An error has occurred and the restore could not be completed!"

No Lesson was created in the target course

Activity

Hide
Joseph Rézeau added a comment -

Works for me (on local install of Moodle 1.8.2.)
Joseph

Show
Joseph Rézeau added a comment - Works for me (on local install of Moodle 1.8.2.) Joseph
Hide
John Isner added a comment -

I wonder if I hit the upload limit (2MB) on the restore part of the import. If so, I would change either one of the following:

(a) import should warn that is bounded by the file upload limit (similar to the warning you get on File upload)

or

(b) import should give a more informative error message than "An error has occurred and restore could not be completed!" (at least remove that awful exclamation point

Show
John Isner added a comment - I wonder if I hit the upload limit (2MB) on the restore part of the import. If so, I would change either one of the following: (a) import should warn that is bounded by the file upload limit (similar to the warning you get on File upload) or (b) import should give a more informative error message than "An error has occurred and restore could not be completed!" (at least remove that awful exclamation point
Hide
John Isner added a comment -

I just verified that the backup file for the single "Features" Lesson (no user data, user files, or logs) is an astounding 5.2 MB.

Show
John Isner added a comment - I just verified that the backup file for the single "Features" Lesson (no user data, user files, or logs) is an astounding 5.2 MB.
Hide
Martin Dougiamas added a comment -

Reassigning this to moodle.com for the time being, since Mark Nielsen is not maintaining Lesson any more. Please comment/vote/patch any crucial bugs that affect you for 2.0 to help us prioritise fixes for the upcoming release.

Show
Martin Dougiamas added a comment - Reassigning this to moodle.com for the time being, since Mark Nielsen is not maintaining Lesson any more. Please comment/vote/patch any crucial bugs that affect you for 2.0 to help us prioritise fixes for the upcoming release.
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 has become inactive and does not appear to affect 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 has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: