Support » Plugin: WP Staging - DB & File Duplicator & Migration » ‘Remove Data on Uninstall’ does not remove all data

  • Settings: Remove Data on Uninstall? explains:

    “Check this box if you like WP Staging to completely remove all of its data when the plugin is deleted.”

    however, when selected, the following files and directories are left behind in the live site, after deleting the plugin:

    • wp-content/mu-plugins/
    • wp-content/uploads/wp-staging/
    • wp-content/uploads/wp-staging/index.php
    • wp-content/uploads/wp-staging/web.config
    • wp-content/uploads/wp-staging/logs/
    • wp-content/uploads/wp-staging/logs/2IBIWG~W.LOG
    • wp-content/uploads/wp-staging/logs/2019_02_27.log
    • wp-content/uploads/wp-staging/logs/index.php
    • wp-content/uploads/wp-staging/logs/test.log
    • wp-content/uploads/wp-staging/logs/web.config

    also, files in wp-content/uploads/wp-staging/logs/ are read-only; only root can delete them.

    i agree that – in most cases – it’s good to keep the logs, but with ‘Remove Data on Uninstall’ selected, i expected everything created to be deleted.

    context: fresh and empty wp 5.1 installation (single site), standard theme, only wp-staging 2.5.0 plugin installed and active.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rene Hermenau

    (@renehermi)

    Hi @jeroenvg

    good catch. Thanks for the heads up. This is going to be fixed.

    Cheers
    René

    Plugin Author Rene Hermenau

    (@renehermi)

    Hi @jeroenvg,

    I am sorry I’ overlooked this important information:

    > also, files in wp-content/uploads/wp-staging/logs/ are read-only; only root can delete them.

    Did you upload the wp staging plugin manually via FTP as root user?

    That is the only explanation I have so far.

    When you install wp staging via plugins > Add New
    the plugin files and even the log files get the owner your website is running under.

    But if you upload and install wp staging as root by uploading the plugin manually via (s)FTP it’s not possible for WordPress to delete files that has been created by wp staging running as root like the mu-plugin.

    I am going to finish a new version today which removes the log files as well. Would you be free to give it a try?

    • This reply was modified 15 hours, 23 minutes ago by  Rene Hermenau.
    • This reply was modified 15 hours, 22 minutes ago by  Rene Hermenau.

    hi Rene,

    > Did you upload the wp staging plugin manually via FTP as root user?

    no, i installed directly from wordpress.org/plugins/, and authenticated locally over SSH, but not as root.

    if i remember correctly, ownership wasn’t the problem, but permissions: the files were only user-writable (for the user the website runs as).

    i noticed because the shell user i logged in as could not delete them; i needed sudo.

    so, the plugin (the user the website runs as) would probably succeed in deleting them.

    i’d be happy to test a new version in the coming days.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.