-
Bug
-
Resolution: Fixed
-
Minor
-
2.7
-
MOODLE_27_STABLE
-
MOODLE_27_STABLE
-
MDL-45237-master -
- Run behat with --tags=@report_loglive
- tail the web server error log whilst behat running and ensure no debugging notices are logged.
- Ensure behat passes
- View the live log report
- tail -f /path/to/your/log/file
- 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.
- Testing discovered
-
MDL-45203 convert remaining add_to_log() from login/lib.php
-
- Closed
-