Title: Headers already sent problem
Last modified: August 30, 2016

---

# Headers already sent problem

 *  [AnxietyMaster](https://wordpress.org/support/users/anxietymaster/)
 * (@anxietymaster)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bloggerphp-problem/)
 * Good Morning Every one today i ecountered a pretty weird problem
    I have a website
   that is name [http://www.dynamickw.com](http://www.dynamickw.com)
 * i noticed that when i type in the url box [http://www.dynamickw.com](http://www.dynamickw.com)
   it gives me an error which is `Warning: Cannot modify header information - headers
   already sent by (output started at /home/ghany1/public_html/wp-blog-header.php:
   1) in /home/ghany1/public_html/wp-includes/pluggable.php on line 122`
 * But when i type [https://dynamickw.com](https://dynamickw.com) in the url box
   without the www. it works just fine
 * So i decided to check the forums about similar issues and i found it some how
   related to spaces but i couldn’t find any extra spaces to delete so i played 
   around and found out that in the 1st line in blog header.php there is a encode
   base 64 with a code beside it
 *     ```
       <?php echo base64_decode("there is a very big code over here=");
       /**
        * Loads the WordPress environment and template.
        *
        * @package WordPress
        */
   
       if ( !isset($wp_did_header) ) {
   
       	$wp_did_header = true;
   
       	require_once( dirname(__FILE__) . '/wp-load.php' );
   
       	wp();
   
       	require_once( ABSPATH . WPINC . '/template-loader.php' );
       }
       ```
   
 * Then i deleted the whole line incline the base code and stuff and clicked on 
   save changes luckily the website worked on the www. but when i woke up the next
   morning it still gave me the same error and when i checked it again it generated
   a whole new different code ? can u plz tell me if this code is important or nope
   and how i can fix the www. problem and if the fix is from deleting the code how
   can i stop it from generating another one

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

 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bloggerphp-problem/#post-6842699)
 * Sorry to say but your site has been hacked. Take a deep breath and start working
   thru the resourses at this link [https://codex.wordpress.org/FAQ_My_site_was_hacked](https://codex.wordpress.org/FAQ_My_site_was_hacked)
 *  Thread Starter [AnxietyMaster](https://wordpress.org/support/users/anxietymaster/)
 * (@anxietymaster)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bloggerphp-problem/#post-6842703)
 * there is no way the website is hacked i just made it yesterday and purchased 
   it of yesterday
 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bloggerphp-problem/#post-6842709)
 * Yes you have been hacked. go to
    [https://sitecheck.sucuri.net/results/dynamickw.com](https://sitecheck.sucuri.net/results/dynamickw.com)
   and see what it is showing

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

The topic ‘Headers already sent problem’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [juggledad](https://wordpress.org/support/users/juggledad/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/bloggerphp-problem/#post-6842709)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
