Title: Error message
Last modified: August 20, 2016

---

# Error message

 *  [Malik](https://wordpress.org/support/users/islamwest/)
 * (@islamwest)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/error-message-111/)
 * Hello,
 * I am trying to install and activate some plugins on my new site: [http://justice-liberty.com/wordpress/](http://justice-liberty.com/wordpress/).
   But while trying activate some of them, I get messages like this:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/j/u/s/justliberty/html/wordpress/wp-content/plugins/wp-ad-gallery/
   wp-ad-gallery.php:177) in /home/content/j/u/s/justliberty/html/wordpress/wp-includes/
   functions.php on line 862
 * And it’s not activated.
 * Can you explain this?
 * Thanks,
    Mustafa

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/error-message-111/#post-2694935)
 * See [Solving “headers already sent” warnings](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
 *  Thread Starter [Malik](https://wordpress.org/support/users/islamwest/)
 * (@islamwest)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/error-message-111/#post-2695043)
 * Esmi,
 * Thanks for your tips.
 * I went into “wp-config.php” via FTP File Manager using Notepad, and saw that 
   there was no ?> at the end of the text file. I put in ?> there, and checked that
   there was no space between < and ? in the <?php code at the beginning.
 * I saved the file. But lo and behold, as I opened my blog site, there still was
   the warning:
 * “Warning: Cannot modify header information – headers already sent by (output 
   started at /home/content/j/u/s/justliberty/html/wordpress/wp-content/plugins/
   wp-ad-gallery/wp-ad-gallery.php:177) in /home/content/j/u/s/justliberty/html/
   wordpress/wp-includes/functions.php on line 862”
 * What could have gone wrong?
 * Thanks a lot.
    Mustafa
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/error-message-111/#post-2695047)
 * Get rid of the closing `?>` in wp-config.php. It’s been omitted deliberately.
   Now, as that Codex section explains, look at the error message:
 * > output started at /home/content/j/u/s/justliberty/html/wordpress/wp-content/
   > plugins/wp-ad-gallery/wp-ad-gallery.php:177
 * The problem is in the ad-gallery plugin,
 *  Thread Starter [Malik](https://wordpress.org/support/users/islamwest/)
 * (@islamwest)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/error-message-111/#post-2695060)
 * Esmi,
 * I deleted the “?>” code that I had put in at the end of the “wp-config.php” file,
   having opened it with Notepad; and saved it. When I reopened the “wp-config.php”
   file, I saw it all garbled up as a full horizontal page, instead of the vertical
   list of codes. Can you tell what has happened, and how I can restore the old 
   vertical sheet of codes?
 * Also, how do I get to “home/content/j/u/s/justliberty/html/wordpress/wp-content/
   plugins/wp-ad-gallery/wp-ad-gallery.php,” and what do I do with line “177”?
 * Again, many thanks for your help.
    Mustafa
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/error-message-111/#post-2695071)
 * Try downloading another copy of wp-config.php. As to the plugin problem, [FTP](http://codex.wordpress.org/FTP_Clients)
   into your site (or use whatever file management application your host provides)&
   delete the wp-content/plugins/wp-ad-gallery folder.
 *  Thread Starter [Malik](https://wordpress.org/support/users/islamwest/)
 * (@islamwest)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/error-message-111/#post-2695115)
 * Esmi,
    I got busy with other things. I’m sorry but if you could send me the steps
   through which I can reinstall the wp-config.php file on my site [http://justice-liberty.com/wordpress](http://justice-liberty.com/wordpress)?
   Or do I need to reinstall the whole WordPress? Thanks a lot. Mustafa

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

The topic ‘Error message’ is closed to new replies.

## Tags

 * [activate](https://wordpress.org/support/topic-tag/activate/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [Malik](https://wordpress.org/support/users/islamwest/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/error-message-111/#post-2695115)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
