After creating a cloze question and then going back to edit it i get the following error (Could not update question!). it then kicks me out and returns me to the moodle front page.
Can anybody help me with this?
After creating a cloze question and then going back to edit it i get the following error (Could not update question!). it then kicks me out and returns me to the moodle front page.
Can anybody help me with this?
As a test I copy and pasted the text from the example in the moodle docs which worked fine. Then i went back to edit it to add an extra answer to one of the questions and I got this error.
A member of staff has recieved this error a few times also. Whenver she tries adding anything to one of these questions.
Could you give more details i.e. which moodle version you use and which database and server.
We are using moodle version 1.9.1, MySQL database and the server is Apache.
Thanks
Ian
Sorry, but it is quite impossible to help you if you don't say exactly what you did to trigger the error. If the sample worked fine and something went wrong when you "added an extra answer", then it is likely that the syntax of that extra answer was wrong. Could you please try again the experiment, copy the exact text of your modified question text, post it here?
Other than that, follow Pierre Pichet's advice and upgrade to the latest version of moodle 1.9.2.
Joseph
I have since been investigating this issue. Regardless of the syntax of the question it always displays the error 'Could not update question!' if you go to edit a Cloze question and attempt to save it.
Not changing anything just saving gives this error.
adding a question or extra answer and making sure the question is verified also gives the same error.
Regardless of the question text this error is returned when going into the editing part of a cloze question after it has been created. Unless there is another solution i can only think that upgrading 1.9.2 may fix this issue.
Ian
We are using SQL Server 2005.
Moodle 1.9.2.
I also tried with a fresh install using 1.9.3+
I add a cloze question to a course
I used the example from http://docs.moodle.org/en/Cloze
Match the following cities with the correct state:
* San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
* Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK}
* Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
* Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK}
The capital of France is {1:SHORTANSWER:=Paris#Congratulations!~%50%Marseille#No, that
is the second largest city in France (after Paris).~*#Wrong answer. The capital of France
is Paris, of course.}.
It saves the first time in the bank, then when I update (open and save), I am getting "Could not update question!"
Also, in my case, I did not update the text, just save again.
I tried with modifications and depending where the modification is, I might loose part of the text.
It is like if it did not like something in the middle of it and refuses to replace old content. That is why you would see old content coming back.
Other types of questions like Multiple Choices (non cloze), updates fine.
Only cloze does not update.
If you are creating questions, it works fine but updating does not work at all.
ok confusion with the moodle zip files happend.
The installed version is 1.9.
I upgraded to 1.9.3+ and now it works fine.
Before 1.9, I had 1.9.2 installed and the bug was also there.
So that means it was fixed in a version superior as 1.9.2.
Should http://tracker.moodle.org/browse/MDL-12719 be closed?
My cloze question was:
Match the following cities with the correct state:
* San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
Opened it, modified the text and save it as (got obviously the Could not update msg):
Match the following cities with the correct state:
* San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
* Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK}
* Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
* Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK}
The capital of France is {1:SHORTANSWER:=Paris#Congratulations!~%50%Marseille#No, that
is the second largest city in France (after Paris).~*#Wrong answer. The capital of France
is Paris, of course.}.
Opened it and it was:
Match the following cities with the correct state:
* San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
* Tucson: {#2}
* Los Angeles: {#3}
* Phoenix: {#4}
The capital of France is {#5}.
It basically lost the details for each row.
I got in SQL server and rows 2,3,4,5 are in the mdl_question table.
We run apache