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

Warning of missing property in export of multianswer questions

XMLWordPrintable

      When exporting a cloze question inside a category from the question bank a warning is issued (using PHP 8.2):

      Undefined property: stdClass::$categoryobjectStack frames (7)
      6 Whoops\Exception\ErrorException
      …/question/type/multianswer/questiontype.php:149

      5 default_error_handler
      …/question/type/multianswer/questiontype.php:149

      4 qtype_multianswer get_question_options
      …/question/editlib.php:109

      3 get_questions_category
      …/question/format.php:937

      2 qformat_default exportprocess
      …/lib/questionlib.php:1815

      1 question_pluginfile
      …/lib/filelib.php:5140

      0 file_pluginfile…/pluginfile.php:44

      This is probably because subquestion parts have a parent id and therefore do not exist independent from the parent. Only the parent needs the category.

       

            strobotta Stephan Robotta
            strobotta Stephan Robotta
            Luca Bösch Luca Bösch
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            CiBoT CiBoT
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 5 minutes
                6h 5m

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