After Upgrade to 1.5 Quiz Item Analysis Error Occurs
It also occurs in a new quiz created in 1.5.
Warning: Cannot use a scalar value as an array in /var/www/html/moodle/mod/quiz/report/analysis/report.php on line 657
Any suggestions?
Re: After Upgrade to 1.5 Quiz Item Analysis Error Occurs
Nevertheless it is helpful if you report such warning messages because they might be indicating some problem in the code. However the best place for reporting such issues is the bug tracker. This particular warning message has already been reported in bug 3492.
Re: After Upgrade to 1.5 Quiz Item Analysis Error Occurs
Hi Gustav-
Debugging is set to "no", yet we still see the error messages. Bug 3492 is indeed our school's bug, we reported it this morning.
Thanks!
Re: After Upgrade to 1.5 Quiz Item Analysis Error Occurs
Re: After Upgrade to 1.5 Quiz Item Analysis Error Occurs
Re: After Upgrade to 1.5 Quiz Item Analysis Error Occurs
Re: After Upgrade to 1.5 Quiz Item Analysis Error Occurs
Is this still an issue?
I renamed the offending array to something other than the var being passed, this resulted in no more warnings... however i have not been able to test this to see if it breaks elsewhere.
Re: After Upgrade to 1.5 Quiz Item Analysis Error Occurs
I still have the same problem with a quiz created in 1.5, 17 questions. Glad the bug has been reported. I didn't see it in testing my beta version (but I never ran it on a production site).
Jim.
Re: After Upgrade to 1.5 Quiz Item Analysis Error Occurs
Re: After Upgrade to 1.5 Quiz Item Analysis Error Occurs
Re: After Upgrade to 1.5 Quiz Item Analysis Error Occurs
Hello,
Thanks for your patch. There is also an "headers already send" problem in item analysis when you try to download Excel, OpenOffice or Text file. I submitted a patch for this problem, see http://moodle.org/bugs/bug.php?op=show&bugid=3617
Applying both patchs to mod/quiz/reports/analysis/report.php no errors are now displayed and downloads are OK.
Re: After Upgrade to 1.5 Quiz Item Analysis Error Occurs
Thx,
Ryan
Re: After Upgrade to 1.5 Quiz Item Analysis Error Occurs
I have downloaded the latest beta 1_5 and still receive the following ... tried this on a number of boxes
Warning: Cannot use a scalar value as an array in C:\apachefriends\xampp\htdocs\moodle\mod\quiz\report\analysis\report.php on line 657
Warning: Cannot use a scalar value as an array in C:\apachefriends\xampp\htdocs\moodle\mod\quiz\report\analysis\report.php on line 658
Warning: Cannot use a scalar value as an array in C:\apachefriends\xampp\htdocs\moodle\mod\quiz\report\analysis\report.php on line 663
Warning: Cannot use a scalar value as an array in C:\apachefriends\xampp\htdocs\moodle\mod\quiz\report\analysis\report.php on line 664
Warning: Cannot use a scalar value as an array in C:\apachefriends\xampp\htdocs\moodle\mod\quiz\report\analysis\report.php on line 669
Warning: Cannot use a scalar value as an array in C:\apachefriends\xampp\htdocs\moodle\mod\quiz\report\analysis\report.php on line 670
Re: After Upgrade to 1.5 Quiz Item Analysis Error Occurs
any ideals/ solutions