As the administrative user, I go to "admin/user/create", fill in the form, and click on the 'Create Account" button. Drupal gives me a blank screen. When I go back to "admin/user/" I see that the account was successfully created.
I believe that this is due to the function user_admin_create() returning 'void' on success. Hence user_create() returns nothing, see http://drupal.org/node/21441.
Filter.module, legacy.module, locale.module, node.module, profile.module, system.module, upload.module, all contain instances of "return;". These may also be subject to this problem.
Comments
Comment #1
puregin commentedHere's a quick patch - this returns a string "An account has been created.". It's a little redundant since the same information is presented in the drupal_set_message() call. Any suggestions for more useful text, or another fix?
Djun
Comment #2
baudolino commentedThis is a duplicate issue of http://drupal.org/node/21344. Follow the link for another proposed fix.
Comment #3
baudolino commentedMarked as duplicate.
Comment #4
puregin commentedAh, thanks! I did a brief search but didn't find the previous issue, for some reason. Looks like the proposed solution at http://drupal.org/node/21344 should work for the various other instances of this bug.
Djun
Comment #5
dries commentedA drupal_goto() is probably better here. All status messages must be printed using drupal_set_message().