Fixed deleted user and got an error


Active member
Affected version
I have media and resource adding, but I disabled resource add-on I have not added any resources, so after disabling resource add on I decided to delete a user form list users> then clicking the garbage can icon to the right of the user ( in the all user list)

then I saw this error?

Server error log
  • InvalidArgumentException: Job XF:UserDeleteCleanUp: No vote handler for 'resource_rating'

  • src/XF/Repository/ContentVote.php:500
  • Generated by: Unknown account

  • Mar 28, 2021 at 11:32 PM

Stack trace​

#0 src/XF/Repository/ContentVote.php(531): XF\Repository\ContentVote->getVoteHandler('resource_rating', true)
#1 src/XF/Entity/ContentVote.php(228): XF\Repository\ContentVote->rebuildVoteCache('resource_rating', 1)
#2 src/XF/Entity/ContentVote.php(171): XF\Entity\ContentVote->rebuildContentVoteCache()
#3 src/XF/Mvc/Entity/Entity.php(1648): XF\Entity\ContentVote->_postDelete()
#4 src/XF/Service/User/DeleteCleanUp.php(227): XF\Mvc\Entity\Entity->delete()
#5 src/XF/MultiPartRunnerTrait.php(48): XF\Service\User\DeleteCleanUp->stepDeleteContentVotes(2, 7.87621)
#6 src/XF/Service/User/DeleteCleanUp.php(94): XF\Service\User\DeleteCleanUp->runLoop(8)
#7 src/XF/Job/UserDeleteCleanUp.php(32): XF\Service\User\DeleteCleanUp->cleanUp(8)
#8 src/XF/Job/Manager.php(258): XF\Job\UserDeleteCleanUp->run(8)
#9 src/XF/Job/Manager.php(200): XF\Job\Manager->runJobInternal(Array, 8)
#10 src/XF/Job/Manager.php(84): XF\Job\Manager->runJobEntry(Array, 8)
#11 job.php(43): XF\Job\Manager->runQueue(false, 8)
#12 {main}

Request state​

array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(44) ""
["_GET"] => array(0) {
["_POST"] => array(0) {

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.5).

Change log:
Prevent an error when deleting a user if they have voted for content that relates to a disabled add-on.
There may be a delay before changes are rolled out to the XenForo Community.