![]() |
Sql problem
but aint got a clue whys its doing it
Database error in vBulletin Control Panel 2.3.0: Invalid SQL: UPDATE usergroup SET candeleteusercomments = , title='Registered',usertitle='',cancontrolpanel=0, canmodifyprofile=1,canviewmemb ers=1,canview=1,showgroup=0,cansearch=1,canemail=0 ,canpostnew=1,canmove=0,canope nclose=0,candeletethread=0,canreplyown=1,canreplyo thers=1,canviewothers=1,canedi tpost=1,candeletepost=0,canusepm=1,canpostpoll=1,c anvote=1,canpostattachment=1,i smoderator=0,canpublicedit=0,canpublicevent=0,cant hreadrate=1,cantrackpm=0,cande nypmreceipts=0,maxbuddypm=5,maxforwardpm=5,canwhos online=0,canwhosonlineip=0,can getattachment=1 WHERE usergroupid=2 mysql error: You have an error in your SQL syntax near ' title='Registered',usertitle='',cancontrolpanel=0, canmodifyprofile=1,canviewmem' at line 1 mysql error number: 1064 Date: Saturday 06th of September 2003 09:54:51 AM anyone tell me how to fix this error - board runs fine but i get this when i got to update access levels |
You haven't edited a file properly (admin/user.php by the looks of it)
Uninstall the last hack you installed and try again |
cheers much appreciated had me baffled this cause the hack works fine as well :)
oh well |
look at the very first SET val..
PHP Code:
PHP Code:
|
im well stuck been though usergroup.php and i cant find this
candeleteusercomments = , this is from the hack - usercomments in user profile page 5. In admin/usergroup.php, find (not an entire line): $DB_site->query("INSERT INTO usergroup (usergroupid Replace with (not an entire line): $DB_site->query("INSERT INTO usergroup (candeleteusercomments, usergroupid 6. In admin/usergroup.php, find (not an entire line): $DB_site->query("UPDATE usergroup SET title='".addslashes($title)."' Replace with (not an entire line): $DB_site->query("UPDATE usergroup SET candeleteusercomments = $candeleteusercomments, title='".addslashes($title)."' |
use
PHP Code:
|
Database error in vBulletin Control Panel 2.3.0:
Invalid SQL: INSERT INTO usergroup (candeleteusercomments, usergroupid,title,usertitle,cancontrolpanel,canmod ifyprofile,canviewmembers,canv iew,showgroup,cansearch,canemail,canpostnew,canmov e,canopenclose,candeletethread ,canreplyown,canreplyothers,canviewothers,caneditp ost,candeletepost,canusepm,can postpoll,canvote,canpostattachment,ismoderator,can publicevent,canpublicedit,cant hreadrate,cantrackpm,candenypmreceipts,maxbuddypm, maxforwardpm,canwhosonline,can whosonlineip,cangetattachment) VALUES (NULL,'1','1',0,1,1,1,1,1,0,0,0,0,0,0,0,1,0,0,1,1, 1,1,0,0,0,1,0,0,0,0,1,0,1) mysql error: Column count doesn't match value count at row 1 mysql error number: 1136 well weird still stuck i can do everything but add new usergroups |
Right before the query, add:
PHP Code:
|
$DB_site->query("UPDATE usergroup SET $candeleteusercomments = intval($candeleteusercomments);candeleteusercommen ts='$candeleteusercomments',ti tle=
thats just first part of the query but gives me same error Invalid SQL: INSERT INTO usergroup (candeleteusercomments, usergroupid,title,usertitle,cancontrolpanel,canmod ifyprofile,canviewmembers,canv iew,showgroup,cansearch,canemail,canpostnew,canmov e,canopenclose,candeletethread ,canreplyown,canreplyothers,canviewothers,caneditp ost,candeletepost,canusepm,can postpoll,canvote,canpostattachment,ismoderator,can publicevent,canpublicedit,cant hreadrate,cantrackpm,candenypmreceipts,maxbuddypm, maxforwardpm,canwhosonline,can whosonlineip,cangetattachment) VALUES (NULL,'1','1',0,1,1,1,1,1,0,0,0,0,0,0,0,1,0,0,1,1, 1,1,0,0,0,1,0,0,0,0,1,0,1) mysql error: Column count doesn't match value count at row 1 |
Quote:
|
All times are GMT. The time now is 08:25 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|