-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
2.6
-
MOODLE_26_STABLE
-
- Navigate to Site admin > Users > Accounts > User profile fields
- Click "Create a new profile field:" and select "Text area"
- Set "Display on signup page?" to "Yes"
- Navigate to Site admin > Plugins > Authentication > Manage authentication
- Ensure "Email-based self-registration" is enabled (default)
- Enable " Self registration" (registerauth)
- Open a new browser for the student
- Click the "Log in" link in top-right corner
- Click "Create a new account"
Expected behaviour: Registering a new account with user profile fields should be possible.
Actual result: The following error is shown.
Invalid user
|
|
More information about this error
|
|
Debug info: SELECT id FROM {user} WHERE id = ? AND deleted = ?
|
[array (
|
0 => 0,
|
1 => 0,
|
)]
|
Error code: invaliduser
|
Stack trace:
|
line 1390 of \lib\dml\moodle_database.php: dml_missing_record_exception thrown
|
line 1366 of \lib\dml\moodle_database.php: call to moodle_database->get_record_select()
|
line 6357 of \lib\accesslib.php: call to moodle_database->get_record()
|
line 44 of \lib\editor\tinymce\plugins\managefiles\lib.php: call to context_user::instance()
|
line 443 of \lib\editor\tinymce\classes\plugin.php: call to tinymce_managefiles->update_init_params()
|
line 192 of \lib\editor\tinymce\lib.php: call to editor_tinymce_plugin::all_update_init_params()
|
line 87 of \lib\editor\tinymce\lib.php: call to tinymce_texteditor->get_init_params()
|
line 361 of \lib\form\editor.php: call to tinymce_texteditor->use_editor()
|
line 183 of \lib\pear\HTML\QuickForm\Renderer\Tableless.php: call to MoodleQuickForm_editor->toHtml()
|
line 2781 of \lib\formslib.php: call to HTML_QuickForm_Renderer_Tableless->renderElement()
|
line 403 of \lib\pear\HTML\QuickForm\element.php: call to MoodleQuickForm_Renderer->renderElement()
|
line 1632 of \lib\pear\HTML\QuickForm.php: call to HTML_QuickForm_element->accept()
|
line 1702 of \lib\formslib.php: call to HTML_QuickForm->accept()
|
line 1675 of \lib\pear\HTML\QuickForm.php: call to MoodleQuickForm->accept()
|
line 435 of \lib\pear\HTML\Common.php: call to HTML_QuickForm->toHtml()
|
line 204 of \lib\pear\HTML\QuickForm\DHTMLRulesTableless.php: call to HTML_Common->display()
|
line 929 of \lib\formslib.php: call to HTML_QuickForm_DHTMLRulesTableless->display()
|
line 88 of \login\signup.php: call to moodleform->display()
|
Critical (not in security aspects) for production: no new users can log in; cause of error not self explanatory -> deep investigation necessary.
I checked it with my installation, NOT tested with a fresh installation. But other people hat the same issue (-> https://moodle.org/mod/forum/discuss.php?d=245814; also stack trace available in this post).
Greetings, merry chrismas & happy new year!
- Ivo
- duplicates
-
MDL-43196 After upgrading to 2.6 my email-based-self-registration serves up an error when I click on 'Create New User' on the front page
- Closed