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

Undefined variables in survey graph generator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7
    • Fix Version/s: BACKEND
    • Component/s: Survey
    • Labels:
    • Affected Branches:
      MOODLE_27_STABLE

      Description

      After completing a couple of responses in a survey, I noticed that the graph was not shown and instead shows a broken image icon. Viewing the graph on it's own, I get:

      Notice: Undefined variable: question in /private/srv/www/loganberry.local/data/im/moodle/mod/survey/graph.php on line 303

      Notice: Undefined variable: question in /private/srv/www/loganberry.local/data/im/moodle/mod/survey/graph.php on line 305

      Notice: Trying to get property of non-object in /private/srv/www/loganberry.local/data/im/moodle/mod/survey/graph.php on line 305

      Notice: Undefined variable: buckets1 in /private/srv/www/loganberry.local/data/im/moodle/mod/survey/graph.php on line 369

      Warning: max(): When only one parameter is given, it must be an array in /private/srv/www/loganberry.local/data/im/moodle/mod/survey/graph.php on line 369

      Notice: Undefined variable: buckets2 in /private/srv/www/loganberry.local/data/im/moodle/mod/survey/graph.php on line 370

      Warning: max(): When only one parameter is given, it must be an array in /private/srv/www/loganberry.local/data/im/moodle/mod/survey/graph.php on line 370

      Notice: Undefined variable: names in /private/srv/www/loganberry.local/data/im/moodle/mod/survey/graph.php on line 376

      Notice: Undefined variable: buckets1 in /private/srv/www/loganberry.local/data/im/moodle/mod/survey/graph.php on line 378

      Notice: Undefined variable: buckets2 in /private/srv/www/loganberry.local/data/im/moodle/mod/survey/graph.php on line 381

      Notice: Undefined variable: stdev1 in /private/srv/www/loganberry.local/data/im/moodle/mod/survey/graph.php on line 385

      Notice: Undefined variable: stdev2 in /private/srv/www/loganberry.local/data/im/moodle/mod/survey/graph.php on line 388

      Warning: array_merge(): Argument #2 is not an array in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 1006

      Warning: array_merge(): Argument #1 is not an array in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 1006

      Warning: Division by zero in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 1021

      Warning: Division by zero in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 1023

      Warning: Division by zero in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 707

      Warning: Division by zero in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 716

      Warning: Invalid argument supplied for foreach() in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 746

      Warning: Invalid argument supplied for foreach() in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 746

      Notice: Undefined index: text in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 793

      Warning: Invalid argument supplied for foreach() in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 793

      Notice: Undefined index: tick_x in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 567

      Warning: Invalid argument supplied for foreach() in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 567

      Warning: Invalid argument supplied for foreach() in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 302

      Warning: Invalid argument supplied for foreach() in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 302

      Warning: Invalid argument supplied for foreach() in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 302

      Warning: Invalid argument supplied for foreach() in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 302

      Warning: Cannot modify header information - headers already sent by (output started at /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php:302) in /private/srv/www/loganberry.local/data/im/moodle/lib/graphlib.php on line 1491
      �PNG  IHDR��R-�oPLTE�����R��������������������f��f�̙�������������������������333fff������___???������H���WIDATx���[r�F@Q�@� Z���1 ���e;���sjʠ�鞯[ $�4�o?��{��i?��{��i?��{��i?��

      Unknown macro: {���㰌y��tۋq�ϧe>�LO��4ϧ��U�t-�u�}

      �Wc>-k˴�2Ʋv����r��^;�2���U��:<�q�n���Z�a�ן�en;�e;^O��y������jܵ�;��a��\��k*�|x=}ڧ�ks� ��q�n�����<\����%lo�o�y�jܵ��8���e�v�}�e6�L�jܵ�[�e�E|���k�;ӯ����q�n�n�������������nY�����

      Unknown macro: {�;vv�Z���y�������������������;vv��C�1N�i����������y��~�9�������m�=����.��2ֶ�wlO_��Ǜ��������޿1s}

      ox�n��� |��K� ��i���wOb�O "��!&B�����G�����'"ܾ�{:�X���I�p��p��ü�W��I�p�OE8����t8���e��6�4��XD_��+�|���t9�����r��"�/��{����7����ypLnG��>w;��z8l>��$B��{"\��y�nG�σnG����p 3?��3��v�+�-ߘ��!&B��b~�b����C"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b"��!&B��b�!��_��QJR]TU��IEND�B`�

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              dobedobedoh Andrew Nicols
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: