Title: &#8220;Cannot redeclare&#8221; error in wp-includes
Last modified: August 18, 2016

---

# “Cannot redeclare” error in wp-includes

 *  Resolved [Chelsea](https://wordpress.org/support/users/chelsea/)
 * (@chelsea)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/cannot-redeclare-error-in-wp-includes/)
 * I’m one of several upgrading to 2.0 this week, and everything seemed to be going
   fine until I tried to access wp-admin/upgrade.php and then got this error:
 * Fatal error: Cannot redeclare user_can_create_post() (previously declared in /
   home/unchaine/public_html/wp-includes/functions-post.php:335) in /home/unchaine/
   public_html/wp-includes/capabilities.php on line 339
 * …. I don’t know what’s wrong. Help?!
 * Edit: Remembered I need to give more info – oops – I’m upgrading from 1.5.3 (
   if that makes any difference) and have all requirements met for WordPress basically..

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

 *  Thread Starter [Chelsea](https://wordpress.org/support/users/chelsea/)
 * (@chelsea)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/cannot-redeclare-error-in-wp-includes/#post-311267)
 * Anyone? 🙁
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/cannot-redeclare-error-in-wp-includes/#post-311291)
 * The user_can_create_post() function in 2.0 was moved to capabilities.php (wp-
   includes/ directory), so I suspect your functions-post.php was not properly updated
   to the 2.0 version.
 *  [Austin Matzko](https://wordpress.org/support/users/filosofo/)
 * (@filosofo)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/cannot-redeclare-error-in-wp-includes/#post-311294)
 * In other words, be sure to follow the instructions in particular about deleting
   all files except wp-config.php and those in wp-content, before you upload the
   new files.
 *  Thread Starter [Chelsea](https://wordpress.org/support/users/chelsea/)
 * (@chelsea)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/cannot-redeclare-error-in-wp-includes/#post-311436)
 * Oh.. apparently the problem was I didn’t delete my vars.php (I edited the smilies)
   and then that messed it up. I deleted everything but wp-content and wp-config.
   php and re-uploaded – it works beautifully now!

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

The topic ‘“Cannot redeclare” error in wp-includes’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 3 participants
 * Last reply from: [Chelsea](https://wordpress.org/support/users/chelsea/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/cannot-redeclare-error-in-wp-includes/#post-311436)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
