Forums

[resolved] "Cannot redeclare" error in wp-includes (5 posts)

  1. Chelsea
    Member
    Posted 6 years ago #

    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..

  2. Chelsea
    Member
    Posted 6 years ago #

    Anyone? :(

  3. Kafkaesqui
    Moderator
    Posted 6 years ago #

    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.

  4. Austin Matzko
    Member
    Posted 6 years ago #

    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.

  5. Chelsea
    Member
    Posted 6 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags