XF 2.1 MySQL query error when trying to post a thread

  • Thread starter Thread starter Deleted member 68499
  • Start date Start date
D

Deleted member 68499

Guest
Hi all,

So i seem to be getting some type of MySQL query error and i was wondering if anyone would be able to help me, i keep getting the following error below whenver i try to post a thread. Would anyone have any ideas on how to fix this?

Code:
XF\Db\Exception: MySQL query error [1364]: Field 'votes' doesn't have a default value in src/XF/Db/AbstractStatement.php at line 217

XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 77
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 94
XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 221
XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1452
XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1184
XF\Mvc\Entity\Entity->save() in src/XF/Service/Thread/Creator.php at line 285
XF\Service\Thread\Creator->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 40
XF\Service\Thread\Creator->save() in src/XF/Pub/Controller/Forum.php at line 750
XF\Pub\Controller\Forum->actionPostThread() in src/XF/Mvc/Dispatcher.php at line 321
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
XF\App->run() in src/XF.php at line 390
XF::runApp() in index.php at line 20

Kind regards
Turtle
 
Code:
XF\Db\Exception: MySQL query error [1364]: Field 'votes' doesn't have a default value in src/XF/Db/AbstractStatement.php at line 217

    XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
    XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 77
    XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 94
    XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 221
    XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1452
    XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1184
    XF\Mvc\Entity\Entity->save() in src/XF/Service/Thread/Creator.php at line 285
    XF\Service\Thread\Creator->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 40
    XF\Service\Thread\Creator->save() in src/XF/Pub/Controller/Forum.php at line 750
    XF\Pub\Controller\Forum->actionPostThread() in src/XF/Mvc/Dispatcher.php at line 321
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2178
    XF\App->run() in src/XF.php at line 390
    XF::runApp() in index.php at line 20

Since today I also have this error message, does anyone have any idea how I can fix it?
 
There is no field 'votes' in the core software, so this has to be related to an add-on, most likely one which is currently disabled.
 
Top Bottom