this is a sum of the forum entry discussion here up from "by Süreç Özcan - Monday, 21 July 2008, 04:19 PM". I have attached the current version of my soregexp-question type.
I have been working on creating a modified version of the regexp-question type adapting it to my needs.
Adding a new question I receive following error message:
**********************************
Notice: Undefined property: stdClass::$noneditablequestiontext in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/questiontype.php on line 104
Notice: Undefined property: stdClass::$useeditor_questiontext in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/questiontype.php on line 105
Notice: Undefined property: stdClass::$useeditor_genfeedb in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/questiontype.php on line 106
Column 'useeditor_questiontext' cannot be null
INSERT INTO mdl19b_question_soregexp ( QUESTION, ANSWERS, USEHINT, SOURCECODE, NONEDITABLEQUESTIONTEXT, USEEDITOR_QUESTIONTEXT, USEEDITOR_GENFEEDB ) VALUES ( 64, '68', 0, 5, null, null, null )
INSERT INTO mdl19b_question_soregexp ( QUESTION, ANSWERS, USEHINT, SOURCECODE, NONEDITABLEQUESTIONTEXT, USEEDITOR_QUESTIONTEXT, USEEDITOR_GENFEEDB ) VALUES ( 64, '68', 0, 5, null, null, null )
- line 1532 of lib/dmllib.php: call to debugging()
- line 107 of question/type/soregexp/questiontype.php: call to insert_record()
- line 316 of question/type/questiontype.php: call to question_soregexp_qtype->save_question_options()
- line 183 of question/question.php: call to default_questiontype->save_question()
Could not insert quiz soregexp options!
Stack trace:
- line 5670 of lib/weblib.php: call to debugging()
- line 319 of question/type/questiontype.php: call to error()
- line 183 of question/question.php: call to default_questiontype->save_question()
**********************************
In the editing-quiz-view I can see my created question (which returned the above mentioned error-message) - but I don't see it in the database.
Re-editing the question I receive following messages:
**********************************
Notice: Trying to get property of non-object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 66
Notice: Trying to get property of non-object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 97
Notice: Trying to get property of non- object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 171
Notice: Trying to get property of non- object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 182
Notice: Trying to get property of non- object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 183
Notice: Trying to get property of non- object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 184
Notice: Trying to get property of non- object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 185
Notice: Trying to get property of non- object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 186
**********************************
I can see the complete form, the 'questiontext' gets displayed, but the 'answer', '$sourcecode'-selection and '$noneditablequestiontext ' not. Does anybody know what I forget doing in order to get my new database fields saved for re-editing? And before that it doesn't save my question properly.... - I don't understand why?
Re-editing the question I receive following messages:
**********************************
Error: Missing question options!
Notice: Trying to get property of non-object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 66
Notice: Trying to get property of non-object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 97
Notice: Trying to get property of non- object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 171
Notice: Trying to get property of non- object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 182
Notice: Trying to get property of non- object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 183
Notice: Trying to get property of non- object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 184
Notice: Trying to get property of non- object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 185
Notice: Trying to get property of non- object in /web/moodle.mi.fu-berlin.de/htdocs/moodle19beta/question/type/soregexp/edit_soregexp_form.php on line 186
**********************************
I can see the complete form, the 'questiontext' gets displayed, but the 'answer', '$sourcecode'-selection and '$noneditablequestiontext ' not. Does anybody know what I forget doing in order to get my new database fields saved for re-editing? And before that it doesn't save my question properly.... - I don't understand why?