Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      Windows XP
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_15_STABLE
    • Rank:
      7604

      Description

      I have upgraded to 1.5+ and get the following errors when I try to view Item Analysis in Reports:

      Warning: Cannot use a scalar value as an array in xxx/mod/quiz/report/analysis/report.php on line 657

      Warning: Cannot use a scalar value as an array in xxx/mod/quiz/report/analysis/report.php on line 658

      Warning: Cannot use a scalar value as an array in xxx/mod/quiz/report/analysis/report.php on line 663

      Warning: Cannot use a scalar value as an array in xxx/mod/quiz/report/analysis/report.php on line 664

      Warning: Cannot use a scalar value as an array in xxx/mod/quiz/report/analysis/report.php on line 669

      Warning: Cannot use a scalar value as an array in xxx/mod/quiz/report/analysis/report.php on line 670

      I get this for EVERY student that has taken the quiz.

      Also, when I try to download the Excel file I get...

      Warning: Cannot modify header information - headers already sent by (output started at xxx/mod/quiz/report/analysis/report.php:657) in xxx/mod/quiz/report/analysis/report.php on line 453

      Warning: Cannot modify header information - headers already sent by (output started at xxx/mod/quiz/report/analysis/report.php:657) in xxx/mod/quiz/report/analysis/report.php on line 454

      Warning: Cannot modify header information - headers already sent by (output started at xxx/mod/quiz/report/analysis/report.php:657) in xxx/mod/quiz/report/analysis/report.php on line 455

      Warning: Cannot modify header information - headers already sent by (output started at xxx/mod/quiz/report/analysis/report.php:657) in xxx/mod/quiz/report/analysis/report.php on line 456

      Warning: Cannot modify header information - headers already sent by (output started at xxx/mod/quiz/report/analysis/report.php:657) in xxx/mod/quiz/report/analysis/report.php on line 457

      Warning: Cannot modify header information - headers already sent by (output started at xxx/mod/quiz/report/analysis/report.php:657) in xxx/mod/quiz/report/analysis/report.php on line 458

      ?? ? ?> ?? ???????? ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? l ? Item Analysis Report= ?%r 8 X 1 ?? Arial1 ?? Arial1 ?? Arial1 ?? Arial1 ?? Arial1 ?  Arial1 ? Arial1 ? ? Arial1 ? ? Arial ? 0.0%? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ? ? ? ? ? ? ? ? ? ? @? ? H? ? ? ? ? ? ? # ? ? ? ? ? “ €?’?8????????€€€€€€€€€?€€€™™?™3f????ff?€€f??€€€€€???????™™?™?™3f?3??™????™?fff™–––3f3™f333™3™3f33™333… X Item Analysis Report l ? * + ‚  ? ?d X X ???? Item Analysis Report Q# Q. type Question name Question text Answer's text partial

      credit R.

        Activity

        Hide
        Martin Dougiamas added a comment -

        From Jean_Michel Vedrine (jean-michel.vedrine at wanadoo.fr) Wednesday, 29 June 2005, 04:52 PM:

        Hello,

        I have a fix for the headers already sent by problem and some other things related to group selection. See attached text file.

        I beleive that the Cannot use a scalar value as an array is a problem with the way the array_reduce function is used because the 3rd parameter can't be an array.

        From Jean_Michel Vedrine (jean-michel.vedrine at wanadoo.fr) Wednesday, 29 June 2005, 11:04 PM:

        I forgot to add in the text file that you need to remove or comment all other calls to the print_header_and_tabs function !!

        From Gustav Delius (gwd2 at york.ac.uk) Saturday, 23 July 2005, 05:01 PM:

        I have comitted Jean-Michel's fix. Thanks Jean-Michel. See http://moodle.org/mod/forum/discuss.php?d=27553

        Show
        Martin Dougiamas added a comment - From Jean_Michel Vedrine (jean-michel.vedrine at wanadoo.fr) Wednesday, 29 June 2005, 04:52 PM: Hello, I have a fix for the headers already sent by problem and some other things related to group selection. See attached text file. I beleive that the Cannot use a scalar value as an array is a problem with the way the array_reduce function is used because the 3rd parameter can't be an array. From Jean_Michel Vedrine (jean-michel.vedrine at wanadoo.fr) Wednesday, 29 June 2005, 11:04 PM: I forgot to add in the text file that you need to remove or comment all other calls to the print_header_and_tabs function !! From Gustav Delius (gwd2 at york.ac.uk) Saturday, 23 July 2005, 05:01 PM: I have comitted Jean-Michel's fix. Thanks Jean-Michel. See http://moodle.org/mod/forum/discuss.php?d=27553
        Hide
        Michael Blake added a comment -

        Assigning to a valid user.

        Show
        Michael Blake added a comment - Assigning to a valid user.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: