-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.5
-
MOODLE_311_STABLE
-
MOODLE_311_STABLE
-
When trying to create a token for a user who is not allowed to view the given service, the following exception is thrown, rather than the form showing the validation error and re-rendering:
Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
|
|
More information about this error
|
Debug info: Object of class core_user\fields could not be converted to string
|
Error code: codingerror
|
Stack trace:
|
|
line 427 of /lib/setuplib.php: coding_exception thrown
|
line 1643 of /lib/dml/moodle_database.php: call to default_error_handler()
|
line 1622 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
|
line 59 of /webservice/classes/token_form.php: call to moodle_database->get_record()
|
line 143 of /lib/form/autocomplete.php: call to core_webservice\token_form->core_webservice\{closure}()
|
line ? of unknownfile: call to MoodleQuickForm_autocomplete->{closure}()
|
line 149 of /lib/form/autocomplete.php: call to preg_replace_callback()
|
line 192 of /lib/pear/HTML/QuickForm/Renderer/Tableless.php: call to MoodleQuickForm_autocomplete->toHtml()
|
line 3292 of /lib/formslib.php: call to HTML_QuickForm_Renderer_Tableless->renderElement()
|
line 430 of /lib/pear/HTML/QuickForm/element.php: call to MoodleQuickForm_Renderer->renderElement()
|
line 1641 of /lib/pear/HTML/QuickForm.php: call to HTML_QuickForm_element->accept()
|
line 1996 of /lib/formslib.php: call to HTML_QuickForm->accept()
|
line 1684 of /lib/pear/HTML/QuickForm.php: call to MoodleQuickForm->accept()
|
line 445 of /lib/pear/HTML/Common.php: call to HTML_QuickForm->toHtml()
|
line 1027 of /lib/formslib.php: call to HTML_Common->display()
|
line 78 of /admin/webservice/tokens.php: call to moodleform->display()
|
- is a regression caused by
-
MDL-67748 Improve the web services tokens management
- Closed