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

Comments

riemann’s picture

Title: Can't edit my own bio » More details

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'))));
}

doesn't work and I end up getting the error message.

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?

riemann’s picture

Title: More details » Can't edit my own bio

Sorry, accidentally changed the title of the issue...

Allie Micka’s picture

Status: Active » Postponed (maintainer needs more info)

This sounds like an old issue. Can you confirm you're running the latest release of Bio?