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?
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.
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.
Thx,
Ryan
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