Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-2634

Cannot create new assignments on School demo

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • school.moodledemo.net
    • None
    • Create a course in a different Moodle site with just the assignment you need. Back it up; download and restore it into School demo site. It appears to work and allow editing.

    Description

      I want to make new assignments to demonstrate 2.6 assignment features.
      When I try to create an assignment I get the error: Notice: Undefined property: stdClass::$completiondefault in /html/course/moodleform_mod.php on line 664

      and then if I persevere and try to save the assignment I get the long error message reprinted below. This means currently nobody can try any kind of assignment on the school demo; nor can they use an assignment in Single activity course format. Nor can they edit previously made assignments because of an earlier issue linked here.

      *****************
      Debug info: Column 'requireallteammemberssubmit' cannot be null
      INSERT INTO mdl_assign (name,timemodified,course,intro,introformat,alwaysshowdescription,submissiondrafts,requiresubmissionstatement,sendnotifications,sendlatenotifications,duedate,cutoffdate,allowsubmissionsfromdate,grade,completionsubmit,teamsubmission,requireallteammemberssubmit,blindmarking,attemptreopenmethod,markingworkflow,markingallocation) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
      [array (
      0 => 'PDF Assignment: Causes of the October 1917 Revolution',
      1 => 1385145783,
      2 => '140',
      3 => '<p>Explain the causes of the October 1917 revolution using quotes from source materials and referencing your work. Save your work as a PDF file before uploading to allow your teacher to comment on it directly.</p>',
      4 => '1',
      5 => 0,
      6 => '0',
      7 => '0',
      8 => '0',
      9 => '0',
      10 => 0,
      11 => 0,
      12 => 0,
      13 => '100',
      14 => 0,
      15 => '0',
      16 => NULL,
      17 => '0',
      18 => 'none',
      19 => '0',
      20 => NULL,
      )]
      Error code: dmlwriteexception
      Stack trace:
      line 444 of /lib/dml/moodle_database.php: dml_write_exception thrown
      line 1080 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
      line 1122 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
      line 578 of /mod/assign/locallib.php: call to mysqli_native_moodle_database->insert_record()
      line 41 of /mod/assign/lib.php: call to assign->add_instance()
      line 101 of /course/modlib.php: call to assign_add_instance()
      line 270 of /course/modedit.php: call to add_moduleinfo()
      Output buffer: <br /> <b>Notice</b>: Undefined property: stdClass::$completiondefault in <b>/html/course/moodleform_mod.php</b> on line <b>664</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$requireallteammemberssubmit in <b>/html/mod/assign/locallib.php</b> on line <b>563</b><br /> <br /> <b>Notice</b>: Undefined property: stdClass::$markingallocation in <b>/html/mod/assign/locallib.php</b> on line <b>576</b><br />

      Attachments

        Issue Links

          Activity

            People

              tsala Helen Foster
              marycooch Mary Cooch
              Mary Cooch
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: