Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70750

In Survey activity the Response report -> Question doesn't work at all

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE
    • Pull 3.9 Branch:
    • Pull 3.10 Branch:
      MDL-70750-310
    • Pull 3.11 Branch:
      MDL-70750-311
    • Pull Master Branch:
      MDL-70750-master
    • Testing Instructions:
      Hide

      Requirements

      1. PHP 7.4

      Setup

      1. Login as an admin.
      2. Access to "Site administration > Development > Debugging" and make sure Debug level is set to developer.
      3. Create a new course and enrol one student.
      4. Add a "Survey" activity to a course.
        • Survey type: "COLLES (Actual)".

      Testing instructions

      1. Login as a student and add a random answer.
      2. Submit your answer by pushing the button "Click here to continue".
      3. Logout.
      4. Login as an admin.
      5. From the activity cog, choose "Question" from the "Response report" section.
      6. Ensure you get a page with a 4x6 + 1 graphs.
      7. Access to the Apache error log:

        tail -f /var/log/apache2/error.log

      8. Ensure there is no notice in PHP error log like 'PHP Notice: Trying to access array offset on the value of type null in lib/graphlib.php on line 310, referer: http://xxxxx...
      Show
      Requirements PHP 7.4 Setup Login as an admin. Access to "Site administration > Development > Debugging" and make sure Debug level is set to developer. Create a new course and enrol one student. Add a "Survey" activity to a course. Survey type: "COLLES (Actual)". Testing instructions Login as a student and add a random answer. Submit your answer by pushing the button "Click here to continue". Logout. Login as an admin. From the activity cog, choose "Question" from the "Response report" section. Ensure you get a page with a 4x6 + 1 graphs. Access to the Apache error log: tail -f /var/log/apache2/error.log Ensure there is no notice in PHP error log like 'PHP Notice: Trying to access array offset on the value of type null in lib/graphlib.php on line 310, referer: http://xxxxx ...
    • Sprint:
      Moppies Kanban

      Description

      Add a "Survey" activity to a course.
      Choose:

      • Name: whatever you like
      • Survey type: "COLLES (Actual)"
        Save and display
        Add a random answer
        Submit your answer pushing the button "Click here to continue"

      From "Administration" block choose "Response report" and then the sub-item "Question"
      You are supposed to get a page with a 4x6 + 1 graphs
      but they are not displayed leaving in the page only links without corresponding graphs.

      If you look at the html source code of the page you understand that the graphs are expected from an URL like:
      http://path/to/your/moodle/test/site/mod/survey/graph.php?id=76&qid=1&group=0&type=question.png

      If you call that link in a different browser page
      you get a long list of:

      ( ! ) Notice: Trying to access array offset on value of type null in path/to/your/moodle/test/site/lib/graphlib.php on line 310
      Call Stack

      1. Time Memory Function Location
        1 0.0002 378216 {main}( ) .../graph.php:0
        2 0.2226 4141952 graph->draw_stack( ) .../graph.php:145
        3 0.2288 4258104 graph->draw_data( ) .../graphlib.php:267
        4 0.2288 4258256 graph->draw_set( ) .../graphlib.php:352

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ilyatregubov Ilya Tregubov
              Reporter:
              daniss Daniele Cordella
              Peer reviewer:
              Carlos Escobedo Carlos Escobedo
              Integrator:
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Jul/21

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 45 minutes
                  2h 45m