BassMan
Well-known member
I can't delete certain threads and resources (currently 1 resource and 1 thread). I'm getting this:
Server error log
UPDATE xf_user
SET reaction_score = reaction_score - ?
WHERE user_id = ?
------------
#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1048, '23000')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1048, '23000')
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Repository/Reaction.php(536): XF\Db\AbstractAdapter->query('
UPDATE xf...', Array)
#4 src/XF/Entity/Thread.php(1006): XF\Repository\Reaction->fastDeleteReactions('post', Array)
#5 src/XF/Entity/Thread.php(990): XF\Entity\Thread->_postDeletePosts(Array)
#6 src/XF/Mvc/Entity/Entity.php(1595): XF\Entity\Thread->_postDelete()
#7 src/XF/Service/Thread/Deleter.php(71): XF\Mvc\Entity\Entity->delete()
#8 src/XF/Pub/Controller/Thread.php(880): XF\Service\Thread\Deleter->delete('hard', '')
#9 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Thread->actionDelete(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Delete', Object(XF\Mvc\RouteMatch), Object(SV\AlertImprovements\XF\Pub\Controller\Thread), NULL)
#11 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\AlertImprovements\XF\Pub\Controller\Thread), NULL)
#12 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#14 src/XF.php(391): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}
Server error log
- XF\Db\Exception: MySQL query error [1048]: Column 'reaction_score' cannot be null
- src/XF/Db/AbstractStatement.php:228
- Generated by:
- 8. jun 2020 ob 22.16
UPDATE xf_user
SET reaction_score = reaction_score - ?
WHERE user_id = ?
------------
#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1048, '23000')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1048, '23000')
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Repository/Reaction.php(536): XF\Db\AbstractAdapter->query('
UPDATE xf...', Array)
#4 src/XF/Entity/Thread.php(1006): XF\Repository\Reaction->fastDeleteReactions('post', Array)
#5 src/XF/Entity/Thread.php(990): XF\Entity\Thread->_postDeletePosts(Array)
#6 src/XF/Mvc/Entity/Entity.php(1595): XF\Entity\Thread->_postDelete()
#7 src/XF/Service/Thread/Deleter.php(71): XF\Mvc\Entity\Entity->delete()
#8 src/XF/Pub/Controller/Thread.php(880): XF\Service\Thread\Deleter->delete('hard', '')
#9 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Thread->actionDelete(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Delete', Object(XF\Mvc\RouteMatch), Object(SV\AlertImprovements\XF\Pub\Controller\Thread), NULL)
#11 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\AlertImprovements\XF\Pub\Controller\Thread), NULL)
#12 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#14 src/XF.php(391): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}