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

Creating forum with 'Subscription Mode' set to 'Auto subscription' throw error.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.7
    • 2.7
    • Forum

      Steps to reproduce:

      1. Log in as teacher
      2. Create forum with 'Subscription Mode' set to 'Auto subscription'
      3. Save and you will see following error

        Debug info: SELECT id,course FROM {course_modules} WHERE id IS NULL
        [array (
        )]
        Error code: invalidrecord
        Stack trace:
        line 1451 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
        line 1427 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
        line 7074 of /lib/accesslib.php: call to moodle_database->get_record()
        line 4832 of /mod/forum/lib.php: call to context_module::instance()
        line 132 of /mod/forum/lib.php: call to forum_subscribe()
        line 113 of /course/modlib.php: call to forum_add_instance()
        line 268 of /course/modedit.php: call to add_moduleinfo()
        

        Alternatively run: MDLQA-6700 Step 5

            dobedobedoh Andrew Lyons
            rajeshtaneja Rajesh Taneja
            Marina Glancy Marina Glancy
            Dan Poltawski Dan Poltawski
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.