You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[X ] I have searched open and closed issues for duplicates
Bug Description
When an administrator/moderator is trying to delete a user account with delegates the account deletion fails with a WSOD - HTTP error 500. There is no meaningful info/popup message why this account couldn't be removed.
In my case the account has been blocked some time ago. Now I want to delete it. But I'm not sure if the blocked state of the account has any impact on the behavior/error.
In Friendica's application log this message appears when the WSOD happens:
Uncaught Exception RuntimeException: "User with delegates can't be removed, please remove delegate users first" at .../src/Model/User.php line 1770
{"exception":"RuntimeException: User with delegates can't be removed, please remove delegate users first in .../src/Model/User.php:1770
Stack trace:
#0 .../src/Module/Moderation/Users/Blocked.php(81): Friendica\\Model\\User::remove()
#1 .../src/BaseModule.php(250): Friendica\\Module\\Moderation\\Users\\Blocked->content()
#2 .../src/App.php(714): Friendica\\BaseModule->run()
#3 .../index.php(55): Friendica\\App->runFrontend()
#4 {main}"} -
{"file":null,"line":null,"function":null,"request-id":"663b4e324c109","stack":"ErrorHandler::handleException (128), ErrorHandler::Friendica\\Core\\Logger\\Handler\\{closure}","uid":"809aa8","process_id":90405}
Steps to Reproduce
find an account with delegates
try to delete that account
exception error with WSOD
Actual Result:
WSOD
Expected Result:
No WSOD, but a proper error page or go back to the previous page (in my case for example (https://libranet.de/moderation/users/blocked?o=last-activity) and show a popup/info-bubble with an meaningful message why the account couldn't be removed.
Platform Info
Friendica Version:
2024.06-dev
Friendica Source:
git
PHP version:
8.1
SQL version:
MariaDB 10.6
The text was updated successfully, but these errors were encountered:
This exception was introduced to prevent regular accounts to self-delete and lose access to their delegated accounts. It looks like we need to carve an exception for admin deletion.
Bug Description
When an administrator/moderator is trying to delete a user account with delegates the account deletion fails with a WSOD - HTTP error 500. There is no meaningful info/popup message why this account couldn't be removed.
In my case the account has been blocked some time ago. Now I want to delete it. But I'm not sure if the blocked state of the account has any impact on the behavior/error.
In Friendica's application log this message appears when the WSOD happens:
Steps to Reproduce
Actual Result:
WSOD
Expected Result:
No WSOD, but a proper error page or go back to the previous page (in my case for example (https://libranet.de/moderation/users/blocked?o=last-activity) and show a popup/info-bubble with an meaningful message why the account couldn't be removed.
Platform Info
Friendica Version:
2024.06-dev
Friendica Source:
git
PHP version:
8.1
SQL version:
MariaDB 10.6
The text was updated successfully, but these errors were encountered: