Open charlieh2016 opened 8 years ago
That is a pretty massive problem!
I can confirm this issue, and that it's been present for quite some time. First noticed it when building WP Pro Quiz Completed addon. That plugin pulls the stats for display in the front-end, and we found during testing no matter how many times you take the quiz only the first result is stored. Additional attempts are ignored, as the stats class seems to check for an existing result and if it's found it does not update.
Thanks for the update. We have managed to work round this issue by creating our own results system and querying the database by comparing and joining quiz info with quiz statistics and displaying the results in a custom accordion style results table. This might be of use to you. On another note is there anyway of having 1 text field validate multiple choices of x ammount of answers in the free choice?On 14 Dec 2016 02:16, Joel Milne notifications@github.com wrote:I can confirm this issue, and that it's been present for quite some time. First noticed it when building WP Pro Quiz Completed addon. That plugin pulls the stats for display in the front-end, and we found during testing no matter how many times you take the quiz only the first result is stored. Additional attempts are ignored, as the stats class seems to check for an existing result and if it's found it does not update.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
@charlieh2016 it sounds you're saying that the stats data is being stored properly (every attempt at quiz is stored) but it's just only showing the first attempt? The initial report I think said that the database table itself wasn't storing... I think in terms of fixing this we need to identify which it is.
I'm going to run some tests.
I've found that the setting Statistics IP-lock blocks stats storage. It's set to 1-day by default so if you're not aware of that and you're running a series of tests it creates the effect of only storing the first quiz result. Setting the IP-lock to 0 to deactivate, we find all the storage is happening normally.
I think 1-day is a bit heavy of a restriction for a default setting, wouldn't a few minutes be enough to do the job? I'm probably going to make that optional in QuizMaster project
Hi, I have just noticed that when taking a quiz/test a second time it doesn't store any information in the database what so ever.
This issue needs to be resolved before I can continue with the current development project.