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

Serious Error! Could not create the new course!

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6
    • Component/s: Course
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE

      Description

      (1) Updated to most recent Moodle 1.6 dev

      (2) Attempted to add course in Miscellaneous category

      (3) following error messages was displayed:

      Serious Error! Could not create the new course!

      (4) checked server info:

      Apache: 2.0.54 (Win32)

      PHP: 5.0.5

      MySQL: 5.0.18-nt

      (5) added following statements in course/edit.php at line 161:

      print mysql_error();

      print_object($form);

      (6) following output was displayed:

      Field 'modinfo' doesn't have a default value

      stdClass Object

      (

      [category] => 1

      [fullname] => Course Fullname 101

      [shortname] => CF101

      [idnumber] =>

      [summary] =>

      Write a concise and interesting paragraph here that explains what this course is about

      [format] => weeks

      [startday] => 7

      [startmonth] => 2

      [startyear] => 2006

      [enrollable] => 1

      [enrolstartday] => 6

      [enrolstartmonth] => 2

      [enrolstartyear] => 2006

      [enrolstartdisabled] => 1

      [enrolendday] => 6

      [enrolendmonth] => 2

      [enrolendyear] => 2006

      [enrolenddisabled] => 1

      [enrolperiod] => 0

      [expirynotify] => 0

      [notifystudents] => 0

      [expirythreshold] => 864000

      [numsections] => 10

      [groupmode] => 0

      [groupmodeforce] => 0

      [visible] => 1

      [password] =>

      [guest] => 0

      [hiddensections] => 0

      [newsitems] => 5

      [showgrades] => 1

      [showreports] => 0

      [maxbytes] => 16777216

      [teacher] => Teacher

      [teachers] => Teachers

      [student] => Student

      [students] => Students

      [lang] =>

      [metacourse] => 0

      [restrictmodules] => 0

      [sesskey] => AFq8fX5Bwg

      [startdate] => 1139238000

      [enrolstartdate] => 0

      [enrolenddate] => 0

      [timemodified] => 1139194134

      [timecreated] => 1139194134

      [sortorder] => 2002

      )

        Attachments

          Activity

            People

            • Assignee:
              dougiamas Martin Dougiamas
              Reporter:
              xxxxxxx Gordon Bateson
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                20/Jun/06