Hi szponix93, thanks!
First – these particular warnings are not errors – so there is nothing to worry about. HD Quiz is working just fine!
Just looking at those logs, what I *think* happened is that you had a question and saved it without selecting which of the answers was correct. So then when the question loads, HD Quiz assumes that at least one of the possible answers is correct, but since you didn’t set one, it fails to set this variable. Users will never see these notices, but your server will silently save them to your log file for later references. Older PHP versions didn’t care about this at all, but the newer versions are more strict and started printing these warnings.
You’re not the only user to ask about this in the few months. I’ll either up the minimum PHP requirement in the next version or I’ll silence any warnings from those functions in the next version of HD Quiz. Don’t want any users thinking something isn’t working right!
For yourself, I recommend doing the following. This isn’t necessary, but might help.
- Go to HD Quiz -> About / Options and save.
- Review each of your questions to ensure each has at least one answer and that at least one answer is marked as “correct”.
- Delete your error log (or note the last date) so we can easily tell when / if and new messages come in.
If any new logs come in, let me know and I can either A) push out an update next week, or B) show you how to silence the warnings so that they do not clutter your log file.
Thank you very much! 🙂
At the moment I have only one quiz with one question and this contains correct answer. But I will check this 🙂
If this is safe, it’s ok 🙂
Yup; you’re safe to continue! Still, it’s annoying to see logs like that, so I’ll do what I can to squash them on my end in the next update.
