Could not update quiz (Cloze)

Could not update quiz (Cloze)

- Ian Farmery の投稿
返信数: 20

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?

添付 untitled.JPG
Ian Farmery への返信

このフォーラム投稿は削除されました。

このフォーラム投稿のコンテンツは削除されたため現在アクセスすることはできません。
Ian Farmery への返信

Re: Could not update quiz (Cloze)

- Joseph Rézeau の投稿
画像 Core developers 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers 画像 Translators
Most likely a syntax error (hidden formatting character) in your cloze question. Remember such questions must contain pure text, typed directly into the question text window, and not copy-pasted from somewhere else.
Can you post your question text here?
Joseph
Joseph Rézeau への返信

Re: Could not update quiz (Cloze)

- Ian Farmery の投稿

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

Ian Farmery への返信

このフォーラム投稿は削除されました。

このフォーラム投稿のコンテンツは削除されたため現在アクセスすることはできません。
Ian Farmery への返信

Re: Could not update quiz (Cloze)

- Joseph Rézeau の投稿
画像 Core developers 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers 画像 Translators
Ian > ... Then i went back to edit it to add an extra answer to one of the questions and I got this error.

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

Joseph Rézeau への返信

Re: Could not update quiz (Cloze)

- Ian Farmery の投稿

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

Ian Farmery への返信

Re: Could not update quiz (Cloze)

- S Chasse の投稿

Me too I am getting this bug.

Cannot update cloze questions.

S Chasse への返信

Re: Could not update quiz (Cloze)

- Joseph Rézeau の投稿
画像 Core developers 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers 画像 Translators
All I can say is that most people can update their Cloze type questions most of the time. If you can't, then it is quite impossible to help you if you do not provide specific details.mixed
Joseph Rézeau への返信

Re: Could not update quiz (Cloze)

- S Chasse の投稿

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!"

S Chasse への返信

Re: Could not update quiz (Cloze)

- S Chasse の投稿

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.

S Chasse への返信

このフォーラム投稿は削除されました。

このフォーラム投稿のコンテンツは削除されたため現在アクセスすることはできません。
S Chasse への返信

Re: Could not update quiz (Cloze)

- Tim Hunt の投稿
画像 Core developers 画像 Documentation writers 画像 Particularly helpful Moodlers 画像 Peer reviewers 画像 Plugin developers
Tim Hunt への返信

Re: Could not update quiz (Cloze)

- S Chasse の投稿
Yes, it is and the Issue is still open. They consider it major. Open someone comes with a solution soon.

What are the consequences of this bug?
Tim Hunt への返信

このフォーラム投稿は削除されました。

このフォーラム投稿のコンテンツは削除されたため現在アクセスすることはできません。
Joseph Rézeau への返信

Re: Could not update quiz (Cloze)

- S Chasse の投稿

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

S Chasse への返信

Re: Could not update quiz (Cloze)

- Joseph Rézeau の投稿
画像 Core developers 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers 画像 Translators
Thanks for providing these details. I have followed the steps described in your post dated Friday, 24 October 2008, 08:14 PM and cannot reproduce your problem. Everything works fine on my Moodle 1.9.3.
Joseph
Joseph Rézeau への返信

Re: Could not update quiz (Cloze)

- S Chasse の投稿
Looks like the bug was not fixed.

http://tracker.moodle.org/browse/MDL-12719

What do you think?

S Chasse への返信

Re: Could not update quiz (Cloze)

- Jeff Forssell の投稿
Make sure that you check in the code view (press the <> button) that there aren't any extra codes in your page. I have had spooky problems sometimes because something (in my case a browser plugin, Xinha Here) inserting some invisible code.