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

Log live ajax call leaves debugging messages in log

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Reports, Themes
    • Labels:

      Description

      1. View the live log report
      2. tail -f /path/to/your/log/file
      3. Wait 60 seconds

      Expected

      • Nothing new in the log

      Actual

      • The following is displayed in the log

      debugging: this page did not call $page->set_url(...). using https://fred.moodle.local/im/report/loglive/loglive_ajax.php?logreader=logstore_standard&since=1398240673&page=0&id=0 in \n* line 560 of /lib/pagelib.php: call to debugging()\n* line 768 of /lib/pagelib.php: call to moodle_page->magic_get_url()\n* line 103 of /report/loglive/classes/renderable.php: call to moodle_page->__get()\n* line 48 of /report/loglive/loglive_ajax.php: call to report_loglive_renderable->__construct()\n, referer: https://fred.moodle.local/im/report/loglive/index.php
       
      debugging: coding problem: $page->context was not set. you may have forgotten to call require_login() or $page->set_context(). the page may not display correctly as a result in \n* line 453 of /lib/pagelib.php: call to debugging()\n* line 1498 of /lib/pagelib.php: call to moodle_page->magic_get_context()\n* line 637 of /lib/pagelib.php: call to moodle_page->initialise_theme_and_output()\n* line 812 of /lib/pagelib.php: call to moodle_page->magic_get_theme()\n* line 49 of /report/loglive/loglive_ajax.php: call to moodle_page->get_renderer()\n, referer: https://fred.moodle.local/im/report/loglive/index.php
      

      An Ajax script should not define its URL, perhaps it should define its context, but in any case this should be fixed broadly to allow any Ajax script to get a renderer.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14