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

Missing PAGE->url debugging when calling quiz grading page service

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.4.4
    • 4.4 regressions, 4.4.4
    • Quiz
    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-83038-404
    • Hide
      1. Login as admin
      2. Create a course
      3. Add a Quiz activity
      4. Press Add question
      5. Add a question to the quiz
      6. Select Grade items setup from menu
      7. Press Add grade item
      8. Examine webserver logs
      9. Confirm you don't see debugging similar to the following:

        [Fri Sep 06 11:16:19.024459 2024] [php:notice] [pid 23] [client 172.18.0.1:38568] Debugging: This page did not call $PAGE->set_url(...). Using http://localhost:8000/lib/ajax/service.php?sesskey=BG1jWcERn1&info=mod_quiz_create_grade_items,mod_quiz_get_edit_grading_page_data in 
        * line 685 of /lib/pagelib.php: call to debugging()
        * line 966 of /lib/pagelib.php: call to moodle_page->magic_get_url()
        * line 106 of /mod/quiz/classes/output/edit_grading_page.php: call to moodle_page->__get()
        * line 75 of /mod/quiz/classes/external/get_edit_grading_page_data.php: call to mod_quiz\\output\\edit_grading_page->export_for_template()
        * line ? of unknownfile: call to mod_quiz\\external\\get_edit_grading_page_data::execute()
        * line 253 of /lib/external/classes/external_api.php: call to call_user_func_array()
        * line 83 of /lib/ajax/service.php: call to core_external\\external_api::call_external_function()
        , referer: http://localhost:8000/mod/quiz/editgrading.php?cmid=2
        

      Show
      Login as admin Create a course Add a Quiz activity Press Add question Add a question to the quiz Select Grade items setup from menu Press Add grade item Examine webserver logs Confirm you don't see debugging similar to the following: [Fri Sep 06 11:16:19.024459 2024] [php:notice] [pid 23] [client 172.18.0.1:38568] Debugging: This page did not call $PAGE->set_url(...). Using http://localhost:8000/lib/ajax/service.php?sesskey=BG1jWcERn1&info=mod_quiz_create_grade_items,mod_quiz_get_edit_grading_page_data in * line 685 of /lib/pagelib.php: call to debugging() * line 966 of /lib/pagelib.php: call to moodle_page->magic_get_url() * line 106 of /mod/quiz/classes/output/edit_grading_page.php: call to moodle_page->__get() * line 75 of /mod/quiz/classes/external/get_edit_grading_page_data.php: call to mod_quiz\\output\\edit_grading_page->export_for_template() * line ? of unknownfile: call to mod_quiz\\external\\get_edit_grading_page_data::execute() * line 253 of /lib/external/classes/external_api.php: call to call_user_func_array() * line 83 of /lib/ajax/service.php: call to core_external\\external_api::call_external_function() , referer: http://localhost:8000/mod/quiz/editgrading.php?cmid=2

      See https://tracker.moodle.org/secure/attachment/162532/results_09Sep.txt from MDL-81614

      187170:[Fri Sep 06 07:23:30.474040 2024] [php:notice] [pid 5043:tid 5043] [client 192.168.144.19:56362] Debugging: This page did not call $PAGE->set_url(...). Using http://webserverd87a4ab604d75efa/behatrun2/lib/ajax/service.php?sesskey=1Jwe0x0IfP&info=mod_quiz_create_grade_items,mod_quiz_get_edit_grading_page_data in \n* line 685 of /lib/pagelib.php: call to debugging()\n* line 966 of /lib/pagelib.php: call to moodle_page->magic_get_url()\n* line 106 of /mod/quiz/classes/output/edit_grading_page.php: call to moodle_page->__get()\n* line 75 of /mod/quiz/classes/external/get_edit_grading_page_data.php: call to mod_quiz\\output\\edit_grading_page->export_for_template()\n* line ? of unknownfile: call to mod_quiz\\external\\get_edit_grading_page_data::execute()\n* line 253 of /lib/external/classes/external_api.php: call to call_user_func_array()\n* line 83 of /lib/ajax/service.php: call to core_external\\external_api::call_external_function()\n, referer: http://webserverd87a4ab604d75efa/behatrun2/mod/quiz/editgrading.php?cmid=196000
       
      // repeated multiple times
      

      It's from the new service added in MDL-74610 (4.4)

      We've had this problem before, the solution is to just define a dummy URL until MDL-76728 is properly fixed (see the other issues linked from there)

            pholden Paul Holden
            pholden Paul Holden
            Tim Hunt Tim Hunt
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 31 minutes
                31m

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