Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Editorn Posted March 10 Posted March 10 Hi, I'm having problems with backgrounds tasks not completing, and there are some >250 of them waiting to complete the last week. When I try to complete the tasks manually by clicking the link "manually run them now", it fails with the message: TypeError: IPS\forums\_Forum::setLastComment(): Argument #2 ($updatedItem) must be of type ?IPS\Content\Item, IPS\forums\Topic\Post given, called in /home/[removed path]/public_html/system/Content/Comment.php on line 1360 (0) #0 /home/[removed path]/public_html/system/Content/Comment.php(1360): IPS\forums\_Forum->setLastComment() #1 /home/[removed path]/public_html/system/Content/Item.php(3047): IPS\Content\_Comment->changeAuthor() #2 /home/[removed path]/public_html/applications/core/extensions/core/Queue/MemberContent.php(137): IPS\Content\_Item->changeAuthor() #3 /home/[removed path]/public_html/system/Task/Task.php(54): IPS\core\extensions\core\Queue\_MemberContent->run() #4 /home/[removed path]/public_html/applications/core/modules/admin/system/background.php(87): IPS\_Task::runQueue() #5 /home/[removed path]/public_html/system/Helpers/MultipleRedirect/MultipleRedirect.php(93): IPS\core\modules\admin\system\_background->IPS\core\modules\admin\system\{closure}() #6 /home/[removed path]/public_html/applications/core/modules/admin/system/background.php(66): IPS\Helpers\_MultipleRedirect->__construct() #7 /home/admin/ Any advise how to resolve this issue? Thanks in advance.
Daniel F Posted March 10 Posted March 10 Please visit your ACP>System> โGet Supportโ page to apply the latest patch which will resolve the mentioned issue.ย Editorn 1
Editorn Posted March 10 Author Posted March 10 Fantastic, thanks @Daniel Fย for superfast support on a Sunday afternoon ๐ฅ๐ Confirming it resolved our issue. Cheers Daniel F 1
DawPi Posted March 10 Posted March 10 For a future reference see something like this: https://invisioncommunity.com/search/?q=setLastComment&quick=1&type=forums_topic ย Save your time. ๐
Recommended Posts