Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : WHMCS Callback bug - vpsid



Threaded Mode | Print  

 WHMCS Callback bug - vpsid (5 Replies, Read 3464 times)
MadStu
Group: Member
Post Group: Newbie
Posts: 10
Status:
Hi,
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
IP: --   

WHMCS Callback bug - vpsid
jevingala
Group: Virtualizor Team
Post Group: Super Member
Posts: 739
Status:
Hi,
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.



-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/
IP: --   

WHMCS Callback bug - vpsid
MadStu
Group: Member
Post Group: Newbie
Posts: 10
Status:
Hi, yes I have double checked, each master virtualizor server is pointing to it's own callback file with different IP's and hash keys. The only variable which is configured the same is the $admin_user.

IP: --   

WHMCS Callback bug - vpsid
MadStu
Group: Member
Post Group: Newbie
Posts: 10
Status:
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.
IP: --   

WHMCS Callback bug - vpsid
MadStu
Group: Member
Post Group: Newbie
Posts: 10
Status:
And of course, it doesn't only affect the terminations, but all of the callback cases
IP: --   

WHMCS Callback bug - vpsid
kaushal
Group: Member
Post Group: Newbie
Posts: 49
Status:
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.

-----------------------
-----------------------
Regards,
Kaushal Vora
Virtualizor Team.
http://virtualizor.com/
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 7:20 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.025