Title: Cannot redeclare validate_file()?
Last modified: August 19, 2016

---

# Cannot redeclare validate_file()?

 *  749013
 * [17 years, 11 months ago](https://wordpress.org/support/topic/cannot-redeclare-validate_file/)
 * Just installed 2.6 and ran upgrade.php, and got this.
 * `Fatal error: Cannot redeclare validate_file() (previously declared in /home/
   cmwong/domains/wetcalamari.net/public_html/wp-includes/functions.php:2238) in/
   home/cmwong/domains/wetcalamari.net/public_html/wp-admin/includes/file.php on
   line 73`
 * the directory doesn’t contain file.php, and it didn’t come in the distro either.
   Am I missing something?

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

 *  [kevinhol](https://wordpress.org/support/users/kevinhol/)
 * (@kevinhol)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/cannot-redeclare-validate_file/#post-808875)
 * I am having the same problem on two different sites. Anyone have any ideas about
   how to fix it?
 *  [buchannon](https://wordpress.org/support/users/buchannon/)
 * (@buchannon)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/cannot-redeclare-validate_file/#post-808926)
 * Same error here… what’s going on?
 *  [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/cannot-redeclare-validate_file/#post-808927)
 * I would suggest deleting everything except /wp-content/ folder then upload WP2.6
   again.
 *  [kevinhol](https://wordpress.org/support/users/kevinhol/)
 * (@kevinhol)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/cannot-redeclare-validate_file/#post-809059)
 * I deleted everything except the wp-content folder and the config file and installed
   WP2.6 and it worked. Not sure what I did the first time but that sovled the problem.
 *  [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/cannot-redeclare-validate_file/#post-809175)
 * I would always recommend you deleting everything and upload the new content instead
   of overwriting it.
 *  [herko](https://wordpress.org/support/users/herko/)
 * (@herko)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/cannot-redeclare-validate_file/#post-809233)
 * Thanks, this worked for me. Any thoughts on which file was the culprit?
 *  [nilshendriks](https://wordpress.org/support/users/nilshendriks/)
 * (@nilshendriks)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/cannot-redeclare-validate_file/#post-809314)
 * I still get this error after I’ve deleted wp-admin and wp-includes and the root
   files (and re-uploaded of course) for several times now.
 * I’ll try putting back 2.5 but I doubt that it will work.

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

The topic ‘Cannot redeclare validate_file()?’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 7 replies
 * 6 participants
 * Last reply from: [nilshendriks](https://wordpress.org/support/users/nilshendriks/)
 * Last activity: [17 years, 10 months ago](https://wordpress.org/support/topic/cannot-redeclare-validate_file/#post-809314)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
