• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Duplicate Cannot Delete User, Showing Error

Affected version
2.0
#1
I tried to delete a user but is shows the following error -

Oops! We ran into some problems.

LogicException: User must exist in src/XF/Service/User/Avatar.php at line 47

XF\Service\User\Avatar->setUser() in src/XF/Service/User/Avatar.php at line 38
XF\Service\User\Avatar->__construct() in src/XF/Container.php at line 274
XF\Container->createObject() in src/XF/App.php at line 1253
XF\App->XF\{closure}() in src/XF/Container.php at line 228
XF\Container->create() in src/XF/App.php at line 2354
XF\App->service() in src/XF/Entity/User.php at line 1215
XF\Entity\User->_postDelete() in src/XF/Mvc/Entity/Entity.php at line 1832
XF\Mvc\Entity\Entity->delete() in src/XF/Admin/Controller/User.php at line 612
XF\Admin\Controller\User->actionDelete() in src/XF/Mvc/Dispatcher.php at line 232
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 85
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1777
XF\App->run() in src/XF.php at line 320
XF::runApp() in admin.php at line 13
Please check if this is a bug in xenforo 2.0 or only I have done something wrong.
 

Kier

XenForo Developer
Staff member
#2
I haven't been able to reproduce this - are you able to reproduce it every time? Does it affect just a single user, or all of them?