WHMCS Callback bug - vpsid https://www.softaculous.com/board/index.php?tid=14343 <![CDATA[WHMCS Callback bug - vpsid]]> https://www.softaculous.com/board/index.php?tid=14343&tpg=1#p42924
Quote From : MadStu July 26, 2018, 9:48 pm
But here is the line which tells WHMCS that the account was terminated..

mysql_query("UPDATE tblhosting SET domainstatus='Terminated' WHERE id='" . $hosting_ID . "'");

$hosting_ID is determined from from a mysql query which uses $vpsid to narrow it's search down.

And $vpsid is received from the Virtualizor server post:

// Get the variables
$hash = $_POST['hash'];
$acts = $_POST['act'];
$vpsid = (int) $_POST['vpsid'];
$extra = $_POST['data'];


I think if you can use the VPS IP to narrow the mysql query, or a combination of both IP / vpsid, it would work better.


Hi,

After considering your request we've added check for combination of both IP and vpsid in callback.

If you want patch then please open a support ticket so we can provide patch with instructions.

Let us know if you need any further information.]]>
Fri, 27 Jul 2018 10:17:36 GMT https://www.softaculous.com/board/index.php?tid=14343&tpg=1#p42924
<![CDATA[WHMCS Callback bug - vpsid]]> https://www.softaculous.com/board/index.php?tid=14343&tpg=1#p42916 Thu, 26 Jul 2018 21:51:04 GMT https://www.softaculous.com/board/index.php?tid=14343&tpg=1#p42916 <![CDATA[WHMCS Callback bug - vpsid]]> https://www.softaculous.com/board/index.php?tid=14343&tpg=1#p42915
mysql_query("UPDATE tblhosting SET domainstatus='Terminated' WHERE id='" . $hosting_ID . "'");

$hosting_ID is determined from from a mysql query which uses $vpsid to narrow it's search down.

And $vpsid is received from the Virtualizor server post:

// Get the variables
$hash = $_POST['hash'];
$acts = $_POST['act'];
$vpsid = (int) $_POST['vpsid'];
$extra = $_POST['data'];


I think if you can use the VPS IP to narrow the mysql query, or a combination of both IP / vpsid, it would work better.
]]>
Thu, 26 Jul 2018 21:48:30 GMT https://www.softaculous.com/board/index.php?tid=14343&tpg=1#p42915
<![CDATA[WHMCS Callback bug - vpsid]]> https://www.softaculous.com/board/index.php?tid=14343&tpg=1#p42914
]]>
Thu, 26 Jul 2018 21:38:00 GMT https://www.softaculous.com/board/index.php?tid=14343&tpg=1#p42914
<![CDATA[WHMCS Callback bug - vpsid]]> https://www.softaculous.com/board/index.php?tid=14343&tpg=1#p42911 Have you set correct details of your servers in your callback files ?I assume you are not using the same callback file and path on your WHMCS and Virtualizor server.

]]>
Thu, 26 Jul 2018 08:22:38 GMT https://www.softaculous.com/board/index.php?tid=14343&tpg=1#p42911
<![CDATA[]]> https://www.softaculous.com/board/index.php?tid=14343&tpg=0#p42890 I had a couple of instances where some clients VPS were showing as Terminated in WHMCS. I've since tested and it's the callback which is changing the VPS status to "Terminated" in the wrong account.

I have currently have 3 master virtualizor installs in different DC's around the world so I think it's to do with the duplication of vpsid's - so when a VPS is terminated on 1 server, it sends the callback to WHMCS, and finds the first entry with the same vpsid, whether it's that client's account or not.

Thanks]]>
Mon, 23 Jul 2018 08:40:02 GMT https://www.softaculous.com/board/index.php?tid=14343&tpg=0#p42890