Fehler beim Löschen von einem User

Hallo,
ich bekomme beim Löschen eines User folgende Meldung:

SQL Fehler
DELETE FROM "017profile" WHERE "003use_id"=? AND "017pro_scope"=?
array(2) {
  [0]=>
  int(15)
  [1]=>
  string(4) "user"
}
ex_sqlException: 23503; 7; ERROR:  update or delete on table "017profile" violates foreign key constraint "fk_003user_017profile" on table "003user"
DETAIL:  Key (017pro_id)=(6) is still referenced from table "003user". in /var/www/mobydickcmd/cmn/class/sql/ex_simpleSql.php:267
Stack trace:
#0 /var/www/mobydickcmd/cmn/class/sql/ex_simpleSql.php(542): ex_simpleSql->executeStatement()
#1 /var/www/mobydickcmd/module/profile/mod_profile.php(381): ex_simpleSql->deleteSql()
#2 /var/www/mobydickcmd/cmn/class/module/ex_moduleCallInterceptor.php(174): mod_profile->deletePersonalProfilesByUser()
#3 /var/www/mobydickcmd/module/identity/mod_identity.php(1102): ex_moduleCallInterceptor->__call()
#4 /var/www/mobydickcmd/module/identity/mod_identity.php(726): mod_identity->deleteIdentity()
#5 /var/www/mobydickcmd/cmn/class/module/ex_module.php(126): mod_identity->onEventDeleteUser()
#6 /var/www/mobydickcmd/module/user/mod_user.php(251): ex_module->fireEvent()
#7 /var/www/mobydickcmd/cmn/class/module/ex_moduleCallInterceptor.php(174): mod_user->deleteUser()
#8 /var/www/mobydickcmd/module/user/controller/ctl020204.php(21): ex_moduleCallInterceptor->__call()
#9 /var/www/mobydickcmd/cmn/class/mvc/controller/ex_deleteController.php(26): ctl020204->delete()
#10 /var/www/mobydickcmd/cmn/class/mvc/controller/ex_multiIdController.php(75): ex_deleteController->handleRecord()
#11 /var/www/mobydickcmd/cmn/class/mvc/ex_frontController.php(246): ex_multiIdController->handleRequest()
#12 /var/www/mobydickcmd/cmn/class/mvc/ex_frontController.php(196): ex_frontController->handleRequestInternal()
#13 /var/www/mobydickcmd/cmn/layout/classic.inc.php(112): ex_frontController->handleRequest()
#14 /var/www/mobydickcmd/cmn/class/mvc/ex_frontController.php(135): include_once('/var/www/mobydi...')
#15 /var/www/mobydickcmd/cmn/class/mvc/ex_frontController.php(72): ex_frontController->handleValidSession()
#16 /var/www/mobydickcmd/index.php(27): ex_frontController->index()
#17 {main}```

Kann mir da wer helfen?
LG

Hallo @colesnicov,

der Fehler tritt auf wenn der zu löschende User noch eigene Profile konfiguriert hat. Als Workaround diese bitte vorher löschen.

Wir arbeiten bereits an einem Bugfix.

Grüße,
Jan

@jlorenz danke für die Antwort. Wo kann ich diese Profile löschen? Bzw. kann man diese aus dem Backend löschen?

Nur durch Anmelden im Pascom-Client mit den Benutzerdaten des zu löschenden Benutzers

Bisher leider nein. Da soll aber wohl noch was kommen.

1 Like