Title: wp-config.php
Last modified: August 19, 2016

---

# wp-config.php

 *  [soonjessie](https://wordpress.org/support/users/soonjessie/)
 * (@soonjessie)
 * [18 years ago](https://wordpress.org/support/topic/wp-configphp-6/)
 * my web is [http://soonchernning.soonjessie.com/](http://soonchernning.soonjessie.com/)
 * I accidentally deleted the coding in the wp-config.php file.
 * The deleted coding are;
 * define(‘DB_CHARSET’, ‘utf8’);
 * define(‘DB_COLLATE’, ”);
 * When I realised the problem, I tried to put back the coding but it had problams
   also.
 * After that, I totally cannot go into the admin area, [http://soonchernning.soonjessie.com/wp-admin](http://soonchernning.soonjessie.com/wp-admin)
   and the errors are;
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/metrosol/public_html/soonchernning/wp-config.php:47) in /home/metrosol/
   public_html/soonchernning/wp-includes/pluggable.php on line 329
 * Please advise and help.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [herbshirt](https://wordpress.org/support/users/herbshirt/)
 * (@herbshirt)
 * [18 years ago](https://wordpress.org/support/topic/wp-configphp-6/#post-766235)
 * I recently messed up my htaccess file and my host was able to restore from the
   previous day’s backup.
 * Maybe ask your host?
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [18 years ago](https://wordpress.org/support/topic/wp-configphp-6/#post-766236)
 * Do you have a copy of `wp-config.php` on your own computer? If so, open it with
   a text editor to see if it has the correct info and then upload it to your website.
 *  Thread Starter [soonjessie](https://wordpress.org/support/users/soonjessie/)
 * (@soonjessie)
 * [18 years ago](https://wordpress.org/support/topic/wp-configphp-6/#post-766237)
 * Hi Iridiax,
 * I have actually restored back the 2 lines of coding that have deleted but I still
   get the errors as;
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/metrosol/public_html/soonchernning/wp-config.php:47) in /home/metrosol/
   public_html/soonchernning/wp-includes/pluggable.php on line 329
 * Please help.
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [18 years ago](https://wordpress.org/support/topic/wp-configphp-6/#post-766238)
 * Look for and delete any empty spaces or additional blank lines after the very
   last `?>` in your `wp-config.php` file.
 * If this does not work, try uploading the whole wp-config.php file from your computer
   to replace the one on the website.
 *  Thread Starter [soonjessie](https://wordpress.org/support/users/soonjessie/)
 * (@soonjessie)
 * [18 years ago](https://wordpress.org/support/topic/wp-configphp-6/#post-766239)
 * Hi herbshirt
 * My host is backing up real time. Do you have other ways to solve this issue?
 * Thanks in advance.
 *  Thread Starter [soonjessie](https://wordpress.org/support/users/soonjessie/)
 * (@soonjessie)
 * [18 years ago](https://wordpress.org/support/topic/wp-configphp-6/#post-766240)
 * Hi iridiax,
 * I have done follow ur instructions but the same error still occur.
 * Is that any other way to solve it?
 * Thanks.
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [18 years ago](https://wordpress.org/support/topic/wp-configphp-6/#post-766243)
 * You still have bad extra spaces in one of your WordPress files, probably wp-config.
   php. Your text editor may be adding them. Here are some [instructions on fixing it](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F).

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘wp-config.php’ is closed to new replies.

## Tags

 * [wp-config.php](https://wordpress.org/support/topic-tag/wp-config-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [iridiax](https://wordpress.org/support/users/iridiax/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/wp-configphp-6/#post-766243)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
