Can't edit my own bio
riemann - July 5, 2008 - 09:15
| Project: | Bio |
| Version: | 5.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
After I installed the bio module and added a few CCK fields to the content type I create a new user. Once logged in I go to the Biography tab and change one of the fields. When clicking submit I get the following error:
"This user already has a Biography. Edit it here or assign this entry to another user."
If I click on "here" I get an "Access denied" page.
What can I do to edit my own bio?
Thanks,
riemann

#1
I could narrow down the problem a little bit:
In the function bio_nodeapi (in bio.module, around line 237) I get the value 0 for $account->uid even though I'm not logged in as the admin but as another user. Then of course
if ($nid && ($nid != $node->nid)) {form_set_error('name', t('This user already has a @bio. Edit it <a href="@link">here</a> or assign this entry to another user.', array('@bio' => node_get_types('name', $node), '@link' => url('node/'. $nid .'/edit'))));
}
For now I got around the problem by uncommenting those lines but there must be something wrong that leads to $account->uid being 0 even though I'm logged in as user 17. Any ideas?
#2
Sorry, accidentally changed the title of the issue...
#3
This sounds like an old issue. Can you confirm you're running the latest release of Bio?