Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-09-2006, 11:11 AM
makemedie makemedie is offline
 
Join Date: Oct 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Restoring a forum from an SQL file

Hi,

Unfortunately an administrator from our forum went evil on us, and he deleted the entire content of our forums (basically, the forums folder). Fortunately though, one of us had a backup saved about 2 weeks prior to this. Anyways, long story.

So, we're setting it up somewhere else, on a different host. I asked my host to run Telnet and restore the SQL file (it was 22MB), and they did it for me. First problem here, the board was previously running vBulletin 3.5.3, and I had to install a blank forum before restoring the database. I didnt think and straight away downloaded vBulletin 3.5.4 and restored the database ontop of that. Now, the Admin panel shows stuff as vBulletin 3.5.3 while if I check for file version conflicts (I think it's in the Maintenance section) it shows all files as being from a different version :\

That's not really a problem though. The problem is, the forum index loads fine, but if I click on any thread, or try using any function (like search), it gives me a database error. Something like this -

Code:
Database error in vBulletin 3.5.3:

Invalid SQL:

			SELECT IF(visible = 2, 1, 0) AS isdeleted,
			

			NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed, emailupdate, folderid,threadrate.vote,
			thread.*
			FROM thread AS thread
			
			LEFT JOIN subscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = 3 AND canview = 1)
			LEFT JOIN threadrate AS threadrate ON (threadrate.threadid = thread.threadid AND threadrate.userid = 3)
			
			WHERE thread.threadid = 5775;

MySQL Error  : Unknown column 'canview' in 'on clause'
Error Number : 1054
If anyone can help me by telling me what I did wrong, please do. Or, if there's a way to just save threads, posts and members, and to start fresh, please advise me on how to do that instead.

Any help's appreciated, I dont really know my way around that much with vB to solve this on my own :\

Cheers.

Nevermind, I'm a real daredevil I tried running the upgrade script, fixed everything.

Cheers heh.
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:09 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.04237 seconds
  • Memory Usage 2,154KB
  • 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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)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