1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Cannot delete data without a condition - library/XenForo/DataWriter.php:1823

Discussion in 'Troubleshooting and Problems' started by Joeychgo, Jul 31, 2015.

  1. Joeychgo

    Joeychgo Well-Known Member

    (I upgraded to 1.5 after this occurred.)

    Cannot delete data without a condition - library/XenForo/DataWriter.php:1823


    I have 3 instances of it. Any idea what this is?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Presumably there are entries in the ACP error log?

    Can you post the full trace?
     
  3. Joeychgo

    Joeychgo Well-Known Member

    Code:
    #0 /home/trucks/public_html/truckforum/library/XenForo/DataWriter.php(1778): XenForo_DataWriter->_delete()
    #1 /home/trucks/public_html/truckforum/library/XenForo/Model/Conversation.php(1008): XenForo_DataWriter->delete()
    #2 /home/trucks/public_html/truckforum/library/XenForo/Model/InlineMod/Conversation.php(37): XenForo_Model_Conversation->deleteConversationForUser(1234, 38, 'delete')
    #3 /home/trucks/public_html/truckforum/library/XenForo/ControllerPublic/InlineMod/Abstract.php(125): XenForo_Model_InlineMod_Conversation->leaveConversations(Array, Array, NULL)
    #4 /home/trucks/public_html/truckforum/library/XenForo/ControllerPublic/InlineMod/Conversation.php(28): XenForo_ControllerPublic_InlineMod_Abstract->executeInlineModAction('leaveConversati...', Array, Array)
    #5 /home/trucks/public_html/truckforum/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_InlineMod_Conversation->actionLeave()
    #6 /home/trucks/public_html/truckforum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #7 /home/trucks/public_html/truckforum/index.php(13): XenForo_FrontController->run()
    #8 {main}
    
     
  4. Joeychgo

    Joeychgo Well-Known Member

    Is that what you wanted @Brogan ?
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    To be clear, are you running 1.4 or 1.5?
    The thread has a 1.4 prefix.

    What actions are triggering the error?
    It appears to be related to leaving a conversation but we need to be able to to try and reproduce it.

    Do you have any add-ons installed (or have you in the past) which interact with conversations?
     
  6. Joeychgo

    Joeychgo Well-Known Member

    1.5 but I was running 1.4 when the errors occurred. Nothing that I know of that interacts with conversations.
     
  7. Joeychgo

    Joeychgo Well-Known Member

    This is continuing -- its when at least some people try to leave a conversation.... but it doesn't happen to me
     
  8. Joeychgo

    Joeychgo Well-Known Member

    This problem is continuing. Any help is appreciated.
     
  9. Mike

    Mike XenForo Developer Staff Member

    We'll need you to confirm it with all add-ons disabled, regardless of whether you believe they interact with conversations. I don't think this is something we have ever had a report of.
     
  10. Joeychgo

    Joeychgo Well-Known Member

    Ok -- How do I do that mike?
     
  11. ŽivaAkcija

    ŽivaAkcija Well-Known Member

    disable all add ons, and try reproduce error, if you have access to ACP
     
  12. Joeychgo

    Joeychgo Well-Known Member


    Ill try. It doesn't happen to me so I'll have to find a member who it happens to first.
     
  13. Joeychgo

    Joeychgo Well-Known Member

    Still no help?
     
  14. Chris D

    Chris D XenForo Developer Staff Member

    I guess we were waiting for:
    The specific error you posted above seemed to be when member with user ID 38 attempted to leave conversation with ID 1234 via the inline moderation checkbox where they were the last participant in the conversation.

    In theory, that error should never be reachable in normal circumstances so if you can reproduce it reliably, and then attempt to disable all add-ons and try again that may help narrow down the cause.
     
  15. Joeychgo

    Joeychgo Well-Known Member

    As I said, I personally haven't seen the error, its just coming up occasionally in the logs.. Its not just one user either - here is another one

    Code:
    #0 /home/trucks/public_html/truckforum/library/XenForo/DataWriter.php(1778): XenForo_DataWriter->_delete()
    #1 /home/trucks/public_html/truckforum/library/XenForo/Model/Conversation.php(1008): XenForo_DataWriter->delete()
    #2 /home/trucks/public_html/truckforum/library/XenForo/ControllerPublic/Conversation.php(791): XenForo_Model_Conversation->deleteConversationForUser(4632, 1233, 'delete')
    #3 /home/trucks/public_html/truckforum/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_Conversation->actionLeave()
    #4 /home/trucks/public_html/truckforum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #5 /home/trucks/public_html/truckforum/index.php(13): XenForo_FrontController->run()
    #6 {main}
    
     
  16. Chris D

    Chris D XenForo Developer Staff Member

    As you've identified at least two users where this has happened, are you able to contact them to see if they can continuously reproduce the error? The user who has user ID 1233 should still have a conversation in their inbox with an ID of 4632 (I believe if they trigger this error, the conversation shouldn't actually be removed). They just need to click on the checkbox in their inbox next to the conversation and click "Leave Conversation" from the drop down and you just need to monitor if this same error happens again.

    If it does, that's perfect. Because then you can disable all add-ons and get them to try it again. This will tell us if there is an add-on at fault. If an add-on isn't at fault, then we can look into it in more detail. (This may possibly require access to the affected user's account, database access and FTP access sent via ticket support).
     
  17. Joeychgo

    Joeychgo Well-Known Member

    I found it -- thanks for the help
     
  18. Chris D

    Chris D XenForo Developer Staff Member

    Out of curiosity (in case it comes up again) what was it?
     
  19. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    Before anyone asks what was the issue... that would be my classifieds add-on meddling with the ConversationMaster DataWriter :oops:

    EDIT: ninja'd :p
     
    Chris D likes this.

Share This Page