[resolved] Unable to locate WordPress Root directory. Installation failed. (6 posts)

  1. Erfo
    Posted 5 years ago #


    I have a big problem.
    I manually updated the WordPress to last versione (3.1.3), but when I go to panel admin, I see that WordPress isn't update.
    So I try with automatically update (update-core.php) and i receive this error "Unable to locate WordPress Root directory. Installation failed.".

    The folder "wp-content" exists and it has permissions 777.

    Moreover, into page "plugins" I don't see plugin, but in the directory /plugins/ there are all. The plugin don't work.
    While I try to install a new plugin from panel admin, I receive this error "Cannot find Content directory".

    How do I fix?

  2. govpatel
    Posted 5 years ago #

    Looks like you did not update properly so try and update manually


  3. Erfo
    Posted 5 years ago #

    Both before and after, I updated manually.
    For many years that I update manually, so the procedure should be accurate...
    When I go to => wp-admin/upgrade.php, I read "Your WordPress database is already updated!".

    Perhaps I should change or go to see something in the database?

  4. govpatel
    Posted 5 years ago #

    replace all files and folders except wp-content and wp-config.php

  5. esmi
    Forum Moderator
    Posted 5 years ago #

    Unable to locate WordPress Content/Root Directory: FIX

  6. Erfo
    Posted 5 years ago #

    @govpatel @esmi
    1) I deleted all folders (except the file wp-config.php and the folder /wp-content/) and I sent the new files/folders of the new version. I saw again "upgrade to 3.1.3......" in dashboard.
    2) I upgraded with automatically upgrade (to the panel), and I saw again "upgrade to 3.1.3..." in dashboard.
    3) I pasted the code into file wp-config.php ... I couldn't see the plugin into panel. But in the header of dashboard I saw the upgrade (but WordPress was already upgrade).
    4) I couldn't upgrade plugins and WordPress. So I deleted that code in wp-config.php . Now I can see the plugins into panel and I can automatically upgrade plugins and WordPress from panel. And I don't see the warning for upgrade to 3.1.3 version.

    govpatel and esmi, thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic