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

Reply
 
Thread Tools
database problem since uploading hacks... Details »»
database problem since uploading hacks...
Version: , by amity amity is offline
Developer Last Online: Sep 2012 Show Printable Version Email this Page

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

hey all,
in the last few days i have put up the birthday bit, users online today hacks. now, when i do something with the admin panel and try to help users change their e mail or password i get this error:


Invalid SQL: SELECT userid
FROM user
WHERE username='amitybeth'
AND userid <>
mysql error: You have an error in your SQL syntax near '' at line 4

mysql error number: 1064

Date: Wednesday 26th of June 2002 10:58:30 PM
Script: http://www.amitymama.com/vb/vb/admin/user.php
Referer: http://www.amitymama.com/vb/admin/us...=edit&userid=1

any ideas? i am just not sure what this is... both hacks are up and running fine, but i am not sure if i changed something?

thanks for your help in advance!!
am

Show Your Support

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

Comments
  #2  
Old 06-27-2002, 05:43 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See if you have this:
PHP Code:
// ###################### Start edit #######################
if ($action=="edit") {

  
$user=$DB_site->query_first("SELECT *,FROM_UNIXTIME(joindate) AS 
If you do, replace it with this:
PHP Code:
// ###################### Start edit #######################
if ($action=="edit") {

  
$user=$DB_site->query_first("SELECT user.*,FROM_UNIXTIME(joindate) AS 
This happened to somebody else I know when they installed a hack with the old version of the query.
Reply With Quote
  #3  
Old 06-27-2002, 05:51 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and contact your host if they upgraded to new PHP version. If yes, you need to upgrade your board to 2.2.6 (or apply the fix). More info at vb.com's announcement board..
Reply With Quote
  #4  
Old 06-27-2002, 03:27 PM
amity's Avatar
amity amity is offline
 
Join Date: Feb 2002
Location: PA usa
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have about 6 or 7 of them running right now, and i can't imagine having to do them all over again. i haven't upgraded since 2.2.4 out of sheer fear. i have 2100+ registered and at least 550 of those visit daily. i would hate to screw the boards up.

any tips or thoughts for me?

thanks guys!
amity
Reply With Quote
  #5  
Old 06-27-2002, 03:30 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as logician said, seems to be the php42x bug.

you'll have to go to vbulletin.com and download the bugfix or upgrade to vb226
Reply With Quote
  #6  
Old 06-27-2002, 04:02 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by amity
i have about 6 or 7 of them running right now, and i can't imagine having to do them all over again. i haven't upgraded since 2.2.4 out of sheer fear. i have 2100+ registered and at least 550 of those visit daily. i would hate to screw the boards up.
You have only 7 hacks and afraid to upgrade? come on now

Here is a general tip: Always have a (or a few) mirror of your site in your local computer. Nakkid has a instruction regarding the issue in Hints board. Install PHP, MYSQL and Apache to your computer and copy all directory tree of your site to your computer together with MYSQL database.

Now you can test everything there and make sure it will be ok. This applies to installing new hacks, trying code changes, upgrading, reapplying hacks, anything you can think of. If you dont encounter any problems, you can do it in your real board..

By the way you may like to give a shot for the fix, but it may not work (it didnt work here).
Reply With Quote
  #7  
Old 07-17-2002, 03:40 AM
amity's Avatar
amity amity is offline
 
Join Date: Feb 2002
Location: PA usa
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey guys,
i tried the script change, that didn't work. i also applied the bug fix, and that didn't work either. any thoughts on what this is? i am considering uploading a new user.php file. what do you think?

thanks!!
amity
Reply With Quote
  #8  
Old 07-17-2002, 05:51 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by amity
hey guys,
i tried the script change, that didn't work. i also applied the bug fix, and that didn't work either. any thoughts on what this is? i am considering uploading a new user.php file. what do you think?
I wouldnt it suggest such a practise amity. Using vb scripts with different versions together can cause you much more headaches and IMO your board may become very unstable. Besides it would probably not solve your problem and if it related to PHP issue as we guessed, other vb scripts can cause other weird errors too..

I STRONGLY suggest upgrading your board and reapply your hacks. They are only 7, how much time can it take?
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:08 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.07138 seconds
  • Memory Usage 2,277KB
  • 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
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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