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

Backup: Unable to download courses from MOOCH when teacher deletes contents of course and then restores

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
    • Affected Branches:
      MOODLE_21_STABLE

      Description

      Following test MDLQA-1122

      1. When I press "search", there is a message:
      Notice: Undefined property: stdClass::$backupsize in /html/blocks/community/renderer.php on line 263

      (but the list is populated)

      2. When trying to download course "Peggy Teaches Chinese" - I get errors (see below). After this the course is broken, content is not displayed, errors are thrown.

      error/restore_problems_processing_questions

      More information about this error

      Stack trace:
      line 1200 of /backup/util/dbops/restore_dbops.class.php: restore_dbops_exception thrown
      line 911 of /backup/moodle2/restore_stepslib.php: call to restore_dbops::process_categories_and_questions()
      line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_process_categories_and_questions->define_execution()
      line 153 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()
      line 148 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
      line 157 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
      line 299 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
      line 144 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
      line 45 of /backup/restore.php: call to restore_ui->execute()
      Output buffer: <br /> <font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'> <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Notice: Array to string conversion in /html/backup/util/dbops/restore_dbops.class.php on line <i>1200</i></th></tr> <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr> <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr> <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0003</td><td bgcolor='#eeeeec' align='right'>814112</td><td bgcolor='#eeeeec'>

      {main}

      ( )</td><td title='/html/backup/restore.php' bgcolor='#eeeeec'>../restore.php<b>:</b>0</td></tr> <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>2.1511</td><td bgcolor='#eeeeec' align='right'>79863208</td><td bgcolor='#eeeeec'>restore_ui->execute( )</td><td title='/html/backup/restore.php' bgcolor='#eeeeec'>../restore.php<b>:</b>45</td></tr> <tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>2.3598</td><td bgcolor='#eeeeec' align='right'>85605416</td><td bgcolor='#eeeeec'>restore_controller->execute_plan( )</td><td title='/html/backup/util/ui/restore_ui.class.php' bgcolor='#eeeeec'>../restore_ui.class.php<b>:</b>144</td></tr> <tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>2.3599</td><td bgcolor='#eeeeec' align='right'>85605416</td><td bgcolor='#eeeeec'>restore_plan->execute( )</td><td title='/html/backup/controller/restore_controller.class.php' bgcolor='#eeeeec'>../restore_controller.class.php<b>:</b>299</td></tr> <tr><td bgcolor='#eeeeec' align='center'>5</td><td bgcolor='#eeeeec' align='center'>2.3601</td><td bgcolor='#eeeeec' align='right'>85605416</td><td bgcolor='#eeeeec'>base_plan->execute( )</td><td title='/html/backup/util/plan/restore_plan.class.php' bgcolor='#eeeeec'>../restore_plan.class.php<b>:</b>157</td></tr> <tr><td bgcolor='#eeeeec' align='center'>6</td><td bgcolor='#eeeeec' align='center'>2.3604</td><td bgcolor='#eeeeec' align='right'>85627680</td><td bgcolor='#eeeeec'>base_task->execute( )</td><td title='/html/backup/util/plan/base_plan.class.php' bgcolor='#eeeeec'>../base_plan.class.php<b>:</b>148</td></tr> <tr><td bgcolor='#eeeeec' align='center'>7</td><td bgcolor='#eeeeec' align='center'>2.7095</td><td bgcolor='#eeeeec' align='right'>85079288</td><td bgcolor='#eeeeec'>restore_execution_step->execute( )</td><td title='/html/backup/util/plan/base_task.class.php' bgcolor='#eeeeec'>../base_task.class.php<b>:</b>153</td></tr> <tr><td bgcolor='#eeeeec' align='center'>8</td><td bgcolor='#eeeeec' align='center'>2.7095</td><td bgcolor='#eeeeec' align='right'>85079288</td><td bgcolor='#eeeeec'>restore_process_categories_and_questions->define_execution( )</td><td title='/html/backup/util/plan/restore_execution_step.class.php' bgcolor='#eeeeec'>../restore_execution_step.class.php<b>:</b>34</td></tr> <tr><td bgcolor='#eeeeec' align='center'>9</td><td bgcolor='#eeeeec' align='center'>2.7096</td><td bgcolor='#eeeeec' align='right'>85079288</td><td bgcolor='#eeeeec'>restore_dbops::process_categories_and_questions( )</td><td title='/html/backup/moodle2/restore_stepslib.php' bgcolor='#eeeeec'>../restore_stepslib.php<b>:</b>911</td></tr> <tr><td bgcolor='#eeeeec' align='center'>10</td><td bgcolor='#eeeeec' align='center'>2.7219</td><td bgcolor='#eeeeec' align='right'>85135904</td><td bgcolor='#eeeeec'><a href='http://www.php.net/implode' target='_new'>implode</a> ( )</td><td title='/html/backup/util/dbops/restore_dbops.class.php' bgcolor='#eeeeec'>../restore_dbops.class.php<b>:</b>1200</td></tr> </table></font>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              marina Marina Glancy
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: