TheLlamaman Posted February 12 Share Posted February 12 Hi, I recently had a user request to delete their account via the Deletion Requests form. I approved this. However, it has created some background tasks which are erroring and blocking other background tasks from running. I have attached a screenshot to show this. The blocking tasks are named "Merging <deleted user> posts". This is the error log from the failing task. TypeError: IPS\forums\_Forum::setLastComment(): Argument #2 ($updatedItem) must be of type ?IPS\Content\Item, IPS\forums\Topic\ArchivedPost given, called in /var/www/vhosts/<path removed>/httpdocs/system/Content/Comment.php on line 1360 (0) #0 /var/www/vhosts/<path removed>/httpdocs/system/Content/Comment.php(1360): IPS\forums\_Forum->setLastComment() #1 /var/www/vhosts/<path removed>/httpdocs/applications/core/extensions/core/Queue/MemberContent.php(137): IPS\Content\_Comment->changeAuthor() #2 /var/www/vhosts/<path removed>/httpdocs/system/Task/Task.php(54): IPS\core\extensions\core\Queue\_MemberContent->run() #3 /var/www/vhosts/<path removed>/httpdocs/applications/core/modules/admin/system/background.php(87): IPS\_Task::runQueue() #4 /var/www/vhosts/<path removed>/httpdocs/system/Helpers/MultipleRedirect/MultipleRedirect.php(93): IPS\core\modules\admin\system\_background->IPS\core\modules\admin\system\{closure}() #5 /var/www/vhosts/<path removed>/httpdocs/applications/core/modules/admin/system/background.php(138): IPS\Helpers\_MultipleRedirect->__construct() #6 /var/www/vhosts/<path removed>/httpdocs/system/Dispatcher/Controller.php(107): IPS\core\modules\admin\system\_background->process() #7 /var/www/vhosts/<path removed>/httpdocs/applications/core/modules/admin/system/background.php(42): IPS\Dispatcher\_Controller->execute() #8 /var/www/vhosts/<path removed>/httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\system\_background->execute() #9 /var/www/vhosts/<path removed>/httpdocs/admin/index.php(13): IPS\_Dispatcher->run() #10 {main} Any ideas how to work around this and unblock my tasks queue? Thanks. Link to comment Share on other sites More sharing options...
Stuart Silvester Posted February 12 Share Posted February 12 Hello, There is a patch available to address this issue. To apply, please go to AdminCP > Support > 1st (or top left) box will have a "Optional Patch Available" link. Click it and follow the instructions. TheLlamaman and Jim M 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts