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

Creating Forum Using Admin Tools 'Generator' result in an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.4.4
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide

      1. Open '/admin/tool/generator'.
      2. Create a few courses including forum module.
      3. Leave default values for forum options
      4. Click the 'Generate Data' button.
      5. VERIFY no errors are displayed

      Show
      1. Open '/admin/tool/generator'. 2. Create a few courses including forum module. 3. Leave default values for forum options 4. Click the 'Generate Data' button. 5. VERIFY no errors are displayed
    • Affected Branches:
      MOODLE_24_STABLE
    • Pull from Repository:

      Description

      Coding error while generating data use admin tool 'Generator'

      Replication steps:

      1. Open '/admin/tool/generator'.
      2. Create a few courses including forum module.
      3. Leave default values for forum options
      4. Click the 'Generate Data' button.
      5. And you will find the following error:

        Error writing to database
         
        More information about this error
         
        Debug info: Column 'message' cannot be null
        INSERT INTO m24_forum_posts (discussion,parent,userid,created,modified,mailed,subject,message,messageformat,messagetrust,mailnow) VALUES(?,?,?,?,?,?,?,?,?,?,?)
        [array (
        0 => 0,
        1 => 0,
        2 => '7747',
        3 => 1373424007,
        4 => 1373424007,
        5 => 0,
        6 => 'Test discussion',
        7 => NULL,
        8 => 1,
        9 => 0,
        10 => 0,
        )] 
        Error code: dmlwriteexception
        

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              gaoce227
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: