Viewing 5 replies - 1 through 5 (of 5 total)
  • The Sucuri plugin tries to delete the directories where the selected plugins are installed, this includes all the files and sub-directories inside each plugin. When the directory is deleted it proceeds to execute the exact same functions that WordPress normally uses to run the plugin installer/upgrader.

    As you say that the WordPress installer is working correctly we can assume that the bug is in the custom code that performs the deletion of the old plugin directory, as the folder is not completely deleted WordPress can not proceed to install the new version because the target path already exists.

    I will run some tests and see how can I fix this.

    Thread Starter Jackson Whelan

    (@madjax)

    Thanks Yorman, I agree with your assumption and look forward to resolving this.

    Thread Starter Jackson Whelan

    (@madjax)

    The problem is definitely within the remove_directory_tree function for me. I can verify all files are deleted inside the directories, but the directories remain.

    Fixed with changeset 1151299 [1]. You can download the development version [2] of the plugin if you want to test the new changes. Thanks for the suggestion.

    [1] https://plugins.trac.www.ads-software.com/changeset/1151299
    [2] https://downloads.www.ads-software.com/plugin/sucuri-scanner.zip

    Thread Starter Jackson Whelan

    (@madjax)

    Thanks for the fix!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Reset Plugins Feature Not Working’ is closed to new replies.