Support » Plugin: Sucuri Security - Auditing, Malware Scanner and Security Hardening » Reset Plugins Feature Not Working

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author yorman


    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.

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

    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.

    Plugin Author yorman


    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.


    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.