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

XF 1.1 Cannot delete data without a condition - Error

Discussion in 'Troubleshooting and Problems' started by Alex_Summers, Jul 20, 2013.

  1. Alex_Summers

    Alex_Summers Member

    I've recently been keep running into this problem with deleting threads and promotions from the front page. It first goes to "Error 500" page then after a refresh it gives me this error. Any ideas?

    Error Info
    XenForo_Exception: Cannot delete data without a condition - library/XenForo/DataWriter.php:1782
    Generated By: Alex, Today at 4:03 PM
    Stack Trace
    #0 /var/www/html/library/XenForo/DataWriter.php(1737): XenForo_DataWriter->_delete()
    #1 /var/www/html/library/EWRporta/Model/Promotes.php(94): XenForo_DataWriter->delete()
    #2 /var/www/html/library/EWRporta/ControllerPublic/Thread.php(96): EWRporta_Model_Promotes->updatePromotion(Array)
    #3 /var/www/html/library/XenForo/FrontController.php(313): EWRporta_ControllerPublic_Thread->actionPromote()
    #4 /var/www/html/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #5 /var/www/html/index.php(13): XenForo_FrontController->run()
    #6 {main}
    Request State
    array(3) {
      ["url"] => string(50) "http://thecoremc.net/index.php?threads/260/promote"
      ["_GET"] => array(1) {
        ["threads/260/promote"] => string(0) ""
      ["_POST"] => array(8) {
        ["promote_icon"] => string(8) "disabled"
        ["zone"] => string(3) "BST"
        ["date"] => string(10) "2013-07-20"
        ["hour"] => string(2) "05"
        ["mins"] => string(2) "32"
        ["ampm"] => string(2) "AM"
        ["delete"] => string(16) "Delete Promotion"
        ["_xfToken"] => string(8) "********"
  2. Martok

    Martok Well-Known Member

    This is a problem with XenPorta. You should post in the XenPorta resource thread for the author and/or other users to respond to.
  3. Alex_Summers

    Alex_Summers Member

    Okay thanks, I'll do this now

Share This Page