When trying to create a new user on admin/user/user/create with "Use on administrative user creation form" active i get "The username does not exist on admin user create" error.

Comments

ilakshmir’s picture

I also encounter this problem.

solipsist’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta3
Status: Active » Needs review
StatusFileSize
new1.68 KB

Happens also in beta 3.

The cause is that the Content Profile Registration module attempts to run a node object through node_validate() before the user account has been created. This makes node_validate() fail and sets a form error since the user account set as author of the node doesn't exist (yet).

The easiest fix is to simply unset the uid and name fields of the node object that Content Profile Register passes to node_validate(). I've attached a patch that does exactly that. It was made using Git as I don't have time right now to make a proper CVS patch but it should be enough for the module maintainers to fix the issue for now.

andreiashu’s picture

StatusFileSize
new714 bytes

Here is an updated patch

aether’s picture

I can confirm that this patch fixes this issue.

gmclelland’s picture

I can also confirm this patch works.

andreiashu’s picture

Status: Needs review » Reviewed & tested by the community

I think this is RTBC.
Lets hope that fago can have a look and commit this soon.

benjaminlhaas’s picture

I also confirm that this patch works.

fago’s picture

Status: Reviewed & tested by the community » Fixed

Please file future patches from the modules root directory.
I improved the commenting a bit and committed it. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.