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

"Add a new user" function throws coding_exception


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.0
    • 2.0
    • Administration
    • None

      I'm running 2.0 dev (Build: 20090707). After installation, when I go to Site Administration -> Users -> Accounts -> Add a new user, I receive this error message:

      Coding error detected, it must be fixed by a programmer: The theme has already been set up for this page ready for output. Therefore, you can no longer change the theme, or anything that might affect what the current theme is, for example, the course.

      More information about this error
      Stack trace when the theme was set up:

      • line 793 of /lib/setuplib.php: call to moodle_page->initialise_theme_and_output()
      • line ? of unknownfile: call to bootstrap_renderer->__call()
      • line 1091 of /lib/formslib.php: call to bootstrap_renderer->old_icon_url()
      • line 144 of /lib/formslib.php: call to MoodleQuickForm->MoodleQuickForm()
      • line 81 of /user/editadvanced.php: call to moodleform->moodleform()

      Stack trace:

      • line 1132 of /lib/pagelib.php: coding_exception thrown
      • line 522 of /lib/pagelib.php: call to moodle_page->ensure_theme_not_set()
      • line 1996 of /lib/moodlelib.php: call to moodle_page->set_course()
      • line 5005 of /lib/adminlib.php: call to require_login()
      • line 190 of /user/editadvanced.php: call to admin_externalpage_setup()

      I tried this on multiple servers and go the same error.

      This is a showstopper for our clients who want to trial 2.0 (they will be great testers for you!).


            timhunt Tim Hunt
            ashleyholman Ashley Holman
            Ashley Holman Ashley Holman
            0 Vote for this issue
            1 Start watching this issue


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