-
Bug
-
Resolution: Fixed
-
Major
-
2.6
-
MOODLE_26_STABLE
-
MOODLE_26_STABLE
-
w01_
MDL-43196_m27_signupfiles -
-
-
2
-
BACKEND Sprint 8
I use email based self registration for users to register on my site. When I click on 'Create New User' on the front page, it shows up an error 'Invalid User'.
I had upgraded the site from 2.5 where everything worked great.
Replication steps:
- 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()
|
The rest of the site works great - this is the only error.
- is duplicated by
-
MDL-43473 Self registration page fails with text area custom profile field
- Closed