Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-01-2022, 08:13 PM
lockersoft lockersoft is offline
 
Join Date: Sep 2022
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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


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

Forum Jump


All times are GMT. The time now is 09:16 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.03325 seconds
  • Memory Usage 2,157KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete