I am getting this error when trying to list all my users in the admin control panel. I want to see all users and all newly registered users. When i run this below in MySQL, I can see that the user.location column does not exist. I did update to the latest 5.6.1 patch yesterday (vb_patch561_LK598E82FF). Could I have missed a file? Do I need to update my database to have the user location field?
Error Invalid SQL: SELECT user.userid, reputation, username, usergroupid, birthday_search, email, parentemail, (options & 8) AS coppauser, homepage, icq, aim, yahoo, msn, skype, signature, usertitle, joindate, lastpost, posts, ipaddress, lastactivity, userfield.*, infractions, ipoints, warnings, user.location, user.privacyconsent, user.privacyconsentupdated FROM vb_user AS user LEFT JOIN vb_userfield AS userfield ON(userfield.userid = user.userid) LEFT JOIN vb_usertextfield AS usertextfield ON(usertextfield.userid = user.userid) ORDER BY username ASC LIMIT 0, 25 /** userFind**/;
Exception trace:
## /var/www/html/my_forums/core/vb/database.php(1208) Exception Thrown
#0 /var/www/html/my_forums/core/vb/database/mysqli.php(249): vB_Database->halt()
#1 /var/www/html/my_forums/core/vb/database.php(576): vB_Database_MySQLi->execute_query()
#2 /var/www/html/my_forums/core/vb/db/result.php(144): vB_Database->query_read()
#3 /var/www/html/my_forums/core/vb/db/result.php(68): vB_dB_Result->rewind()
#4 /var/www/html/my_forums/core/vb/db/querydefs.php(130): vB_dB_Result->__construct()
#5 /var/www/html/my_forums/core/vb/db/mysql/querydefs.php(3373): vB_dB_QueryDefs->getResultSet()
#6 /var/www/html/my_forums/core/vb/db/query/method.php(175): vB_dB_MYSQL_QueryDefs->userFind()
#7 /var/www/html/my_forums/core/vb/db/assertor.php(293): vB_dB_Query_Method->execSQL()
#8 /var/www/html/my_forums/core/vb/db/assertor.php(641): vB_dB_Assertor->assertQuery()
#9 /var/www/html/my_forums/core/vb/api/user.php(1030): vB_dB_Assertor->getRows()
#10 /var/www/html/my_forums/core/vb/api/wrapper.php(201): vB_Api_User->find()
#11 /var/www/html/my_forums/core/admincp/user.php(101): vB_Api_Wrapper->__call()
#12 /var/www/html/my_forums/includes/api/interface/collapsed.php(144): require_once('/var/www/html/s...')
#13 /var/www/html/my_forums/includes/vb5/frontend/controller/relay.php(33): Api_Interface_Collapsed->relay()
#14 /var/www/html/my_forums/index.php(74): vB5_Frontend_Controller_Relay->admincp()
#15 {main}
If I modify /core/vb/db/mysql/querydefs.php, lines 3364 to remove user.location, my errors go away, but I also see user.location referenced in this file three more times. This makes me think I need to update my database.
Thanks for any help.
Error Invalid SQL: SELECT user.userid, reputation, username, usergroupid, birthday_search, email, parentemail, (options & 8) AS coppauser, homepage, icq, aim, yahoo, msn, skype, signature, usertitle, joindate, lastpost, posts, ipaddress, lastactivity, userfield.*, infractions, ipoints, warnings, user.location, user.privacyconsent, user.privacyconsentupdated FROM vb_user AS user LEFT JOIN vb_userfield AS userfield ON(userfield.userid = user.userid) LEFT JOIN vb_usertextfield AS usertextfield ON(usertextfield.userid = user.userid) ORDER BY username ASC LIMIT 0, 25 /** userFind**/;
Exception trace:
## /var/www/html/my_forums/core/vb/database.php(1208) Exception Thrown
#0 /var/www/html/my_forums/core/vb/database/mysqli.php(249): vB_Database->halt()
#1 /var/www/html/my_forums/core/vb/database.php(576): vB_Database_MySQLi->execute_query()
#2 /var/www/html/my_forums/core/vb/db/result.php(144): vB_Database->query_read()
#3 /var/www/html/my_forums/core/vb/db/result.php(68): vB_dB_Result->rewind()
#4 /var/www/html/my_forums/core/vb/db/querydefs.php(130): vB_dB_Result->__construct()
#5 /var/www/html/my_forums/core/vb/db/mysql/querydefs.php(3373): vB_dB_QueryDefs->getResultSet()
#6 /var/www/html/my_forums/core/vb/db/query/method.php(175): vB_dB_MYSQL_QueryDefs->userFind()
#7 /var/www/html/my_forums/core/vb/db/assertor.php(293): vB_dB_Query_Method->execSQL()
#8 /var/www/html/my_forums/core/vb/db/assertor.php(641): vB_dB_Assertor->assertQuery()
#9 /var/www/html/my_forums/core/vb/api/user.php(1030): vB_dB_Assertor->getRows()
#10 /var/www/html/my_forums/core/vb/api/wrapper.php(201): vB_Api_User->find()
#11 /var/www/html/my_forums/core/admincp/user.php(101): vB_Api_Wrapper->__call()
#12 /var/www/html/my_forums/includes/api/interface/collapsed.php(144): require_once('/var/www/html/s...')
#13 /var/www/html/my_forums/includes/vb5/frontend/controller/relay.php(33): Api_Interface_Collapsed->relay()
#14 /var/www/html/my_forums/index.php(74): vB5_Frontend_Controller_Relay->admincp()
#15 {main}
If I modify /core/vb/db/mysql/querydefs.php, lines 3364 to remove user.location, my errors go away, but I also see user.location referenced in this file three more times. This makes me think I need to update my database.
Thanks for any help.
Comment