vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Database Error after changing to new web host?? SITE DOWN (https://vborg.vbsupport.ru/showthread.php?t=305697)

obglobal.net 12-10-2013 11:26 AM

Database Error after changing to new web host?? SITE DOWN
 
Really in a spot of bother here. Everything was executed as requested by the new web host at my end, but I'm stuck with a Database Error whenever attempting to access my forum.

I got this message from the tech staff at the web hosting site:

I could see the files in your account. Also, website at: http://obglobal.net/ is showing database error. However, I have created a connection string at: http://obglobal.net/test.php and its is connecting fine. So there is no issue with connecting to databases. Thus, you need to contact the application vendor at: http://www.vbulletin.com/support-forums/ to get more information on this issue.

● I thought I'd start at vb.org because everyone's so helpful. Could really use some guidance/assistance.

Thanks very much. :(

Disco_Dave 12-10-2013 11:31 AM

Mite be a stupid question, but have you updated your config.php file with the database username and password?

obglobal.net 12-10-2013 11:36 AM

Quote:

Originally Posted by Disco_Dave (Post 2467305)
Mite be a stupid question, but have you updated your config.php file with the database username and password?

As far as I go, no question is stupid, DD. No, I haven't done that, and I don't know how. I know how to locate the config.php as I've had to disable hooks before, but the actual edit itself is a new deal for me.

God I love this site.

EDIT:

I've just had a look, and it appears that the both of them have been edited correctly. Any other ideas?

Disco_Dave 12-10-2013 11:39 AM

I would check your database username and password match the one on the new host:

PHP Code:

//    ****** MASTER DATABASE USERNAME & PASSWORD ******
    //    This is the username and password you use to access MySQL.
    //    These must be obtained through your webhost.
$config['MasterServer']['username'] = 'edit here';
$config['MasterServer']['password'] = 'edit here'

--------------- Added [DATE]1386679439[/DATE] at [TIME]1386679439[/TIME] ---------------

Have you updated your named servers?

obglobal.net 12-10-2013 11:52 AM

Quote:

Originally Posted by Disco_Dave (Post 2467307)
I would check your database username and password match the one on the new host:

PHP Code:

//    ****** MASTER DATABASE USERNAME & PASSWORD ******
    //    This is the username and password you use to access MySQL.
    //    These must be obtained through your webhost.
$config['MasterServer']['username'] = 'edit here';
$config['MasterServer']['password'] = 'edit here'

--------------- Added [DATE]1386679439[/DATE] at [TIME]1386679439[/TIME] ---------------

Have you updated your named servers?

Yeah, they were solid.

Thanks for your help BTW, DD.

ozzy47 12-10-2013 12:00 PM

Did you get any email with the error? Without the actual error it is impossible to know what the issue is.

Or possibly look in the server error logs.

obglobal.net 12-10-2013 12:06 PM

No, I got nothing.

I've just noticed that I had 2 database files. One named vb and the other named vb_4 maybe that's the issue? I only uploaded the vb_4 one to the new webhost via FTP.

No idea.

Thanks, ozzy.

--------------- Added [DATE]1386680960[/DATE] at [TIME]1386680960[/TIME] ---------------

Quote:

Originally Posted by ozzy47 (Post 2467313)
Did you get any email with the error? Without the actual error it is impossible to know what the issue is.

Or possibly look in the server error logs.

Sorry, ozzy. I forgot to ask where the server error logs are. Not sure where to locate them.

ozzy47 12-10-2013 12:09 PM

Let's see if it is from a modification.

Open your includes/config.php file and below<?php add this line:

PHP Code:

 define('DISABLE_HOOKS'true); 

So it looks like this:
PHP Code:

<?php
define
('DISABLE_HOOKS'true);
/*=================================================  =====================*\
|| ##################################################  ################## ||
|| # vBulletin 4.2.2

Then see if you can access your site. If you can, disable all your mods, remove the define('DISABLE_HOOKS', true); from the includes/config.php file, re enable your mods one by one till you find out which one is causing the issue.

obglobal.net 12-10-2013 12:11 PM

I already tried that and no luck......

--------------- Added [DATE]1386681133[/DATE] at [TIME]1386681133[/TIME] ---------------

Thanks for the idea though man

Disco_Dave 12-10-2013 12:12 PM

Quote:

Originally Posted by obglobal.net (Post 2467314)
No, I got nothing.

I've just noticed that I had 2 database files. One named vb and the other named vb_4 maybe that's the issue? I only uploaded the vb_4 one to the new webhost via FTP.

Which one of these is named in your config file?


All times are GMT. The time now is 09:15 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.03754 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete