Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
~<< Help >>~ Details »»
~<< Help >>~
Version: , by Dean C Dean C is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-06-2002 Last Update: Never Installs: 0
 
No support by the author.

im getting this error when i try to save a change to a user in the admin cp ...

PHP Code:
Database error in vBulletin Control Panel 2.2.6:

Invalid SQLSELECT userid
                    FROM user
                    WHERE username
='Mist'
                        
AND userid <> 
mysql errorYou have an error in your SQL syntax near '' at line 4

mysql error number
1064

Date
Saturday 06th of July 2002 02:27:17 PM
Script
: [url]http://www.theironmic.com/board/board/admin/user.php[/url]
Referer
I will attach my admin/user.php file below so someone can have a look at it

Hopefully someone can fix it !

Thanks in Advance

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-06-2002, 05:33 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is against the license agreement to post vB files. I suggest you reupload the original user.php file from the 2.2.6 zip file and see if that fixes the problem. Make sure you upload in ASCII and overwrite the existing file.
Reply With Quote
  #3  
Old 07-06-2002, 05:39 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im sorry... i didn't realise... ive installed lots of hacks ... so i dont kno which one has caused it... and i dont want to go installing all the hacks again...

what can i do?

if ure on AIM at the moment smachol i can send u the file over there if you would be willing to fix it....

AIM = XSMCOG
Reply With Quote
  #4  
Old 07-06-2002, 05:48 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I don't fix hacked files. IMO it's never a good idea to install a lot of hacks without first making sure that each hack works and doesn't cause problem before moving on to the next one. Good luck!
Reply With Quote
  #5  
Old 07-06-2002, 05:51 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i did do that... but what i normally do iwhen i edit a file is go to an instance of that file and see if the page loads... and it did up to now... the page loads fine... but im getting that error when i try to change a user ...
Reply With Quote
  #6  
Old 07-06-2002, 06:35 PM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here, try this, do a search for "SELECT userid" tell you come to the second "SELECT userid" (it should get to the one that drops down)

replace SELECT userid down to AND userid <> with:

PHP Code:
SELECT userid
                    FROM user
                    WHERE username
='".addslashes(htmlspecialchars($ausername))."'
                        
AND userid <> $userid")) { 
plus, before replaceing, you should check to make sure the code is the same of above and if not, then replace it with that. hope this works
Reply With Quote
  #7  
Old 07-06-2002, 06:45 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THANKYOU !!!

it fixed it
Reply With Quote
  #8  
Old 07-06-2002, 07:44 PM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your welcome
Reply With Quote
  #9  
Old 07-15-2002, 11:26 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UPDATE:

im getting this errror again whenever i try to edit a profile thru the admin cp:

PHP Code:
Database error in vBulletin Control Panel 2.2.6:

Invalid SQLSELECT userid
            FROM user
            WHERE username
='Ill Knowledge'
            
AND userid <> 
mysql errorYou have an error in your SQL syntax near '' at line 4

mysql error number
1064

Date
Monday 15th of July 2002 08:28:43 AM
Script
: [url]http://www.theironmic.com/board/board/admin/user.php[/url]
Referer
Reply With Quote
  #10  
Old 07-16-2002, 05:01 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry to bump but i need to fix the problem

Thanks
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 10:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04575 seconds
  • Memory Usage 2,300KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete