• Resolved jentle1gmail.com

    (@jentle1gmailcom)


    Hi.
    I keep getting this message when trying to update the plugin.

    “Update Failed: The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.”

    How do I remedy this?

    Thanks.
    Craig Hitchens

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Craig,

    The first thing to check here is file/directory permissions, you can check that yourself or ask your hosting provider to do that for you, two things you need to check here specifically:
    – Files/Folders on your website have the correct file permissions as recommended by WordPress team.
    – Make sure the owner of the files/folders is the same user running the web server, it’s “www-data” for example in case you are running the default Apache web server on Ubuntu OS.

    Thanks.

    Thread Starter jentle1gmail.com

    (@jentle1gmailcom)

    Hi.
    Permissions are all set to 755 on wp-content and plugins folders. All previous updates of Wordfence have gone ahead with out a problem. My server is Apache 2.4.33 Linux operating system.

    The actual message displayed is this:
    An error occurred while updating Wordfence Security: The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions. lib/.htaccess.old, models/.htaccess.old, views/.htaccess.old

    Any suggestions?

    Need this to work or I will just remove the plugin and use something else.

    Cheers.
    Craig

    Hi Craig,

    There shouldn’t be “.htaccess.old” files under these directories mentioned, and they seem to be created with another owner or insufficient permissions to get them deleted through the update process. Perhaps another plugin created those copies, I wonder if you have W3 Total Cache plugin installed?

    Anyway, I’m pretty sure if you deleted these files the update will run just fine, you can do that by connecting to your website via sFTP or SSH. Also, deleting the whole plugin folder via FTP then reinstall the plugin again from WordPress Dashboard will install the latest version for you.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error During Update’ is closed to new replies.