Foros de discusión
Accidentally deleted user in database....
Bruno Galvao, modificado hace 12 años.
Accidentally deleted user in database....
Junior Member Mensajes: 58 Fecha de incorporación: 26/08/11 Mensajes recientes
I deleted a user from the Users table in the database.
Now when I try to recreate the user in the Control Panel, I get the following error when i try the same screename:
"The screen name you requested is associated with an existing friendly URL. "
How do I remove the user's friendly URL?
Thanks,
Bruno
Now when I try to recreate the user in the Control Panel, I get the following error when i try the same screename:
"The screen name you requested is associated with an existing friendly URL. "
How do I remove the user's friendly URL?
Thanks,
Bruno
Arvind Mishra, modificado hace 12 años.
RE: Accidentally deleted user in database....
Regular Member Mensajes: 226 Fecha de incorporación: 13/02/08 Mensajes recientes
You can remove it from Layout table.
Bruno Galvao, modificado hace 12 años.
RE: Accidentally deleted user in database....
Junior Member Mensajes: 58 Fecha de incorporación: 26/08/11 Mensajes recientesArvind Mishra:
You can remove it from Layout table.
Hey Thanks for the information. How would I know which row belongs to the deleted user if there is no column with userId?
There are multiple rows with the friendly URL \home I just do know which one is the correct one to delete.
Thanks!
Bruno Galvao, modificado hace 12 años.
RE: Accidentally deleted user in database....
Junior Member Mensajes: 58 Fecha de incorporación: 26/08/11 Mensajes recientesBruno Galvao:
Arvind Mishra:You can remove it from Layout table.
Hey Thanks for the information. How would I know which row belongs to the deleted user if there is no column with userId?
There are multiple rows with the friendly URL \home I just do know which one is the correct one to delete.
Thanks!
I deleted the user from the Groups_ table and I was able to recreate.
I did not have to delete anything from the Layout table.
Subhash Shah, modificado hace 11 años.
RE: Accidentally deleted user in database....
Junior Member Mensajes: 78 Fecha de incorporación: 30/11/11 Mensajes recientes
I know its an older thread, but just to update, I was facing the same problem but the solution worked for me too.
Mika Koivisto, modificado hace 11 años.
RE: Accidentally deleted user in database....
Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
Don't delete anything directly from the database use the API or UI otherwise you'll end up corrupting the the database.
Hitoshi Ozawa, modificado hace 11 años.
RE: Accidentally deleted user in database....
Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Mika, these guys already corrupted their databases. User table is also related to the contact table and several other tables.
Also, if you're going to do any direct database operation (even though you're not really suppose to them on liferay tables),
create a backup so you'll be able to go back to what you had.
That said, it probably was better to recreate an user in the user table checking other tables for keys.
Also, if you're going to do any direct database operation (even though you're not really suppose to them on liferay tables),
create a backup so you'll be able to go back to what you had.
That said, it probably was better to recreate an user in the user table checking other tables for keys.