XF 2.0 Modified config.php == ??? == forum down

Phases

Active member
I don't know what I could have done wrong, but I modified my config.php file to enable debug and got:

An exception occurred: [ErrorException] [E_WARNING] Cannot modify header information - headers already sent by (output started at /var/www/bspeaking/src/config.php:1) in src/XF/Http/Response.php on line 345
  1. XF::handlePhpError()
  2. header() in src/XF/Http/Response.php at line 345
  3. XF\Http\Response->sendHeaders() in src/XF/Http/Response.php at line 262
  4. XF\Http\Response->send() in src/XF.php at line 356
  5. XF::runApp() in index.php at line 13

I quickly edited it back from true to false and saved but the error persists. I have no idea what I've done wrong.

Code:
<?php

$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = '****';
$config['db']['password'] = '****';
$config['db']['dbname'] = '****';
$config['db']['socket'] = null;
$config['debug'] = false;
$config['superAdmins'] = '1';
$_SERVER['HTTPS'] = 'on';

I've double checked white space. I've looked at the default config.php..

I just fired up a fresh link to spiderlings on instagram and then took my site right down. Help? :)

Tried to go to /install/ looking for a repair possibly and that gives: An unexpected error occurred. Please try again later.
 
Hmm, perhaps download a fresh copy of XF2 and replace the existing config file with a new one (rename the old one). Add you e database info and PW before saving.
 
I suspect the editor you used did not save the file in the correct format.

Use a program such as Notepad++ and save it as UTF8 without BOM.

Also ensure you are using ' rather than ` or magic quotes.
 
Back
Top Bottom