News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

TO CONNECT TO DATABASE

Started by babson, July 18, 2007, 06:58:41 AM

Previous topic - Next topic

babson

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 hxxp:www.nairakobo.com [nonactive]. U CAN VISIT THE SITE AND SEE THE ERROR AGAIN.

THX.

Harro

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 ?>

shadow82x

I would assume this is coming from a mod.
Colin B
Former Spammer, Customize, & Support Team Member

metallica48423

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.
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

shadow82x

#4
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.
Colin B
Former Spammer, Customize, & Support Team Member

Harro

Mods shouldn't affect settings.php though

babjusi

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?

shadow82x

It was a while ago I forgot. Now that I look at it. Its not a mod unless if it effects settings.php
Colin B
Former Spammer, Customize, & Support Team Member

Advertisement: