Issue Details (XML | Word | Printable)

Key: MDL-19734
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Tim Hunt
Reporter: Ashley Holman
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

"Add a new user" function throws coding_exception

Created: 07/Jul/09 04:55 PM   Updated: 03/Sep/09 01:18 PM
Return to search
Component/s: Administration
Affects Version/s: 2.0
Fix Version/s: 2.0

Issue Links:
Relates
 

Participants: Ashley Holman and Tim Hunt
Security Level: None
QA Assignee: Ashley Holman
Resolved date: 03/Sep/09
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
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!).

Thanks

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Ashley Holman added a comment - 03/Sep/09 01:14 PM
This issue was fixed in the following commit:

commit 320c5e7b5a1b8b8e42e6bd02d052274995c84fac
Author: tjhunt <tjhunt>
Date: Mon Jul 13 04:21:15 2009 +0000

themes: MDL-19077 - Incorrect initialisation order for user/editadvanced.php