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.

CommentFileSizeAuthor
#1 blank_user_add_page.patch517 bytespuregin

Comments

puregin’s picture

StatusFileSize
new517 bytes

Here'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

baudolino’s picture

This is a duplicate issue of http://drupal.org/node/21344. Follow the link for another proposed fix.

baudolino’s picture

Marked as duplicate.

puregin’s picture

Ah, 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

dries’s picture

A drupal_goto() is probably better here. All status messages must be printed using drupal_set_message().