CodeGarden 10: The sixth annual Umbraco Developer Conference
June 23-25th 2010 - free ASP.NET MVC pre-conference. Register today!

error saving user (check log)

2/8/2010 5:03:57 PMAvatarSebastiaan JanssenLocation: 2584GJ, The Hague, The Netherlandsposts: 575Karma: 1364

I have been happily creating users in my Umbraco install and so far it's not been a problem. However today, I got the "Error saving user (check log)" error.

I checked the umbracoLog table, but it was less than informative ("User cannot be updated."). The user has been created in the umbracoUser table, but the startStructureId and startMediaId are -1 (I did choose values for these!). 

I'm noticing that it's user number 32, which is a suspicious number, might be it?

No entries were created in umbracoUser2App.

When I manually fix the above 2 problems and recycle the app pool, I have a working user. However, I still can't update the user. If I create another new users, I get the same problem. 

There's no problem updating the other 31 users, just any user with ID 32 and higher...

Help?

2/8/2010 6:32:00 PMAvatarJonas ErikssonLocation: Hudiksvall, Swedenposts: 279Karma: 463
Comment with ID: 25696

Exactly the same problem here, begun when I started to using startStructureId. Users are only 9, so no evil #32 at my site :-)

2/8/2010 6:34:20 PMAvatarJonas ErikssonLocation: Hudiksvall, Swedenposts: 279Karma: 463
Comment with ID: 25697

(I'm not using Runway on my site, and another thing is that the whole "select start node in content"-control goes away after I choose a node and save it.)

2/9/2010 8:48:21 AMAvatarSebastiaan JanssenLocation: 2584GJ, The Hague, The Netherlandsposts: 575Karma: 1364
Comment with ID: 25744

Oh, I do still have the posibility to select the start node, that's not the problem. 

Looks like I will have to have a look at the source code to see where the "User cannot be updated." error is being written.

2/9/2010 9:36:58 AMAvatarSebastiaan JanssenLocation: 2584GJ, The Hague, The Netherlandsposts: 575Karma: 1364
Comment with ID: 25754

Found it, the username was too "similar" to a previous user's username. This is a bug in Umbraco, the check is clearly wrong. Issue created.

2/9/2010 2:08:11 PMAvatarJonas ErikssonLocation: Hudiksvall, Swedenposts: 279Karma: 463
Comment with ID: 25796

oh "the getAllByLoginName function does a query on the loginname with the LIKE operator", ah, that's why. I tried a shorter version of an existing logonname. Good find!

Please login or Sign up To post replies