MyBB Community Forums

Full Version: Config.php overwritten
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I just made an terrible error. I accidentally overwrote my config.php file when i upgrade my forum to the newest version. Is there anyway to undo that error? It is an week ago since my last back, so ill loose a lot of posts if i cant get it to work again. Im using cuteftp professional as ftp client.
Please helt me, im desperate.

Kris
[wiki]Inc/config.php#Sample[/wiki]
<?php
/* Database Configuration */
$config['dbtype'] = "mysql";
$config['hostname'] = "localhost";
$config['username'] = "mysql-username";
$config['password'] = "mysql-password";
$config['database'] = "database-name";
$config['table_prefix'] = "mybb_";

/* Admin CP URL */
$config['admindir'] = "admin";

/* Datacache Configuration */

/* files = Stores datacache in files inside /inc/cache/ (Must be writable)*/

/* db = Stores datacache in the database*/
$config['cachestore'] = "db";
?>
Replace with your database details and everything should be fine. Smile
It worked Smile
But now im getting this error in the top:
Code:
Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/krisxxx/mydreambox.dk/inc/config.php:2) in /hsphere/local/home/krisxxx/mydreambox.dk/inc/functions.php on line 803


Kris
Please make sure that there are no empty lines or spaces in front of <?php.
That did the trick. Thanks alot for your help!!

Kris Smile