[RESOLVED] Numeric question is empty

[RESOLVED] Numeric question is empty

by Harald H -
Number of replies: 8

hi,

i just want to use the nurmeric question typ in the questionaire modul.
but the response is alway empty (no answer).
other typs are working fine.
I'm using moodle 2.3.2
TIA
Harald

(Edited by Joseph Rézeau - original submission Wednesday, 26 September 2012, 9:58 PM)

Average of ratings: -
In reply to Harald H

Re: Numeric question is empty

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Sorry, I do not understand your problem. What do you mean by "the response is always empty" ?

Are you sure you are talking about the Questionnaire plugin, not the Quiz activity?

Joseph

In reply to Joseph Rézeau

Re: Numeric question is empty

by Harald H -

hi joseph, thanks for your answere
yes i'm pretty sure i'm talking about the questionaire plugin.

for example: i inserted a numeric question typ "Your Age:"

i fill out the form&submit it,
but in the questionaire report i got: "No response for this question"

you can see that in the screenshot i attached
tia

 

Attachment Bildschirmfoto 2012-09-27 um 13.40.46.png
In reply to Harald H

Re: Numeric question is empty

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

@Harald,

This is strange. Can you try to make that numeric required, as in the attached example.

Joseph

PS. I deleted your other post (in German). This is the English-speaking forum.

Attachment 27-09-2012 14-49-33.jpg
In reply to Joseph Rézeau

Re: Numeric question is empty

by Harald H -

hi joseph,

sorry for the doublepost in german (i posted the topic in a german moodle forum, probably i mixed it up)

as you can see, the question is already required,

all other question types (checkbox, radiobutton etc) are working fine

Attachment Bildschirmfoto 2012-09-27 um 15.15.40.png
In reply to Harald H

Re: Numeric question is empty

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

What type of database is used on your moodle site: mysql, PostgreSQL, etc?

In reply to Joseph Rézeau

Re: Numeric question is empty

by Harald H -

i use a mysql database,

a friend of mine checked it out on his moodle installation (moodle 2) and got the same error including this warning:

Warning: preg_replace(): Unknown modifier '*' in moodle/mod/questionnaire/questiontypes/questiontypes.class.php on line 238 

In reply to Harald H

Re: Numeric question is empty

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Yes, that is a bug which was fixed 2 months ago. See https://github.com/remotelearner/moodle-mod_questionnaire/commit/c36cdc75fe7c4fc8f47d4ee60b8a16ff2f73acab#questiontypes

You need to upgrade to the latest questionnaire version available (for moodle 2.3) from the plugins database here:

http://moodle.org/plugins/pluginversions.php?plugin=mod_questionnaire

Joseph