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

The long-term solution to exclude $PAGE->url check for Webservice


    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.0.5, 4.1, 4.2
    • Quiz

      This issue was made to make a long-term solution to the problems found on MDL-75914.

      Currently, if a student uses Atto as an editor and then works on a quiz with essay-type questions, then the system/app calls Webservice to get attempt data for the student, it will trigger a debugging output:

      Curl command to get attempt data:

      curl --location --request POST 'http://mandarin.local/sm/webservice/rest/server.php?moodlewsrestformat=json' \
      --header 'Content-Type: application/x-www-form-urlencoded' \
      --data-urlencode 'attemptid=4' \
      --data-urlencode 'page=0' \
      --data-urlencode 'wsfunction=mod_quiz_get_attempt_data' \
      --data-urlencode 'wstoken=c2609ab77a4a51e01aeb129fb57a92da'

       Debugging output:

      [Fri Oct 07 12:37:57.037742 2022] [php7:notice] [pid 14508] [client] This page did not call $PAGE->set_url(...). Using http://mandarin.local/sm/webservice/rest/server.php?moodlewsrestformat=json
      [Fri Oct 07 12:37:57.037811 2022] [php7:notice] [pid 14508] [client] Debugging: This page did not call $PAGE->set_url(...). Using http://mandarin.local/sm/webservice/rest/server.php?moodlewsrestformat=json in \n* line 676 of /lib/pagelib.php: call to debugging()\n* line 964 of /lib/pagelib.php: call to moodle_page->magic_get_url()\n* line 189 of /lib/editor/atto/lib.php: call to moodle_page->__get()\n* line 159 of /lib/editor/atto/lib.php: call to atto_texteditor->get_init_params()\n* line 321 of /question/type/essay/renderer.php: call to atto_texteditor->use_editor()\n* line 53 of /question/type/essay/renderer.php: call to qtype_essay_format_editor_renderer->response_area_input()\n* line 378 of /question/engine/renderer.php: call to qtype_essay_renderer->formulation_and_controls()\n* line 102 of /question/engine/renderer.php: call to core_question_renderer->formulation()\n* line 113 of /question/behaviour/behaviourbase.php: call to core_question_renderer->question()\n* line 907 of /question/engine/questionattempt.php: call to question_behaviour->render()\n* line 461 of /question/engine/questionusage.php: call to question_attempt->render()\n* line 1779 of /mod/quiz/attemptlib.php: call to question_usage_by_activity->render_question()\n* line 1740 of /mod/quiz/attemptlib.php: call to quiz_attempt->render_question_helper()\n* line 989 of /mod/quiz/classes/external.php: call to quiz_attempt->render_question()\n* line 1076 of /mod/quiz/classes/external.php: call to mod_quiz_external::get_attempt_questions_data()\n* line 1516 of /webservice/lib.php: call to mod_quiz_external::get_attempt_data()\n* line 1362 of /webservice/lib.php: call to webservice_base_server->execute()\n* line 44 of /webservice/rest/server.php: call to webservice_base_server->run()\n

      The short-term solution has been worked out as a temporary solution. This issue aims to create a long-term (permanent) solution.

            Unassigned Unassigned
            meirza.arson@moodle.com Meirza
            0 Vote for this issue
            3 Start watching this issue


                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.