Title: I couldn&#039;t update header.php?
Last modified: August 20, 2016

---

# I couldn't update header.php?

 *  [hellojavad](https://wordpress.org/support/users/hellojavad/)
 * (@hellojavad)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/i-couldnt-update-headerphp/)
 * how to resolve problem with hacked header.php?
 * As I want to update header.php a message come on screen that hacked by ….
 * is there any solution for that?

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

 *  [vfxman](https://wordpress.org/support/users/vfxman/)
 * (@vfxman)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/i-couldnt-update-headerphp/#post-2448715)
 * Open header.php in a text editor and find the code which contains the malicious
   text. Delete it and save the file. Re-upload. I would suggest backing up header.
   php first!
 *  [vfxman](https://wordpress.org/support/users/vfxman/)
 * (@vfxman)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/i-couldnt-update-headerphp/#post-2448717)
 * You might also want to investigate how header.php got hacked in the first place!
   Make sure your wordpress and all plugins are upgraded to the latest versions 
   as a start, look into something like [http://wordpress.org/extend/plugins/wp-security-scan/](http://wordpress.org/extend/plugins/wp-security-scan/)
   to check for obvious vulnerabilities and probably change all your passwords. 
   Chances are if a security hole exists, even if you get rid of the text now, that
   someone (or the same person) will attack again.
 *  Thread Starter [hellojavad](https://wordpress.org/support/users/hellojavad/)
 * (@hellojavad)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/i-couldnt-update-headerphp/#post-2448778)
 * you know , my website doesn’t changed , just when i want to update header.php
   in editor section this text comes.
    consider that there is no bad link or text
   in my header it just comes when i want to update header .php and its comes when
   addressbar show wp-admin/theme-editor.php
 *  [Host.co.in](https://wordpress.org/support/users/hostcoin/)
 * (@hostcoin)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/i-couldnt-update-headerphp/#post-2448809)
 * You can also read the discussion here :- [http://wordpress.org/support/topic/headerphp-hacked-need-advice-have-tried-everything?replies=18](http://wordpress.org/support/topic/headerphp-hacked-need-advice-have-tried-everything?replies=18)
   If you run your blog as professional/commercial one then I would suggest to check
   out with your [web hosting services](http://www.host.co.in/) provider for a software
   firewall.
 *  Thread Starter [hellojavad](https://wordpress.org/support/users/hellojavad/)
 * (@hellojavad)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/i-couldnt-update-headerphp/#post-2449063)
 * I just checked below items:
 * 1.there is no other user in db except my admin account but anyway I changed my
   admin user name.
    2.I couldn’t find any suspicious php files 3. permissions are
   corrected for both htaccess that was 777 and for root directory that was 750 
   I asked host to restore my monthly backup and situation changed as now as i want
   to update my header.php theme file it goes to 404 error page except that previous
   hacked text. As I guess it may be because of theme-editor.php.
 * is there any one to help me on this issue?

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

The topic ‘I couldn't update header.php?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [hellojavad](https://wordpress.org/support/users/hellojavad/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/i-couldnt-update-headerphp/#post-2449063)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
