Sorry to bump this thread but this is the only one I could see relating to this issue. We are currently getting this issue about 90% of the time when trying to delete posts. Both soft delete and permanent deleting often fails and shows the error pasted below. We are using Xenforo 1.5.10, ElasticSearch 2.4.1, MariaDB 5.5.50
Server Error
Mysqli statement execute error : Incorrect integer value: '' for column 'content_id' at row 1
- Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 297
- Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
- Zend_Db_Adapter_Abstract->query() in XenES/Model/Elasticsearch.php at line 301
- XenES_Model_Elasticsearch->logFailedIndex() in XenES/Search/SourceHandler/ElasticSearch.php at line 1012
- XenES_Search_SourceHandler_ElasticSearch->_logFailedIndex() in XenES/Search/SourceHandler/ElasticSearch.php at line 113
- XenES_Search_SourceHandler_ElasticSearch->deleteFromIndex() in XenForo/Search/Indexer.php at line 105
- XenForo_Search_Indexer->deleteFromIndex() in XenForo/Search/DataHandler/Post.php at line 99
- XenForo_Search_DataHandler_Post->_deleteFromIndex() in XenForo/Search/DataHandler/Abstract.php at line 315
- XenForo_Search_DataHandler_Abstract->deleteFromIndex() in XenForo/DataWriter/DiscussionMessage.php at line 985
- XenForo_DataWriter_DiscussionMessage->_deleteFromSearchIndex() in XenForo/DataWriter/DiscussionMessage.php at line 743
- XenForo_DataWriter_DiscussionMessage->_indexForSearch() in XenForo/DataWriter/DiscussionMessage.php at line 584
- XenForo_DataWriter_DiscussionMessage->_postSave() in XenForo/DataWriter.php at line 1423
- XenForo_DataWriter->save() in XenForo/Model/Post.php at line 1216
- XenForo_Model_Post->deletePost() in XenForo/ControllerPublic/Post.php at line 351
- XenForo_ControllerPublic_Post->actionDelete() in XenForo/FrontController.php at line 351
- XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
- XenForo_FrontController->run() in /var/www/html/forum/index.php at line 13