Subwayhost Posted May 3, 2018 Share Posted May 3, 2018 Is it working automatically ! 0 Quote Link to comment Share on other sites More sharing options...
Subwayhost Posted May 5, 2018 Author Share Posted May 5, 2018 Sorry for being noise here I uploaded it to the hooks folder inside the whmcs 6.5.2 and it doesn't deleted anything also a white page for this issue! 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted May 6, 2018 Share Posted May 6, 2018 Hi @Subwayhost the hook was written for active LTS Versions, we didn't release a version 6.5.2 could you clarify what release you are using please 0 Quote Link to comment Share on other sites More sharing options...
Subwayhost Posted May 6, 2018 Author Share Posted May 6, 2018 57 minutes ago, WHMCS ChrisD said: Hi @Subwayhost the hook was written for active LTS Versions, we didn't release a version 6.5.2 could you clarify what release you are using please I'm using 6.5.2 version of WHMCS 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted May 6, 2018 Share Posted May 6, 2018 8 minutes ago, Subwayhost said: I'm using 6.5.2 version of WHMCS Our last release of the V6 branch was V6.3.1 on 13th April 2016 followed by v6.3.2 on 29th December 2016 we don't have a 6.5.2 release this hook was only tested on those releases in LTS Status that is Version 7.2 and above, so this hook may not work with earlier versions 0 Quote Link to comment Share on other sites More sharing options...
Subwayhost Posted May 6, 2018 Author Share Posted May 6, 2018 8 hours ago, WHMCS ChrisD said: Our last release of the V6 branch was V6.3.1 on 13th April 2016 followed by v6.3.2 on 29th December 2016 we don't have a 6.5.2 release this hook was only tested on those releases in LTS Status that is Version 7.2 and above, so this hook may not work with earlier versions I apologize it's v6.3.2 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 6, 2018 Share Posted May 6, 2018 1 hour ago, Subwayhost said: I apologize it's v6.3.2 looking at the code, my guess is that v6 might not like the PHP array abbreviation [] in the $results line... changing it to array('clientid' => $client->id) might make it work in v6. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Josh Posted May 8, 2018 Share Posted May 8, 2018 Thanks everyone for the feedback! To clarify, this file is not meant to run with the WHMCS hooks system as there is no add_hook() function call being made, so placing it in the /includes/hooks directory may not work. This file was meant to be a one-off solution to be used for removing the mass spam clients that were being created. In order to use it properly, you would simply place the file in your WHMCS root directory and then access the file from your browser to run it. It should provide you with the output of what clients were able to be deleted or which clients were not (if any). You can run the script as many times as needed until all of the spam clients have been removed. When you are done using the script, it should be removed from the server as it does contain code that destroys data (deletes clients). It shouldn't ever be an issue, but to be safe it is good practice to remove utility scripts when they aren't needed anymore. As always, please remember to take a database backup before using this tool. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.