vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Secondary usergroup and SQL error (https://vborg.vbsupport.ru/showthread.php?t=227466)

knucklenitz 11-05-2009 09:13 PM

Secondary usergroup and SQL error
 
Hi,

I noticed that some of the secondary usergroups I had 'checked' in the past to be a member of (I'm the admin and do this regularly) were not checked when I thought I had already. I checked them and also noticed I was part of the 'unregistered' usergroup. I unchecked this and saved. Found when I refreshed to verify, it was like I didn't even save.

I decided to remove some of the checks and then apply one by one. The first two were ok and then all of a sudden I got a database error.

Code:

Database error in vBulletin 3.8.4:

Invalid SQL:
SELECT title, usergroupid FROM usergroup WHERE usergroupid IN (6,9,10,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,90,91,92,94,95,96,97,98,99,100,101,) ORDER BY title;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY title' at line 1
Error Number  : 1064
Request Date  : Thursday, November 5th 2009 @ 04:08:02 PM
Error Date    : Thursday, November 5th 2009 @ 04:08:02 PM
Script        : http://SITE HERE/CONTROL PANEL HERE/user.php?do=edit&u=7
Referrer      : http://SITE HERE/CONTROL PANEL HERE/user.php?do=modify
IP Address    : IP HERE
Username      : USER HERE
Classname    : vB_Database
MySQL Version : 5.0.81-community-log

Any ideas what could have happened here?

3.8.4PL1

Thanks!

--------------- Added [DATE]1257488411[/DATE] at [TIME]1257488411[/TIME] ---------------

I tried disabling the two products I have as well as adding the disable hooks line to config.php. Still get the error.

I noticed in another thread that gmerin indicated that there shouldn't be a 'trailing comma' in the id listing which I have after the 101. I can't seem to find where this SQL statement resides (which php file). Not sure what I'd be looking for if I did find it.

I had others log in (not admin)and I'm the only one to get the error apparently. Appears to be only when I go to my username in my admin panel and is likely related to the listing of secondary usergroups.

Any ideas?


All times are GMT. The time now is 12:56 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.00940 seconds
  • Memory Usage 1,710KB
  • 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)bbcode_code_printable
  • (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