Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-30602

Cannot delete a course or restore a Moodle 1.9 or 2.1 backup

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.2
    • None
    • Backup
    • None
    • Windows 2008 R2; IIS 7.5, MS-SQL 2008, FastC
    • Microsoft SQL
    • MOODLE_22_STABLE
    • Hide

      None

      Show
      None
    • Hide

      1. Add/edit courses. Select course and try to delete.

      2. Got to course, select restore, go through review screens, click perform restore then I get the error above.

      See http://moodle.org/mod/forum/discuss.php?d=191729

      Show
      1. Add/edit courses. Select course and try to delete. 2. Got to course, select restore, go through review screens, click perform restore then I get the error above. See http://moodle.org/mod/forum/discuss.php?d=191729

    Description

      When I try to delete a course or try to restore Moodle 1.9 or 2.x backup I get the following error;

      Fatal error: Cannot redeclare callback_social_load_content() (previously declared in S:\inetpub\wwwroot\moodle\course\format\easypost\lib.php:36) in S:\inetpub\wwwroot\moodle\course\format\social\lib.php on line 38

      The course name is created from the failed restore when I click on it I get the following error;

      Coding error detected, it must be fixed by a programmer: PHP catchable fatal error

      More information about this error

      Debug info: Argument 2 passed to has_capability() must be an instance of context, boolean given, called in S:\inetpub\wwwroot\moodle\course\lib.php on line 1501 and defined
      Stack trace:
      line 365 of \lib\setuplib.php: coding_exception thrown
      line 348 of \lib\accesslib.php: call to default_error_handler()
      line 1501 of \course\lib.php: call to has_capability()
      line 241 of \course\format\topics\format.php: call to print_section()
      line 240 of \course\view.php: call to require()

      Attachments

        Activity

          People

            moodle.com moodle.com
            fweiss Fred Weiss
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: