XF 2.2 Attempt to read property "thread_id" on null

lucien_lies

Member
I performed an import from XF 2.2 to a fresh installation of XF 2.2 , everything was imported correctly but when I run the command: xf:import-finalize I get this error

Code:
ErrorException: [E_WARNING] Attempt to read property "thread_id" on null src\XF\ThreadType\Question.php:460
Generated by: Unknown account Nov 20, 2022 at 3:28 PM
Stack trace
#0 src\XF\ThreadType\Question.php(460): XF::handlePhpError(2, '[E_WARNING] Att...', 'C:\\laragon\\www\\...', 460)
#1 src\XF\Entity\Thread.php(963): XF\ThreadType\Question->onThreadRebuildCounters(Object(XF\Entity\Thread))
#2 src\XF\Job\Thread.php(34): XF\Entity\Thread->rebuildCounters()
#3 src\XF\Job\AbstractRebuildJob.php(47): XF\Job\Thread->rebuildById(7445)
#4 src\XF\Job\Atomic.php(40): XF\Job\AbstractRebuildJob->run(6.32189)
#5 src\XF\Job\Manager.php(260): XF\Job\Atomic->run(8)
#6 src\XF\Job\Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#7 src\XF\Job\Manager.php(153): XF\Job\Manager->runJobEntry(Array, 8)
#8 src\XF\Cli\Command\JobRunnerTrait.php(32): XF\Job\Manager->runUnique('importFinalize', 8)
#9 src\XF\Cli\Command\JobRunnerTrait.php(15): XF\Cli\Command\ImportFinalize->runJob('importFinalize', Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 src\XF\Cli\Command\ImportFinalize.php(66): XF\Cli\Command\ImportFinalize->setupAndRunJob('importFinalize', 'XF:Atomic', Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 src\vendor\symfony\console\Command\Command.php(255): XF\Cli\Command\ImportFinalize->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 src\vendor\symfony\console\Application.php(992): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 src\vendor\symfony\console\Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(XF\Cli\Command\ImportFinalize), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 src\vendor\symfony\console\Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 src\XF\Cli\Runner.php(111): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 cmd.php(15): XF\Cli\Runner->run()
#17 {main}
 
Top