Uploaded image for project: 'Moodle'
  1. Moodle
  2. 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

XMLWordPrintable

    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • w01_MDL-43196_m27_signupfiles
    • Hide

      do not show text fields on the signup page

      Show
      do not show text fields on the signup page
    • Hide

      1/ add text area user field and enable it on signup page
      2/ enable user signup
      3/ try to signup
      4/ verify the file management plugin is still available elsewhere like before

      Show
      1/ add text area user field and enable it on signup page 2/ enable user signup 3/ try to signup 4/ verify the file management plugin is still available elsewhere like before
    • 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:

      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()
      

      The rest of the site works great - this is the only error.

            skodak Petr Skoda
            macluck Paul McCullough
            Andrew Lyons Andrew Lyons
            Sam Hemelryk Sam Hemelryk
            Mark Nelson Mark Nelson
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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