Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 01 Oct 2022, 23:13
lockersoft lockersoft is offline
 
Join Date: Sep 2022
SQL Error when Searching for a user from AdminCP

I get this error when searching for a particular user:

Error Invalid SQL: ### Channels ### SELECT follow.title AS title, follow.nodeid AS keyval, 'node' AS sourcetable, IF(follow.lastcontent = 0, follow.lastupdate, follow.lastcontent) AS lastactivity, follow.totalcount AS activity, type.class AS type, (follow.nodeoptions & 512) AS noUnsubscribe FROM node AS follow INNER JOIN contenttype AS type ON type.contenttypeid = follow.contenttypeid INNER JOIN subscribediscussion AS sd ON sd.discussionid = follow.nodeid AND sd.userid = 11733 UNION ALL ### Users ### SELECT follow.username AS title, follow.userid AS keyval, 'user' AS sourcetable, IFNULL(follow.lastpost, follow.joindate) AS lastactivity, follow.posts as activity, 'Member' AS type, 0 AS noUnsubscribe FROM user AS follow INNER JOIN userlist AS ul ON ul.relationid = follow.userid AND ul.userid = 11733 WHERE ul.type = 'follow' AND ul.friend = 'yes' ORDER BY title ASC LIMIT 100;

Exception trace:
## phar:///home/dh_b4nae5/dh_b4nae5/2015/core/vb/vb.phar/database.php(1215) Exception Thrown
#0 phar:///home/dh_b4nae5/dh_b4nae5/2015/core/vb/vb.phar/database/mysqli.php(249): vB_Database->halt()
#1 phar:///home/dh_b4nae5/dh_b4nae5/2015/core/vb/vb.phar/database.php(583): vB_Database_MySQLi->execute_query(true, Object(mysqli))
#2 phar:///home/dh_b4nae5/dh_b4nae5/2015/core/vb/vb.phar/db/result.php(144): vB_Database->query_read('Invalid SQL:\r\n\n...', true)
#3 phar:///home/dh_b4nae5/dh_b4nae5/2015/core/vb/vb.phar/db/result.php(68): vB_dB_Result->rewind()
#4 /home/dh_b4nae5/dh_b4nae5/2015/core/packages/vbforum/db/mysql/querydefs.php(6931): vB_dB_Result->__construct(Object(vB_Database_MySQLi), '\n\t\t\t\t\t### Chann...')
#5 phar:///home/dh_b4nae5/dh_b4nae5/2015/core/vb/vb.phar/db/query/method.php(68): vBForum_dB_MYSQL_QueryDefs->getUserFollowing(Array, Object(vB_Database_MySQLi), false, false)
#6 phar:///home/dh_b4nae5/dh_b4nae5/2015/core/vb/vb.phar/db/assertor.php(293): vB_dB_Query_Method->execSQL()
#7 phar:///home/dh_b4nae5/dh_b4nae5/2015/core/vb/vb.phar/db/assertor.php(641): vB_dB_Assertor->assertQuery('vBForum:getUser...', Array, false)
#8 phar:///home/dh_b4nae5/dh_b4nae5/2015/core/vb/vb.phar/api/follow.php(406): vB_dB_Assertor->getRows('vBForum:getUser...', Array)
#9 phar:///home/dh_b4nae5/dh_b4nae5/2015/core/vb/vb.phar/api/user.php(174): vB_Api_Follow->getFollowing(11733)
#10 phar:///home/dh_b4nae5/dh_b4nae5/2015/core/vb/vb.phar/api/wrapper.php(205): vB_Api_User->fetchProfileInfo(11733)
#11 /home/dh_b4nae5/dh_b4nae5/2015/core/admincp/user.php(226): vB_Api_Wrapper->__call('fetchProfileInf...', Array)
#12 /home/dh_b4nae5/dh_b4nae5/2015/includes/api/interface/collapsed.php(147): require_once('/home/dh_b4nae5...')
#13 /home/dh_b4nae5/dh_b4nae5/2015/includes/vb5/frontend/controller/relay.php(33): Api_Interface_Collapsed->relay('admincp/user.ph...')
#14 /home/dh_b4nae5/dh_b4nae5/2015/index.php(75): vB5_Frontend_Controller_Relay->admincp('user.php')
#15 {main}

Any thoughts here?
Thanks,


EDIT: Version 5.6.4 Patch Level 1
Reply With Quote
Reply


Tags
search, sql error


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:59.

Layout Options | Width: Wide Color: