Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 07-01-2004, 04:52 AM
Wolffman Wolffman is offline
 
Join Date: Apr 2004
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default URGENT - Ran a uninstall script and now my board is unacessable

When I used the uninstall script for this hack ([HTL] & [TXT] Awards/Medals/Cards Hack [vB3]), I got this error:


Code:
Invalid SQL: 
		 SELECT 
		 userfield.*, usertextfield.*, useraward.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
		 IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
			  language.phrasegroup_holiday AS phrasegroup_holiday,
			  language.phrasegroup_global AS phrasegroup_global,
			  language.options AS lang_options,
			  language.languagecode AS lang_code,
			  language.charset AS lang_charset,
			  language.locale AS lang_locale,
			  language.imagesoverride AS lang_imagesoverride,
			  language.dateoverride AS lang_dateoverride,
			  language.timeoverride AS lang_timeoverride,
			  language.registereddateoverride AS lang_registereddateoverride,
			  language.calformat1override AS lang_calformat1override,
			  language.calformat2override AS lang_calformat2override,
			  language.logdateoverride AS lang_logdateoverride,
			  language.decimalsep AS lang_decimalsep,
			  language.thousandsep AS lang_thousandsep
		 FROM user AS user
		 INNER JOIN userfield AS userfield ON (user.userid = userfield.userid)
		 INNER JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) 
		 LEFT JOIN useraward AS useraward ON (useraward.userid = user.userid) INNER JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid)) 
		 WHERE user.userid = 14
	
mysql error: Table 'afceyri_forums.useraward' doesn't exist

mysql  error number: 1146
I don't know where this is comming from, and I'm very lost. Help is needed VERY badly, because this forced my forums to go down.
Reply With Quote
  #2  
Old 07-01-2004, 05:00 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like you still have a query in there in global.php or init.php look for

useraward

Looks like you didnt remove all the file edits
Reply With Quote
  #3  
Old 07-01-2004, 04:10 PM
Wolffman Wolffman is offline
 
Join Date: Apr 2004
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I looked through init.php and global.php, and didnt find a thing. I also removed all the codes, that I know of, from the edited files. I still have a database error. :disappointed:
Reply With Quote
  #4  
Old 07-01-2004, 04:23 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you delete the database records of userawards?
Reply With Quote
  #5  
Old 07-01-2004, 04:25 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, you surely have not removed everything, as the query above still uses a join for the useraward table.

actually iirc the code is located in functions.php fetch_userinfo function
Reply With Quote
  #6  
Old 07-01-2004, 04:56 PM
Wolffman Wolffman is offline
 
Join Date: Apr 2004
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I deleted a query in functions.php, and this happened:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/afceyri/public_html/forums/includes/functions.php on line 912
Reply With Quote
  #7  
Old 07-01-2004, 05:01 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wolffman
I deleted a query in functions.php, and this happened:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/afceyri/public_html/forums/includes/functions.php on line 912
Well, you shouldnt delete a whole query, that could generelay mess things up.
Reply With Quote
  #8  
Old 07-01-2004, 05:02 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

actually reverting that query with it'S original one would have been needed, as it fetches the userinfo from the db, and was just modified for that hack, but not written for the hack itself.
Reply With Quote
Reply

Thread Tools
Display Modes

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 07:47 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.04078 seconds
  • Memory Usage 2,223KB
  • Queries Executed 11 (?)
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)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (8)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_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