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

Reply
 
Thread Tools Display Modes
  #1  
Old 08-24-2006, 02:40 PM
tbradham tbradham is offline
 
Join Date: Jun 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Site down - Fixing the "There seems to have been a problem with the database" error.

I had this problem before and I know it is a host issue, but last time someone told me a way to take vbulletin offline and repair it through VBulletin itself.

Anyone know what I am talking about?
Reply With Quote
  #2  
Old 08-24-2006, 02:58 PM
R.Solutions's Avatar
R.Solutions R.Solutions is offline
 
Join Date: Mar 2006
Location: Texas
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can disable your board from online viewers and put a brief message up.

Admincp --> Vbulletin Options --> Turn Board On/Off
Reply With Quote
  #3  
Old 08-24-2006, 03:00 PM
tbradham tbradham is offline
 
Join Date: Jun 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get a database error trying to get to the admincp.
Reply With Quote
  #4  
Old 08-24-2006, 03:05 PM
R.Solutions's Avatar
R.Solutions R.Solutions is offline
 
Join Date: Mar 2006
Location: Texas
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have all the correct info via config.php?

As its saying a problem with the database.
Reply With Quote
  #5  
Old 08-24-2006, 03:10 PM
tbradham tbradham is offline
 
Join Date: Jun 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven't changed anything, it is a host problem. I have contacted the host to reset the database, but that will take time. Darn IPower!.

I could have sworn someone told me of a way to switch the site off and back on when the database was in this condition.
Reply With Quote
  #6  
Old 08-24-2006, 03:23 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you right click and view source it will tell you what the error is. If you can post the error it gives then we can advise further if anything needs to be done from your side.

At the moment it is purely speculative as we don't know what the error is.
Reply With Quote
  #7  
Old 08-24-2006, 05:04 PM
powerbook's Avatar
powerbook powerbook is offline
 
Join Date: Jul 2006
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah that is a hosting (DB) problem I have the same problem with IX where my site is hosted (quite a lot). I get the exact same message. The index page isn't replaced with alternative while the DB is offline and you can't access the AdminCP because it queries the DB which is offline. So I can only imagine there needs to be some trap somewhere that redirects to a alternative page which doesn't query the DB.

But on the other hand I don't know much but will keep my eye on this post.
Reply With Quote
  #8  
Old 08-24-2006, 05:08 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Depending on the actual error is what action needs to be taken. Some can be repaired by running repairs on your database via tools.php or through phpmyadmin. However, others can only be resolved through your host if you are on shared hosting. Some errors can mean that your site is outgrowing your hosting setup and can be a nugde to upgrade to a better hosting solution.

If the database error isn't showing on screen, then you can view it by viewing the source of the error page. You may also recieve database error emails from your site which will also tell you what the error is.
Reply With Quote
  #9  
Old 08-24-2006, 05:23 PM
powerbook's Avatar
powerbook powerbook is offline
 
Join Date: Jul 2006
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the mail I get, I'll look at the code next time I get the error.

Database error in vBulletin :

mysql_connect(): Lost connection to MySQL server during query /hsphere/local/home/xxxxxx/xxxxxxx.com/includes/class_core.php on line 280

MySQL Error :
Error Number :
Date : Monday, August 21st 2006 @ 12:25:19 PM
Script : http://xxxxxxxxx.com/admincp/
Referrer :
IP Address : xxx.xxx.xxx.xxx
Username :
Classname : vb_database
Reply With Quote
  #10  
Old 08-24-2006, 05:36 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ powerbook

Your error should be just temporary, if it last longer than an hour, then you might want to contact your host with that one.
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 08:52 PM.


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.04770 seconds
  • Memory Usage 2,251KB
  • 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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)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