Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-43473

Self registration page fails with text area custom profile field

    XMLWordPrintable

Details

    • MOODLE_26_STABLE
    • Hide

      Set "Display on signup page?" to "No" for the custom profile field

      Show
      Set "Display on signup page?" to "No" for the custom profile field

    Description

      1. Navigate to Site admin > Users > Accounts > User profile fields
      2. Click "Create a new profile field:" and select "Text area"
      3. Set "Display on signup page?" to "Yes"
      4. Navigate to Site admin > Plugins > Authentication > Manage authentication
      5. Ensure "Email-based self-registration" is enabled (default)
      6. Enable " Self registration" (registerauth)
      7. Open a new browser for the student
      8. Click the "Log in" link in top-right corner
      9. 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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aid-academy Ivo Mynter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.