-
Task
-
Resolution: Fixed
-
Minor
-
3.1
-
MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
wip-
MDL-53274-master -
If WS is called from AJAX request and it returns a templateable element, we need to call $PAGE->get_renderer(). If page context was not set it shows a debugging message. In AJAX requests debugging messages are muted.
We keep missing such debugging messages (that pollute error.log), one of them in 3.0 (corrected in 3.0 branch of MDL-53254)
Example:
[Sat Feb 27 11:06:16.554674 2016] [:error] [pid 20755] [client 127.0.0.1:36868] 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
|
* line 453 of /lib/pagelib.php: call to debugging()
|
* line 1525 of /lib/pagelib.php: call to moodle_page->magic_get_context()
|
* line 637 of /lib/pagelib.php: call to moodle_page->initialise_theme_and_output()
|
* line 812 of /lib/pagelib.php: call to moodle_page->magic_get_theme()
|
* line 458 of /lib/external/externallib.php: call to moodle_page->get_renderer()
|
* line ? of unknownfile: call to core_external::fetch_notifications()
|
* line 83 of /lib/ajax/service.php: call to call_user_func_array()
|
referer: http://localhost/mysql_master/blog/index.php?courseid=2
|
- caused a regression
-
MDL-53742 Revert exception throwing if page context is not set (MDL-53274)
-
- Closed
-
- has a non-specific relationship to
-
MDL-55456 Course category permission error when adding a role
-
- Closed
-
- has been marked as being related by
-
MDL-30811 Introduce notification stack to moodle sessions
-
- Closed
-
- is blocked by
-
MDL-53254 Replace as much as possible in tag management with inplace editable
-
- Closed
-