Title: Version.php Missing / Can&#039;t Upload / Deletes Itself
Last modified: August 22, 2016

---

# Version.php Missing / Can't Upload / Deletes Itself

 *  Resolved [dgowenlock](https://wordpress.org/support/users/dgowenlock/)
 * (@dgowenlock)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/versionphp-missing-cant-upload-deletes-itself/)
 * Currently experiencing this error and warning:
 * Warning: require(/home/mbekker1/public_html/wp-includes/version.php) [function.
   require]: failed to open stream: No such file or directory in /home/mbekker1/
   public_html/wp-settings.php on line 30
 * Fatal error: require() [function.require]: Failed opening required ‘/home/mbekker1/
   public_html/wp-includes/version.php’ (include_path=’.:/usr/lib/php’) in /home/
   mbekker1/public_html/wp-settings.php on line 30
 * I’ve checked, and version.php is indeed missing. I tried uploading it with cPanel,
   and it says the file transfer was sucsessful, but it is not there. I tried creating
   a new file and pasting the correct contents. It appears to be there, but I refresh
   the site and it dissapears again.
 * What’s going on? How can I get the file to stay there and fix the site?

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/versionphp-missing-cant-upload-deletes-itself/#post-5518854)
 * Hm, that’s very strange. Are you running any security plugins or server-level
   security software that you have control over?
 *  Thread Starter [dgowenlock](https://wordpress.org/support/users/dgowenlock/)
 * (@dgowenlock)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/versionphp-missing-cant-upload-deletes-itself/#post-5518860)
 * No and no.
 * It broke when we got an automatic email about auto update to 3.9.3.
 * I’ve fixed it now by copying the entire contents from a downloaded copy of 3.9.3
   and overwriting all but the wp_contents directory.
 * Somewhere along the line the database was trashed, everything in posts tables
   was changed to type posts. Instead of fixing, I restored from a prior database
   backup and am in the process of re-publishing the content lost since last database
   backup.
 * Not much lost, but considering turning off auto updates now?
 *  Thread Starter [dgowenlock](https://wordpress.org/support/users/dgowenlock/)
 * (@dgowenlock)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/versionphp-missing-cant-upload-deletes-itself/#post-5518861)
 * P.S. Thank you for your reply 🙂
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/versionphp-missing-cant-upload-deletes-itself/#post-5518885)
 * Generally, auto-updates are safe, it’s far more likely a momentary glitch on 
   the server end caused the damage during upgrade. If you want to, you can disable
   the auto-updates following this guide:
 * [https://codex.wordpress.org/Configuring_Automatic_Background_Updates#Configuration_via_wp-config.php](https://codex.wordpress.org/Configuring_Automatic_Background_Updates#Configuration_via_wp-config.php)
 *  Thread Starter [dgowenlock](https://wordpress.org/support/users/dgowenlock/)
 * (@dgowenlock)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/versionphp-missing-cant-upload-deletes-itself/#post-5519020)
 * Thank you James
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/versionphp-missing-cant-upload-deletes-itself/#post-5519021)
 * You’re welcome!

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

The topic ‘Version.php Missing / Can't Upload / Deletes Itself’ is closed to new
replies.

## Tags

 * [deleting](https://wordpress.org/support/topic-tag/deleting/)
 * [file](https://wordpress.org/support/topic-tag/file/)
 * [missing](https://wordpress.org/support/topic-tag/missing/)
 * [version.php](https://wordpress.org/support/topic-tag/version-php/)
 * [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: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/versionphp-missing-cant-upload-deletes-itself/#post-5519021)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
