XF 2.1 Deleted conversations still "appear" on inbox

siONtI

Well-known member
I used Delete Conversations option to a user on admin panel and now conversations started by him appear like this on inbox.
Capture5.PNG

If this is not a bug then can you make so when you use that option deleted conversations don't appear on inbox or add a option to delete them from your inbox?

Edit: Not sure if this is a bug with xf or with a third party add-on.

Clicking on that conversation will show "The requested conversation could not be found." and when you go on admin panel a error is generated
ErrorException: Conversation id 71918 appears to be missing a xf_conversation_master record src/XF/Error.php:75
Code:
Stack trace
#0 src/XF.php(187): XF\Error->logError('Conversation id...', false)
#1 src/addons/SV/ConversationEssentials/XF/Pub/Controller/Conversation.php(1432): XF::logError('Conversation id...')
#2 src/addons/SV/ConversationEssentials/XF/Pub/Controller/Conversation.php(363): SV\ConversationEssentials\XF\Pub\Controller\Conversation->preloadRecipients(Object(XF\Mvc\Entity\ArrayCollection))
#3 src/addons/AddonsLab/ConversationPermissions/XF/Pub/Controller/Conversation.php(33): SV\ConversationEssentials\XF\Pub\Controller\Conversation->actionIndex(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(321): AddonsLab\ConversationPermissions\XF\Pub\Controller\Conversation->actionIndex(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Conversation', 'Index', Object(XF\Mvc\RouteMatch), Object(SV\MultiPrefix\XF\Pub\Controller\Conversation), NULL)
#6 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\MultiPrefix\XF\Pub\Controller\Conversation), NULL)
#7 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#9 src/XF.php(390): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}

Code:
Request state
array(4) {
  ["url"] => string(15) "/conversations/"
  ["referrer"] => string(33) "https://myforum.com/conversations/"
  ["_GET"] => array(1) {
    ["/conversations/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
Last edited:
Could well be more factors involved, or simply an add-on as you suggest.

I have tested this and the conversations are deleted as expected.
 
actionDeleteConversations does not run the delete conversation in a transaction, so any errors leave the conversation in an invalid state :(
 
Top Bottom