grantus
Active member
I've had this error in the past but I can't remember what solved it. When I tried to run the user promotions cache, I got this:
And also:
I know it's something in one of the tables but I can't remember which. Any ideas?
Thanks.
Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Column 'user_id' cannot be null - library/Zend/Db/Statement/Mysqli.php:214
And also:
Code:
#0 /home/ill/public_html/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /home/ill/public_html/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/ill/public_html/library/XenForo/Model/UserGroupPromotion.php(372): Zend_Db_Adapter_Abstract->query('\n\t\t\tINSERT INTO...', Array)
#3 /home/ill/public_html/library/XenForo/Model/UserGroupPromotion.php(319): XenForo_Model_UserGroupPromotion->insertPromotionLogEntry(1, NULL, 'automatic')
#4 /home/ill/public_html/library/XenForo/Model/UserGroupPromotion.php(289): XenForo_Model_UserGroupPromotion->promoteUser(Array, NULL)
#5 /home/ill/public_html/library/XenForo/Deferred/UserGroupPromotion.php(50): XenForo_Model_UserGroupPromotion->updatePromotionsForUser(Array, Array, Array)
#6 /home/ill/public_html/library/XenForo/Model/Deferred.php(294): XenForo_Deferred_UserGroupPromotion->execute(Array, Array, 7.99999690056, '')
#7 /home/ill/public_html/library/XenForo/Model/Deferred.php(428): XenForo_Model_Deferred->runDeferred(Array, 7.99999690056, '', false)
#8 /home/ill/public_html/library/XenForo/Model/Deferred.php(373): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#9 /home/ill/public_html/library/XenForo/ControllerAdmin/Tools.php(159): XenForo_Model_Deferred->run(true, NULL, '', false)
#10 /home/ill/public_html/library/XenForo/FrontController.php(347): XenForo_ControllerAdmin_Tools->actionRunDeferred()
#11 /home/ill/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#12 /home/ill/public_html/admin.php(13): XenForo_FrontController->run()
#13 {main}
I know it's something in one of the tables but I can't remember which. Any ideas?
Thanks.