Jump to content

Multiple cpanel groups locations issue


hollymann

Recommended Posts

Recently, I've spotted a bug on our WHMCS system (version. 5.2.7), that cannot properly allocate the server requests to place a shared hosting service.

 

There're 2 server groups (cPanel US, cPanel EU) with corresponding cPanel machines. The service/product was (and still remains, as it used to work properly before upgrade to 5.2.7) under cPanel EU Server Group (in Modules Settings tab of cPanel module configs).

 

When the client goes to the order form and chooses cPanel EU location - everything works fine, but when the user chooses cPanel US location, i can see that the tblhosting record created uses US keys as it should be, but the service will be still allocated on the EU servers.

 

Initial setup:

 

(tblproductconfigoptions)

+----+-----+-------------------------+------------+------------+------------+-------+--------+
| id | gid | optionname              | optiontype | qtyminimum | qtymaximum | order | hidden |
+----+-----+-------------------------+------------+------------+------------+-------+--------+
|  5 |   1 | Shared Hosting Location | 1          |          0 |          0 |     0 |      0 |
+----+-----+-------------------------+------------+------------+------------+-------+--------+

 

(Config Options setup for multiple locations, where 2 and 6 correspond to Server Groups)

select * from tblproductconfigoptionssub;
+----+----------+----------------------------------------+-----------+--------+
| id | configid | optionname                             | sortorder | hidden |
+----+----------+----------------------------------------+-----------+--------+
| 16 |        5 | 6| USA, Dallas                         |         0 |      0 |
| 15 |        5 | 2| Europe, Netherlands                 |         0 |      0 |
+----+----------+----------------------------------------+-----------+--------+

 

(End result of ordering a service in EU)

select * From tblhostingconfigoptions where relid = xxx;
+------+-------+----------+----------+-----+
| id   | relid | configid | optionid | qty |
+------+-------+----------+----------+-----+
| 1761 |  xxx |        5 |       15 |   0 |
+------+-------+----------+----------+-----+

 

The problem is that no matter which group was chosen by the user (16 or 15), WHMCS will choose server without taking in account tblhostingconfigoptions fields. If I change Server Group from EU, to US - it will start using only US cPanels, which is again not what we need.

 

Did anyone have same issues with multiple cpanel locations?

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