Jump to content

Mass Delete Spam Clients not working


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated