Hello, I want to migrate a quiz that was build with quiz 4 (7.x-4.0-rc2) that already have questions solved (this because I need the feature related with to display several questions at same time (quiz_page)).

I am having a couple of problems related with to answer a quiz build with Quiz 4 that runs now with Quiz 5. I want to know if problems are related with the process of to upgrade from Quiz 4 to 5 (so I must not to expect that a quiz, question and answer will work after that), or if I need to migrate from Quiz 4 to 5, or if these issues are particular issues with this Drupal and a quiz with questions and answers must work well after Quiz module is upgraded from 4 to 5.

These are the couple of problems:

1), If I a user enter an uncompleted quiz, and try to answer a question, the following error appears.

Fatal error: Call to a member function view() on boolean in /var/www/gluky1_clean/sites/all/modules/quiz/question_types/quiz_question/quiz_question.module on line 990

(I think that is caused because an answer in Quiz 4 was not an entity, and seems that now in Quiz 5 the answers are entities, and the member function view() does not exist for answers builded with Quiz 4.)

2) If I change the settings of a quiz, for example disabling the option related with to repeat until the answer is correct, seems that the change is not applied to the quiz because if a new user try to answer a question, the message related with to answer the correct question still is displayed, so seem that the quiz/question is not receiving the change.

A Quiz, questions and answers still must work well after the upgrade from Quiz 4 to Quiz 5? or Quiz, answer and questions must be migrated from Quiz 4 to Quiz 5? or there is no way to do that and I must to start from zero the quiz and the questions?

Thanks in advance.

Comments

cigotete created an issue. See original summary.

djdevin’s picture

Hi,

Quiz upgrades from 4->5 are supported.

1) I am unsure why this is happening right now. Does it only happen for users who were in the middle of a quiz?

2) This is the same behavior as 4 - if you change a setting, it will only apply to new attempts on that quiz due to revisioning (unless you turn off revisioning).

cigotete’s picture

Thanks djdevin for your quick answer.

About the first point, happens for i) users that already have some answers in the quiz, and ii) users that will enter for first time to the quiz.

About the second point, this is weird, because I have no problems in Quiz 4 with to change a quiz and the changes are applied on new users that will answer the quiz for a first time (for example disable to repeat until the answer is correct). If I am understanding well seems that this is an unexpected behavior :-(.

When you said upgrades from 4->5 are supported., are you referring that the expected behavior is that quizzes, questions and answers already made with Quiz 4 must work correctly with Quiz 5 after the upgrade? even a quiz already taken? if this is correct, do you have any documentation or issue related? maybe I am not doing well the process.

djdevin’s picture

Yes it's expected that they would work after the upgrade.

But it's hard to envision all the use cases, so if it doesn't work the best thing you could do you help is to provide steps to reproduce.

For example

1. install quiz 7.x-4.x
2. create some quiz with some questions
3. some other steps
3. upgrade to quiz 7.x-5.x

cigotete’s picture

Thanks for the reply. the steps to reproduce are:

- Install quiz (7.x-4.0-rc2).
- Create 2 users to test the scenarios (aka, user1, user2).
- Create some quiz with 2 questions (multichoice was my case)
- Enter with user1 and complete the quiz
- Enter with user2 and solve only 1 question.
- Upgrade to quiz 7.x-5.0-beta4
- Enter with user1 and try to resolve again the quiz, the error message will be displayed when try to solve the quiz.
- Enter with user2 and try to resolve again the quiz, the error message will be displayed when try to solve the quiz.

Thanks.

cigotete’s picture

Was not made the migration from Quiz 4 to Quiz 5. Tthanks for your help.

cigotete’s picture

Status: Active » Closed (outdated)