Error in displaying/editing/deleting a question

Error in displaying/editing/deleting a question

by Jaifar Al Shizawi -
Number of replies: 2

Dear Moodlers 

we are using Moodle 3.5.1 and getting this error when editing a quiz (after clicking on "+ from question bank")



I tried to find issue making this by opening all 118 questions in question bank, and found that there are 5 questions (out of 118) having  a problem when trying editing/deleting them and this message is showing immediately when clicking on "question delete button".






Attachment error.png
Attachment error2.JPG
Average of ratings: -
In reply to Jaifar Al Shizawi

Re: Error in displaying/editing/deleting a question

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

So what happened before this started?  Upgrade?  Server change?  

Where did these questions come from?  Did you import them?  Were they created on the site?

It would appear that either something has corrupted or someone has been messing in your database.  It is stating that the multichoice question does not have any answer options.  

If you do not have a backup that you could try restoring to, you are probably going to have to fix this in the database...

In reply to Jaifar Al Shizawi

Re: Error in displaying/editing/deleting a question

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I think that if you upgrade to the latest 3.5.x, then this is fixed.