vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   SQL Error when Searching for a user from AdminCP (https://vborg.vbsupport.ru/showthread.php?t=329338)

lockersoft 10-01-2022 08:13 PM

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


All times are GMT. The time now is 08:34 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00943 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete