When I try to create a profile for my admin user I can submit the form and get no errors, but on save the uid for the profile node gets set to 0 (anonymous). I have tried debugging quite a few ways, but am unclear where to look next. I have added a #validate and #submit handler to the profile_node_form and the uid = 1 in the $form_state for each of those. However if I print out the $node as part of hook_nodeapi with $op = 'update'/'insert' the uid is 0 by that time.

Any clue where I should look next? Is it a permissions thing? UID 1 thing?

Thanks for any comments.

Comments

fago’s picture

Status: Active » Postponed (maintainer needs more info)

For me this seems to work fine? Can you still reproduce this with the beta3 or later?

febbraro’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

This actually had to do with a form_alter I was doing. I was unsetting the authoring options, which made all the new profiles be owned by Anonymous, thus the screw up. I think we can close this one.