Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Donnie95 Posted August 31 Posted August 31 (edited) Hello, I've tried deleting a member's account and content with 700 posts, but it got stuck, and I get an error when I try to run the task manually. Error: Call to a member function comments() on null (0) #0 /home/domain/htdocs/domain.com/applications/forums/sources/Topic/Post.php(322): IPS\Content\_Comment->delete() #1 /home/domain/htdocs/domain.com/applications/core/extensions/core/Queue/MemberContent.php(126): IPS\forums\Topic\_Post->delete() #2 /home/domain/htdocs/domain.com/system/Task/Task.php(55): IPS\core\extensions\core\Queue\_MemberContent->run() #3 /home/domain/htdocs/domain.com/applications/core/modules/admin/system/background.php(87): IPS\_Task::runQueue() #4 /home/domain/htdocs/domain.com/system/Helpers/MultipleRedirect/MultipleRedirect.php(93): IPS\core\modules\admin\system\_background->IPS\core\modules\admin\system\{closure}() #5 /home/domain/htdocs/domain.com/applications/core/modules/admin/system/background.php(138): IPS\Helpers\_MultipleRedirect->__construct() #6 /home/domain/htdocs/domain.com/system/Dispatcher/Controller.php(107): IPS\core\modules\admin\system\_background->process() #7 /home/domain/htdocs/domain.com/applications/core/modules/admin/system/background.php(42): IPS\Dispatcher\_Controller->execute() #8 /home/domain/htdocs/domain.com/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\system\_background->execute() #9 /home/domain/htdocs/domain.com/admin/index.php(13): IPS\_Dispatcher->run() #10 {main} #0 /home/domain.com/htdocs/domain/init.php(1042): IPS\_Log::log() #1 [internal function]: IPS\IPS::exceptionHandler() #2 {main} This "deleting posts" task is blocking all tasks on my site now. Edited August 31 by Donnie95
Jim M Posted August 31 Posted August 31 Are you up to date on patches? We recently released a patch related to this. Please apply it in ACP -> Support.
Donnie95 Posted August 31 Author Posted August 31 8 minutes ago, Jim M said: Are you up to date on patches? We recently released a patch related to this. Please apply it in ACP -> Support. I managed to fix it, but I'm not sure how. I switched the task setting to 'run with traffic' and then switched it back to cron. I also cleared the cache. After that, I ran the task manually, and it completed successfully.
Pescao6 Posted August 31 Posted August 31 5 hours ago, Donnie95 said: I managed to fix it, but I'm not sure how. I switched the task setting to 'run with traffic' and then switched it back to cron. I also cleared the cache. After that, I ran the task manually, and it completed successfully. I had a similar problem a while ago with cron jobs because after applying updates can't remember to what but probably to the cPanel PHP version and latest Invision Community version, the cron job configuration was different. So it might be a good idea to check the cron job on cPanel to make sure it's correct.
Recommended Posts