• Resolved doly77

    (@doly77)


    Hello,

    I export and import my sites with All in One wp migration plugin. After importing, websites works great but when I want to delete or upgrade plugins or the wordpress core from my administration area, all upgrades failed with the message “Update failed: Could not remove the old plugin.”

    I thought it was a plugin conflict, so I have deactivate others plugins except Woocommerce and All-in-One WP Migration, but delete and upgrades still failed.
    Maybe it was an access permission issues, so I have also changed access permissions to all repertories to 775. But delete and upgrades still failed.

    The only way I found to make updates working again is to add the line define( ‘FS_METHOD’, ‘direct’ ); in the wp-config.php but it creates some security issues for my sites.

    Do you have another way to remove this problem of upgrade after importing a site with All in One wp migration ?

    Best regards

    • This topic was modified 2 years, 8 months ago by doly77.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Yani

    (@yaniiliev)

    It is an ownership problem and permission issue. Perhaps you have something that changes the ownership and permissions every X hours – I have seen this on a few hosting providers.
    You should not have an issue updating WordPress and plugins after import – the plugin is using the webserver and creating files and folders with the same user that WordPress will be using too.

    If you have a more complicated setup that relies on SFTP, SSH connection to update plugins, and WordPress then you will need to normalize user and group ownerships and give permissions after importing the content.

    Folders need rwx permissions (7)
    Files need rw permissions (6)
    When you change permissions, make sure that you do it recursively and all files and folders will get them.

    There is a video we made for a different issue that talks about permissions and how to correct them: https://youtu.be/lEEmFYQPbQo

    • This reply was modified 2 years, 8 months ago by Yani. Reason: Add a video link
    Thread Starter doly77

    (@doly77)

    Thank you for your answer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘All upgrades failed after importing a site’ is closed to new replies.