Error when saving quiz

Re: Error when saving quiz

by Nicole Swan -
Number of replies: 0
Well, to be honest, I wasn't sure what I did to fix it. So, today I went back in to try a few things to try to recreate the behavior.

It seems that the error is only thrown if one tries to create and save a quiz without adding any questions. In this case, the quiz is added correctly to the quiz and event tables in the database. However, it outputs an error that "Course module could not be added," or, in other words, the quiz isn't added to mdl_course_modules.

If I save a quiz only after adding questions, then everything works fine. I understand that most people will be adding questions before saving, but a clearer error might be helpful.

As for my use of PHP5 and MySQL 4.1.1a -- We are using PHP5 to use the more advanced OO capabilities it possesses. Also, MySQL 4.1a is recommended for development work, and as MySQL follows a very strict release process, I have no qualms using it for just that. This is all on a development server after all.

Thanks for the reply,

Nicole