Tickets InvalidArgumentException: No entity found for 'post' with ID post-XXX when trying to convert ticket with message that has reactions to thread

Affected version
2.6.5

SeToY

Member
When trying to convert a ticket containing a message that has reactions to a thread, the following exception occurs:

Code:
[HEADING=2]Stack trace[/HEADING]
#0 src\XF\Repository\Reaction.php(144): XF\Repository\Reaction->insertReaction(1, 'post', 'post-227447', Object(SV\SearchImprovements\XF\Entity\User), true, false)
#1 src\addons\ThemeHouse\ReactPlus\XF\Repository\Reaction.php(35): XF\Repository\Reaction->reactToContent(1, 'post', 'post-227447', Object(SV\SearchImprovements\XF\Entity\User), true, false)
#2 src\addons\NF\Tickets\Service\Ticket\Converter\ToThread.php(231): ThemeHouse\ReactPlus\XF\Repository\Reaction->reactToContent(1, 'post', 'post-227447', Object(SV\SearchImprovements\XF\Entity\User))
#3 src\XF.php(625): NF\Tickets\Service\Ticket\Converter\ToThread->NF\Tickets\Service\Ticket\Converter\{closure}()
#4 src\addons\NF\Tickets\Service\Ticket\Converter\ToThread.php(233): XF::asVisitor(Object(SV\SearchImprovements\XF\Entity\User), Object(Closure))
#5 src\addons\NF\Tickets\Service\Ticket\Converter\ToThread.php(117): NF\Tickets\Service\Ticket\Converter\ToThread->copyReactions(Object(NF\Tickets\Entity\Message), Object(SV\WarningImprovements\XF\Entity\Post))
#6 src\XF.php(625): NF\Tickets\Service\Ticket\Converter\ToThread->NF\Tickets\Service\Ticket\Converter\{closure}()
#7 src\addons\NF\Tickets\Service\Ticket\Converter\ToThread.php(121): XF::asVisitor(Object(SV\SearchImprovements\XF\Entity\User), Object(Closure))
#8 src\addons\NF\Tickets\Service\Ticket\Converter\ToThread.php(91): NF\Tickets\Service\Ticket\Converter\ToThread->addReply(Object(NF\Tickets\Entity\Message))
#9 src\addons\NF\Tickets\Service\Ticket\Converter\ToThread.php(75): NF\Tickets\Service\Ticket\Converter\ToThread->addReplies(Object(XF\Mvc\Entity\ArrayCollection))
#10 src\XF\Service\ValidateAndSavableTrait.php(42): NF\Tickets\Service\Ticket\Converter\ToThread->_save()
#11 src\addons\NF\Tickets\Pub\Controller\Ticket.php(1908): XF\Service\Thread\Creator->save()
#12 src\XF\Mvc\Dispatcher.php(352): NF\Tickets\Pub\Controller\Ticket->actionConvertToThread(Object(XF\Mvc\ParameterBag))
#13 src\XF\Mvc\Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('NF\\Tickets:Tick...', 'ConvertToThread', Object(XF\Mvc\RouteMatch), Object(NF\Tickets\Pub\Controller\Ticket), NULL)
#14 src\XF\Mvc\Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(NF\Tickets\Pub\Controller\Ticket), NULL)
#15 src\XF\Mvc\Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src\XF\App.php(2487): XF\Mvc\Dispatcher->run()
#17 src\XF.php(524): XF\App->run()
#18 index.php(20): XF::runApp('XF\\Pub\\App')
#19 {main}
 
Back
Top