Mouth
Well-known member
v1.3.0 RC2
I have 2 usergroup promotions that appear to be misbehaving ...
#1. Add user to usergroup 'validated' while user is member of usergroup 'paid' and not a member of usergroup 'validated'
#2. Add user to usergroup 'validated' while user is not a member of usergroup ('banned' or 'administrative') and user has 3 trophy point and user has been registered for 7 days
User 'fred' has 130 trophy points and been registered since 2010. He is not a member of usergroup 'banned' or 'administrative'. According to the above usergroup promotions, promotion #2 should promoted fred to be a member of usergroup 'validated'.
Fred is also a member of usergroup 'paid'. According to promotion #1 fred should be promoted to be a member of usergroup 'validated'.
.... thus, with either promotion, fred should be a member of the 'validated' usergroup
BUT, fred is NOT a member of usergroup 'validated' !
When I check the User Change Logs ( /admin.php?logs/user-change-log ) I see the following ...
I cannot see why, when the usergroup promotions are being run, that the user is being removed from the 'validated' usergroup.
Do I have some flawed logic in my promotions?
I am also getting the following in my server error log, very much related it seems ...
I have 2 usergroup promotions that appear to be misbehaving ...
#1. Add user to usergroup 'validated' while user is member of usergroup 'paid' and not a member of usergroup 'validated'
#2. Add user to usergroup 'validated' while user is not a member of usergroup ('banned' or 'administrative') and user has 3 trophy point and user has been registered for 7 days
User 'fred' has 130 trophy points and been registered since 2010. He is not a member of usergroup 'banned' or 'administrative'. According to the above usergroup promotions, promotion #2 should promoted fred to be a member of usergroup 'validated'.
Fred is also a member of usergroup 'paid'. According to promotion #1 fred should be promoted to be a member of usergroup 'validated'.
.... thus, with either promotion, fred should be a member of the 'validated' usergroup
BUT, fred is NOT a member of usergroup 'validated' !
When I check the User Change Logs ( /admin.php?logs/user-change-log ) I see the following ...
Code:
Field Name Old Value New Value
14 minutes ago
Secondary User Groups Paid Members, Validated Users Paid Members
14 minutes ago
Secondary User Groups Paid Members Paid Members, Validated Users
Today at 13:20
Secondary User Groups Paid Members, Validated Users Paid Members
Today at 09:18
Secondary User Groups Paid Members Paid Members, Validated Users
Today at 08:13
Secondary User Groups Paid Members, Validated Users Paid Members
Today at 02:23
Secondary User Groups Paid Members Paid Members, Validated Users
Today at 01:15
Secondary User Groups Paid Members, Validated Users Paid Members
Today at 00:06
Secondary User Groups Paid Members Paid Members, Validated Users
Secondary User Groups Paid Members Paid Members, Validated Users
Yesterday at 12:41
Secondary User Groups Paid Members, Validated Users Paid Members
I cannot see why, when the usergroup promotions are being run, that the user is being removed from the 'validated' usergroup.
Do I have some flawed logic in my promotions?
I am also getting the following in my server error log, very much related it seems ...
Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Operand should contain 1 column(s) - library/Zend/Db/Statement/Mysqli.php:77
Generated By: Unknown Account, 15 minutes ago
Stack Trace
#0 /var/www/netrider/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('?????SELECT use...')
#1 /var/www/netrider/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '?????SELECT use...')
#2 /var/www/netrider/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('?????SELECT use...')
#3 /var/www/netrider/library/XenForo/Model.php(219): Zend_Db_Adapter_Abstract->query('?????SELECT use...', Array, 2)
#4 /var/www/netrider/library/XenForo/Model/User.php(327): XenForo_Model->fetchAllKeyed('?????SELECT use...', 'user_id')
#5 /var/www/netrider/library/XenForo/CronEntry/Trophy.php(32): XenForo_Model_User->getUsers(Array, Array)
#6 [internal function]: XenForo_CronEntry_Trophy::runTrophyCheck(Array)
#7 /var/www/netrider/library/XenForo/Model/Cron.php(356): call_user_func(Array, Array)
#8 /var/www/netrider/library/XenForo/Deferred/Cron.php(24): XenForo_Model_Cron->runEntry(Array)
#9 /var/www/netrider/library/XenForo/Model/Deferred.php(256): XenForo_Deferred_Cron->execute(Array, Array, 7.9999978542328, '')
#10 /var/www/netrider/library/XenForo/Model/Deferred.php(390): XenForo_Model_Deferred->runDeferred(Array, 7.9999978542328, '', false)
#11 /var/www/netrider/library/XenForo/Model/Deferred.php(335): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#12 /var/www/netrider/deferred.php(23): XenForo_Model_Deferred->run(false)
#13 {main}
Request State
array(3) {
["url"] => string(35) "http://netrider.net.au/deferred.php"
["_GET"] => array(0) {
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(34) "/admin.php?users/fred.12345/edit"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}