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

Errors in the question bank when qbank_statistics is disabled (related to column sort order)

    XMLWordPrintable

Details

    Description

      In Manage question bank plugins:

      1. disable "Question statistics"
      2. enable "Question statistics"
      3. again disable "Question statistics"
      4. try to disable "Column sort order" ( got error )
      5. try to open question bank in course ( error )

      Column sort order plugin sets value enabledcol ( mdl_config_plugins table ) when enabling  "Question statistics", but when disabling "Question statistics" plugin it doesn't clean the value.

       

      Errors:

      http://moodle.docker.localhost:8000/admin/qbankplugins.php?sesskey=3835YQcsr1&name=columnsortorder&action=disable

       
      Exception - Call to a member function get_column_name() on int

      More information about this error
      Debug info:
      Error code: generalexceptionmessage×Dismiss this notification
      Stack trace: * line 347 of /question/classes/local/bank/view.php: Error thrown

      • line 193 of /question/classes/local/bank/view.php: call to core_question\local\bank\view->wanted_columns()
      • line 82 of /question/bank/columnsortorder/classes/column_manager.php: call to core_question\local\bank\view->__construct()
      • line 93 of /question/bank/columnsortorder/classes/column_manager.php: call to qbank_columnsortorder\column_manager->get_questionbank()
      • line 186 of /question/bank/columnsortorder/classes/column_manager.php: call to qbank_columnsortorder\column_manager->get_columns()
      • line 57 of /admin/qbankplugins.php: call to qbank_columnsortorder\column_manager->disable_columns()

       

      http://moodle.docker.localhost:8000/question/edit.php?courseid=30

       
      Exception - Call to a member function get_column_name() on int

      More information about this error
      Debug info:
      Error code: generalexceptionmessage×Dismiss this notification
      Stack trace: * line 347 of /question/classes/local/bank/view.php: Error thrown

      • line 193 of /question/classes/local/bank/view.php: call to core_question\local\bank\view->wanted_columns()
      • line 42 of /question/edit.php: call to core_question\local\bank\view->__construct()

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              arvvns Arv Vns
              Mark Johnson Mark Johnson
              Andrew Lyons Andrew Lyons
              CiBoT CiBoT
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 46 minutes
                  46m

                  Clockify

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