Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: babson on July 18, 2007, 06:58:41 AM

Title: TO CONNECT TO DATABASE
Post by: babson on July 18, 2007, 06:58:41 AM
I TRY TO VISIT MY WEBSITE YESTERDAY, THIS IS THE ERROR I GET,

$db_user = '*****'; $db_passwd = '******'; $db_prefix = 'nairocom_'; $db_persist = 0; $db_error_send = 1; ########## Directories/Files ########## # Note: These directories do not have to be changed unless you move things.�$boarddir = '/home/nairocom/public_html'; # The absolute path to the forum's folder. (not just '.'!) $sourcedir = '/home/nairocom/public_html/Sources'; # Path to the Sources directory. ########## Error-Catching ########## # Note: You shouldn't touch these settings. $db_last_error = 1184697937; # Make sure the paths are correct... at least try to fix them.�if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt')) $boarddir = dirname(__FILE__); if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources')) $sourcedir = $boarddir . '/Sources'; ?>
Warning: Cannot modify header information - headers already sent by (output started at /home/nairocom/public_html/Settings.php:49) in /home/nairocom/public_html/Sources/Subs-Auth.php on line 211

Warning: Cannot modify header information - headers already sent by (output started at /home/nairocom/public_html/Settings.php:49) in /home/nairocom/public_html/Sources/Subs-Auth.php on line 212

Warning: Cannot modify header information - headers already sent by (output started at /home/nairocom/public_html/Settings.php:49) in /home/nairocom/public_html/Sources/Subs-Auth.php on line 213
Connection Problems
Sorry, SMF was unable to connect to the database.

AND DONT KNOW WHAT TO DO AGAIN, PLS CAN SOMEONE THERE TELL ME WHAT TO DO TO HAVE ACCESS TO MY WEBSITE AGAIN? THE SITE IS www.nairakobo.com. U CAN VISIT THE SITE AND SEE THE ERROR AGAIN.

THX.
Title: Re: TO CONNECT TO DATABASE
Post by: Harro on July 18, 2007, 07:04:13 AM
Edit that because you had your database username and password there for the whole world to see. And beleive me, you don't want that ;)

Anyway, open your settings.php file and see if there is any text before <?php or after ?>
Title: Re: TO CONNECT TO DATABASE
Post by: shadow82x on July 19, 2007, 11:36:25 AM
I would assume this is coming from a mod.
Title: Re: TO CONNECT TO DATABASE
Post by: metallica48423 on July 20, 2007, 03:25:42 AM
Shadow, sorry, but, you are wrong.  It is their Settings.php.

Babson, as harro suggested, make sure everything is between <?php and ?>.  If it is, then something may be wrong with php on your host, you will need to contact your host and ask.
Title: Re: TO CONNECT TO DATABASE
Post by: shadow82x on July 20, 2007, 10:34:27 AM
Quote from: metallica48423 on July 20, 2007, 03:25:42 AM
Shadow, sorry, but, you are wrong.  It is their Settings.php.

Babson, as harro suggested, make sure everything is between <?php and ?>.  If it is, then something may be wrong with php on your host, you will need to contact your host and ask.
The same exact thing happened to me before after I installed a mod though and the "<?php and ?>" got all messed up. I had to manually fix it. Maybe I am wrong but just saying.
Title: Re: TO CONNECT TO DATABASE
Post by: Harro on July 20, 2007, 12:00:54 PM
Mods shouldn't affect settings.php though
Title: Re: TO CONNECT TO DATABASE
Post by: babjusi on July 20, 2007, 02:18:36 PM
Quote from: shadow82x on July 20, 2007, 10:34:27 AM
Quote from: metallica48423 on July 20, 2007, 03:25:42 AM
Shadow, sorry, but, you are wrong.  It is their Settings.php.

Babson, as harro suggested, make sure everything is between <?php and ?>.  If it is, then something may be wrong with php on your host, you will need to contact your host and ask.
The same exact thing happened to me before after I installed a mod though and the "<?php and ?>" got all messed up. I had to manually fix it. Maybe I am wrong but just saying.

Which mod was that, shadow?
Title: Re: TO CONNECT TO DATABASE
Post by: shadow82x on July 20, 2007, 02:29:42 PM
It was a while ago I forgot. Now that I look at it. Its not a mod unless if it effects settings.php