Title: WordPress Core File is empty
Last modified: August 8, 2023

---

# WordPress Core File is empty

 *  [ali2xja](https://wordpress.org/support/users/ali2xja/)
 * (@ali2xja)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/wordpress-core-file-is-empty/)
 * Hello.
 * I am having a problem with one of my pages.
 * A core wordpress file (template.php in wp-includes folder) is empty and throwing
   error 500 in frontend. I try to reinstall this file and after some seconds this
   file gets empty again.
 * I setup a new wordpress in another account, with the same database data as the
   site that I’m getting errors. In this new site, I started to install all the 
   plugins and theme that I have in the old site so they have the same content. 
   In the new site the problem it’s not happening.
 * What I find very strange is that when I tranfer the files from the new site to
   the old one the problem keeps happening.
 * What dou you think that could be the problem?
 * Thank you in advance

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/wordpress-core-file-is-empty/#post-16960503)
 * The content of PHP files shouldn’t change on their own. I’m afraid your site 
   is likely infected with malicious code, i.e. your site has been hacked. Probably
   partly broken malicious code since fully functional malicious code would normally
   be much more difficult to notice. A 500 error is not very subtle. All the same,
   broken or not, it’s a problem and the infection needs to be removed. Malicious
   code can be very difficult to locate and remove. Such code is typically very 
   good at remaining hidden.
 * I recommend working through the steps outlined at [FAQ My site was hacked](https://wordpress.org/documentation/article/faq-my-site-was-hacked/).

Viewing 1 replies (of 1 total)

The topic ‘WordPress Core File is empty’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 3 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/wordpress-core-file-is-empty/#post-16960503)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
