• Resolved Chelsea

    (@chelsea)


    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

    (@chelsea)

    Anyone? ??

    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.

    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

    (@chelsea)

    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.