• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Cannot send headers; headers already sent in /library/config.php

Zephyr

Well-known member
#1
Hello, after config.php edit (with filezilla), I have this error:

An exception occurred: Cannot send headers; headers already sent in /home/kyna/multigamingfrance/library/config.php, line 1 in /home/kyna/multigamingfrance/library/Zend/Controller/Response/Abstract.php on line 321

  1. Zend_Controller_Response_Abstract->canSendHeaders() in Zend/Controller/Response/Abstract.php at line 115
  2. Zend_Controller_Response_Abstract->setHeader() in XenForo/ViewRenderer/Abstract.php at line 63
  3. XenForo_ViewRenderer_Abstract->__construct() in XenForo/ViewRenderer/HtmlPublic.php at line 18
  4. XenForo_ViewRenderer_HtmlPublic->__construct() in XenForo/Dependencies/Public.php at line 207
  5. XenForo_Dependencies_Public->getViewRenderer() in XenForo/FrontController.php at line 547
  6. XenForo_FrontController->_getViewRenderer() in XenForo/FrontController.php at line 141
  7. XenForo_FrontController->run() in /home/kyna/multigamingfrance/index.php at line 13
I have remove my modification and now I have :

Code:
<?php

$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = '----------';
$config['db']['password'] = '--------';
$config['db']['dbname'] = 'minecraft';

$config['superAdmins'] = '1';
By I have again the error on all my pages, why please ?

I have try to rebuild all master data and reboot my server, but don't fix this problem :S
 

Brogan

XenForo moderator
Staff member
#2
Check for and remove any white space from the beginning of the file.

Otherwise you may need to upload a new file and ensure it has been saved as UTF-8 without BOM.
I recommend using a proper editor such as Notepad++
 

Zephyr

Well-known member
#3
Thank you, it's ok now, not a withespace problem, I don't understand this error, maybe an error of encodage or filezilla data corruption ?
I have remplaced the file by the default file and it's ok now.