This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[MODULE] WHMCS
RE: [MODULE] WHMCS
(10-27-2016, 08:37 AM)pomtom44 Wrote:
(10-26-2016, 09:05 PM)Rynoxx Wrote: pomtom44 Ok, to check if something is wrong with the WHMCS module or if the problem lies in the default domain module for sentora, try running this in your cli: (Replacing all the capitalized values with what would be appropriate)
Code:
curl -XPOST -d '<xmws>
   <apikey>YOUR-API-KEY-HERE</apikey
   <request>CreateDomain</request>
   <content>
<uid>USER-ID-HERE</uid>
<domain>ANY-DOMAIN-TO-TEST.TLD</domain>
<destination> </destination>
<autohome>1</autohome>
</content>
</xmws>' 'http://YOUR.SENTORA.IP.HERE/api/domains'
This is what I used when double checking on my server, uid would work fine if it's 1 (for zadmin) or the id of any other user you know currently exists on your installation

(10-27-2016, 04:55 AM)TGates Wrote: That is probably because you are trying to use https on the IP:
Code:
Caught exception: Server error response [url] https://52.37.245.73/api/domains [status code] 500 [reason phrase] Internal Server Error
 instead of IP you should be using your panel's login URL (ex: http(s)://panel.domain.com). I'm not sure if this is specific to the WHMCS module or your personal setup (</xmws>' 'http://YOUR.SENTORA.IP.HERE/api/domains')
, but you should always only use your panel login url for anything related to the panel (api connections, login, etc.) as explained in our docs.

@[Rynoxx]
Your CLI code works fine, and creates a test domain under the Zadmin user with no issues

However I have setup my server so the default IP directs to a blank page, rather than the panel, which means the url at the end (http://YOUR.SENTORA.IP.HERE/api/domains) ends up being
https://panel.host4.cheap/api/domains (Which is what ends up working under the CLI)

TGates
I have changed the IP to the same url as above, and getting the same issues
Code:
Caught exception: Server error response [url] https://panel.host4.cheap/api/domains [status code] 500 [reason phrase] Internal Server Error

The user gets created properly, the domain gets added to that user account, 
Then WHMCS throws the 
1101 success 1101 47 expression
error, and the pending order doesnt get processed in WHMCS

Im not the expert here, but it seems to me that Sentora is crashing somewhere, and not returning the correct information to WHMCS to process, or it is returning it but WHMCS isnt processing it properly

Could the fact I have changed the default IP domain mess anything up in the code?
Where its looking for the IP rather than the host and because the panel isnt at the IP its not finding the API?
Just a thought

pomtom44 The fact that it works when you run the thing in the CLI which I sent indicates that the error is caused by the WHMCS part of the module calling the Sentora API in a way which makes it error.
I'll further investigate the problem and see if I can find a way to reproduce it on my installation and try fixing it from there.
Reply
Thanks given by:


Messages In This Thread
[MODULE] WHMCS - by Rynoxx - 05-11-2015, 12:05 AM
RE: [MODULE] WHMCS - by HogensHero - 06-09-2015, 11:34 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-09-2015, 06:00 PM
RE: [MODULE] WHMCS - by HogensHero - 06-12-2015, 03:00 PM
RE: [MODULE] WHMCS - by Rynoxx - 06-12-2015, 04:40 PM
RE: [MODULE] WHMCS - by conceptr980 - 06-13-2015, 06:37 AM
RE: [MODULE] WHMCS - by HogensHero - 06-13-2015, 06:48 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-13-2015, 07:25 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-13-2015, 07:31 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-13-2015, 07:38 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-13-2015, 07:43 AM
RE: [MODULE] WHMCS - by HogensHero - 06-13-2015, 08:16 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-13-2015, 08:29 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-13-2015, 08:27 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-13-2015, 08:39 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-13-2015, 09:13 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-13-2015, 09:16 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-13-2015, 09:27 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-13-2015, 09:39 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-13-2015, 09:43 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-13-2015, 11:42 PM
RE: [MODULE] WHMCS - by Rynoxx - 06-14-2015, 01:23 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-14-2015, 02:37 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-14-2015, 02:41 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-14-2015, 03:08 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-14-2015, 03:19 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-14-2015, 06:19 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-14-2015, 06:40 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-14-2015, 07:23 PM
RE: [MODULE] WHMCS - by conceptr980 - 06-14-2015, 11:05 PM
RE: [MODULE] WHMCS - by conceptr980 - 06-15-2015, 12:15 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-15-2015, 12:27 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-15-2015, 01:20 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-15-2015, 02:05 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-15-2015, 02:19 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-15-2015, 02:22 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-15-2015, 02:28 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-15-2015, 02:36 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-15-2015, 03:40 AM
RE: [MODULE] WHMCS - by conceptr980 - 06-15-2015, 02:21 AM
RE: [MODULE] WHMCS - by HogensHero - 06-16-2015, 02:41 PM
RE: [MODULE] WHMCS - by Rynoxx - 06-16-2015, 05:26 PM
RE: [MODULE] WHMCS - by agflex - 06-22-2015, 09:17 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-22-2015, 02:53 PM
RE: [MODULE] WHMCS - by agflex - 06-23-2015, 02:27 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-23-2015, 05:33 AM
RE: [MODULE] WHMCS - by agflex - 06-23-2015, 08:57 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-23-2015, 09:09 AM
RE: [MODULE] WHMCS - by agflex - 06-23-2015, 09:14 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-23-2015, 09:28 AM
RE: [MODULE] WHMCS - by charityz2 - 07-07-2015, 08:42 PM
RE: [MODULE] WHMCS - by Rynoxx - 07-07-2015, 09:14 PM
RE: [MODULE] WHMCS - by charityz2 - 07-07-2015, 10:39 PM
RE: [MODULE] WHMCS - by Rynoxx - 07-07-2015, 11:24 PM
RE: [MODULE] WHMCS - by charityz2 - 07-08-2015, 12:16 AM
RE: [MODULE] WHMCS - by Rynoxx - 07-08-2015, 12:42 AM
RE: [MODULE] WHMCS - by charityz2 - 07-16-2015, 08:26 PM
RE: [MODULE] WHMCS - by Mariox - 08-14-2015, 10:47 AM
RE: [MODULE] WHMCS - by Rynoxx - 08-14-2015, 03:38 PM
RE: [MODULE] WHMCS - by Mr.Tnan - 09-08-2015, 06:36 PM
RE: [MODULE] WHMCS - by Rynoxx - 09-08-2015, 08:03 PM
RE: [MODULE] WHMCS - by Mr.Tnan - 09-09-2015, 05:58 AM
RE: [MODULE] WHMCS - by Rynoxx - 09-09-2015, 07:05 AM
RE: [MODULE] WHMCS - by Mr.Tnan - 09-09-2015, 09:53 AM
RE: [MODULE] WHMCS - by Rynoxx - 09-09-2015, 04:42 PM
RE: [MODULE] WHMCS - by coitam - 09-15-2015, 02:03 PM
RE: [MODULE] WHMCS - by Rynoxx - 09-15-2015, 04:47 PM
RE: [MODULE] WHMCS - by coitam - 09-19-2015, 05:48 PM
RE: [MODULE] WHMCS - by Rynoxx - 09-19-2015, 08:13 PM
RE: [MODULE] WHMCS - by refeele - 09-26-2015, 03:38 AM
RE: [MODULE] WHMCS - by refeele - 09-26-2015, 03:39 AM
RE: [MODULE] WHMCS - by MarkDark - 09-27-2015, 08:32 AM
RE: [MODULE] WHMCS - by TGates - 09-27-2015, 12:10 PM
RE: [MODULE] WHMCS - by MarkDark - 09-30-2015, 10:33 AM
RE: [MODULE] WHMCS - by MarkDark - 09-30-2015, 10:36 AM
RE: [MODULE] WHMCS - by MarkDark - 09-30-2015, 11:12 AM
RE: [MODULE] WHMCS - by coitam - 10-01-2015, 02:02 AM
RE: [MODULE] WHMCS - by MarkDark - 10-01-2015, 04:06 AM
RE: [MODULE] WHMCS - by coitam - 10-01-2015, 05:15 PM
RE: [MODULE] WHMCS - by creas - 10-01-2015, 09:22 AM
RE: [MODULE] WHMCS - by Rynoxx - 10-31-2015, 10:10 AM
RE: [MODULE] WHMCS - by creas - 11-09-2015, 09:17 PM
RE: [MODULE] WHMCS - by Rynoxx - 11-09-2015, 09:32 PM
RE: [MODULE] WHMCS - by creas - 11-09-2015, 09:44 PM
RE: [MODULE] WHMCS - by Rynoxx - 11-12-2015, 08:48 PM
RE: [MODULE] WHMCS - by creas - 11-12-2015, 09:32 PM
RE: [MODULE] WHMCS - by Rynoxx - 11-12-2015, 10:35 PM
RE: [MODULE] WHMCS - by BBuchanan - 01-02-2016, 04:21 PM
RE: [MODULE] WHMCS - by Rynoxx - 01-02-2016, 08:06 PM
RE: [MODULE] WHMCS - by BBuchanan - 01-03-2016, 03:43 PM
RE: [MODULE] WHMCS - by cybercoder - 01-10-2016, 06:29 AM
RE: [MODULE] WHMCS - by cybercoder - 01-10-2016, 06:37 AM
RE: [MODULE] WHMCS - by Rynoxx - 01-10-2016, 07:14 AM
RE: [MODULE] WHMCS - by KyKarHosting - 02-01-2016, 05:27 AM
RE: [MODULE] WHMCS - by Rynoxx - 02-01-2016, 05:39 AM
RE: [MODULE] WHMCS - by KyKarHosting - 02-01-2016, 06:07 AM
RE: [MODULE] WHMCS - by Rynoxx - 02-01-2016, 06:31 AM
RE: [MODULE] WHMCS - by Rynoxx - 02-01-2016, 06:26 PM
RE: [MODULE] WHMCS - by modcar - 04-06-2016, 08:49 PM
RE: [MODULE] WHMCS - by Rynoxx - 04-06-2016, 08:58 PM
RE: [MODULE] WHMCS - by modcar - 04-06-2016, 09:09 PM
RE: [MODULE] WHMCS - by Rynoxx - 04-06-2016, 09:13 PM
RE: [MODULE] WHMCS - by modcar - 04-06-2016, 09:26 PM
RE: [MODULE] WHMCS - by Rynoxx - 04-06-2016, 09:34 PM
RE: [MODULE] WHMCS - by modcar - 04-06-2016, 09:39 PM
RE: [MODULE] WHMCS - by twente - 04-16-2016, 02:34 AM
RE: [MODULE] WHMCS - by Rynoxx - 04-16-2016, 03:04 AM
RE: [MODULE] WHMCS - by twente - 04-18-2016, 05:58 PM
RE: [MODULE] WHMCS - by Leo. - 05-01-2016, 08:07 PM
RE: [MODULE] WHMCS - by Rynoxx - 05-02-2016, 11:08 PM
RE: [MODULE] WHMCS - by Leo. - 05-03-2016, 07:55 AM
RE: [MODULE] WHMCS - by Rynoxx - 05-03-2016, 05:56 PM
RE: [MODULE] WHMCS - by Leo. - 05-03-2016, 06:51 PM
RE: [MODULE] WHMCS - by Leo. - 05-06-2016, 08:52 AM
RE: [MODULE] WHMCS - by Rynoxx - 05-06-2016, 04:13 PM
RE: [MODULE] WHMCS - by Leo. - 05-07-2016, 07:37 PM
RE: [MODULE] WHMCS - by Rynoxx - 05-07-2016, 07:46 PM
RE: [MODULE] WHMCS - by Leo. - 05-07-2016, 09:56 PM
RE: [MODULE] WHMCS - by Rynoxx - 05-07-2016, 10:01 PM
RE: [MODULE] WHMCS - by Leo. - 05-07-2016, 10:03 PM
RE: [MODULE] WHMCS - by Rynoxx - 05-08-2016, 08:40 PM
RE: [MODULE] WHMCS - by Leo. - 05-08-2016, 09:57 PM
RE: [MODULE] WHMCS - by sghosh1810 - 05-02-2016, 09:30 PM
RE: [MODULE] WHMCS - by Rynoxx - 05-08-2016, 10:07 PM
RE: [MODULE] WHMCS - by Leo. - 05-08-2016, 10:32 PM
RE: [MODULE] WHMCS - by Leo. - 05-08-2016, 10:54 PM
RE: [MODULE] WHMCS - by Rynoxx - 05-08-2016, 11:25 PM
RE: [MODULE] WHMCS - by Leo. - 05-08-2016, 11:32 PM
RE: [MODULE] WHMCS - by Leo. - 05-08-2016, 11:37 PM
RE: [MODULE] WHMCS - by Rynoxx - 05-08-2016, 11:54 PM
RE: [MODULE] WHMCS - by Leo. - 05-09-2016, 12:04 AM
RE: [MODULE] WHMCS - by Leo. - 05-09-2016, 12:09 AM
RE: [MODULE] WHMCS - by Rynoxx - 05-09-2016, 12:16 AM
RE: [MODULE] WHMCS - by Leo. - 05-09-2016, 12:27 AM
RE: [MODULE] WHMCS - by Rynoxx - 05-09-2016, 12:34 AM
RE: [MODULE] WHMCS - by Leo. - 05-09-2016, 12:37 AM
RE: [MODULE] WHMCS - by Rynoxx - 05-09-2016, 12:48 AM
RE: [MODULE] WHMCS - by Leo. - 05-09-2016, 01:57 AM
RE: [MODULE] WHMCS - by Rynoxx - 05-09-2016, 02:44 AM
RE: [MODULE] WHMCS - by Leo. - 05-09-2016, 03:47 AM
RE: [MODULE] WHMCS - by Rynoxx - 05-09-2016, 04:31 AM
RE: [MODULE] WHMCS - by Leo. - 05-09-2016, 07:09 AM
RE: [MODULE] WHMCS - by Leo. - 05-09-2016, 08:38 AM
RE: [MODULE] WHMCS - by Rynoxx - 05-09-2016, 05:57 PM
RE: [MODULE] WHMCS - by Leo. - 05-09-2016, 06:45 PM
RE: [MODULE] WHMCS - by Rynoxx - 05-09-2016, 06:57 PM
RE: [MODULE] WHMCS - by Leo. - 05-11-2016, 12:46 AM
RE: [MODULE] WHMCS - by Rynoxx - 05-11-2016, 01:14 AM
RE: [MODULE] WHMCS - by Leo. - 05-12-2016, 02:27 AM
RE: [MODULE] WHMCS - by Rynoxx - 05-12-2016, 03:23 AM
RE: [MODULE] WHMCS - by Leo. - 05-14-2016, 01:16 AM
RE: [MODULE] WHMCS - by Rynoxx - 05-14-2016, 01:38 AM
RE: [MODULE] WHMCS - by Leo. - 05-14-2016, 02:47 AM
RE: [MODULE] WHMCS - by Leo. - 05-18-2016, 10:04 PM
RE: [MODULE] WHMCS - by Rynoxx - 05-18-2016, 10:10 PM
RE: [MODULE] WHMCS - by Leo. - 05-18-2016, 10:30 PM
RE: [MODULE] WHMCS - by Rynoxx - 05-18-2016, 10:54 PM
RE: [MODULE] WHMCS - by Leo. - 05-19-2016, 12:22 AM
RE: [MODULE] WHMCS - by Cantalupo - 06-06-2016, 07:24 AM
RE: [MODULE] WHMCS - by twente - 06-06-2016, 10:28 PM
RE: [MODULE] WHMCS - by Rynoxx - 06-06-2016, 11:35 PM
RE: [MODULE] WHMCS - by twente - 06-07-2016, 06:14 PM
RE: [MODULE] WHMCS - by Cantalupo - 06-07-2016, 01:39 AM
RE: [MODULE] WHMCS - by Cantalupo - 06-09-2016, 03:38 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-09-2016, 04:21 AM
RE: [MODULE] WHMCS - by colthrax - 06-11-2016, 01:51 AM
RE: [MODULE] WHMCS - by Rynoxx - 06-11-2016, 02:51 AM
RE: [MODULE] WHMCS - by Cantalupo - 06-11-2016, 09:42 AM
RE: [MODULE] WHMCS - by Cantalupo - 06-11-2016, 11:36 PM
RE: [MODULE] WHMCS - by Rynoxx - 06-11-2016, 11:40 PM
RE: [MODULE] WHMCS - by Cantalupo - 06-12-2016, 02:04 AM
RE: [MODULE] WHMCS - by sabir007 - 07-24-2016, 09:56 AM
RE: [MODULE] WHMCS - by Rynoxx - 07-26-2016, 04:57 PM
RE: [MODULE] WHMCS - by Cantalupo - 08-05-2016, 08:10 AM
RE: [MODULE] WHMCS - by Rynoxx - 08-05-2016, 03:50 PM
RE: [MODULE] WHMCS - by Cantalupo - 08-05-2016, 04:00 PM
RE: [MODULE] WHMCS - by Rynoxx - 08-05-2016, 05:06 PM
RE: [MODULE] WHMCS - by Cantalupo - 08-05-2016, 09:46 PM
RE: [MODULE] WHMCS - by Rynoxx - 08-05-2016, 10:30 PM
RE: [MODULE] WHMCS - by Cantalupo - 08-05-2016, 10:35 PM
RE: [MODULE] WHMCS - by Rynoxx - 08-05-2016, 10:44 PM
RE: [MODULE] WHMCS - by pomtom44 - 10-16-2016, 11:19 AM
RE: [MODULE] WHMCS - by Rynoxx - 10-16-2016, 07:45 PM
RE: [MODULE] WHMCS - by pomtom44 - 10-17-2016, 08:59 AM
RE: [MODULE] WHMCS - by Rynoxx - 10-17-2016, 05:21 PM
RE: [MODULE] WHMCS - by pomtom44 - 10-17-2016, 05:50 PM
RE: [MODULE] WHMCS - by Rynoxx - 10-17-2016, 06:00 PM
RE: [MODULE] WHMCS - by pomtom44 - 10-17-2016, 06:05 PM
RE: [MODULE] WHMCS - by Rynoxx - 10-17-2016, 07:34 PM
RE: [MODULE] WHMCS - by pomtom44 - 10-18-2016, 10:59 AM
RE: [MODULE] WHMCS - by Rynoxx - 10-18-2016, 07:04 PM
RE: [MODULE] WHMCS - by pomtom44 - 10-19-2016, 04:39 AM
RE: [MODULE] WHMCS - by pomtom44 - 10-21-2016, 01:47 PM
RE: [MODULE] WHMCS - by Rynoxx - 10-21-2016, 10:36 PM
RE: [MODULE] WHMCS - by pomtom44 - 10-22-2016, 07:52 AM
RE: [MODULE] WHMCS - by Rynoxx - 10-23-2016, 02:06 AM
RE: [MODULE] WHMCS - by pomtom44 - 10-25-2016, 11:24 AM
RE: [MODULE] WHMCS - by Rynoxx - 10-26-2016, 09:05 PM
RE: [MODULE] WHMCS - by TGates - 10-27-2016, 04:55 AM
RE: [MODULE] WHMCS - by Rynoxx - 10-27-2016, 08:03 AM
RE: [MODULE] WHMCS - by pomtom44 - 10-27-2016, 08:37 AM
RE: [MODULE] WHMCS - by Rynoxx - 10-27-2016, 05:40 PM
RE: [MODULE] WHMCS - by pomtom44 - 10-27-2016, 07:33 PM
RE: [MODULE] WHMCS - by pomtom44 - 11-15-2016, 03:49 PM
RE: [MODULE] WHMCS - by Rynoxx - 11-15-2016, 06:34 PM
RE: [MODULE] WHMCS - by pomtom44 - 11-16-2016, 12:40 PM
RE: [MODULE] WHMCS - by pomtom44 - 11-19-2016, 08:43 PM
RE: [MODULE] WHMCS - by TGates - 11-20-2016, 06:17 AM
RE: [MODULE] WHMCS - by Me.B - 11-20-2016, 07:17 AM
RE: [MODULE] WHMCS - by pomtom44 - 11-20-2016, 10:26 AM
RE: [MODULE] WHMCS - by pomtom44 - 11-20-2016, 11:47 AM
RE: [MODULE] WHMCS - by Rynoxx - 11-20-2016, 11:03 PM
RE: [MODULE] WHMCS - by pomtom44 - 11-21-2016, 04:44 AM
RE: [MODULE] WHMCS - by pomtom44 - 11-23-2016, 11:15 AM
RE: [MODULE] WHMCS - by fliphost - 12-27-2016, 10:18 PM
RE: [MODULE] WHMCS - by Rynoxx - 12-27-2016, 11:28 PM
RE: [MODULE] WHMCS - by TGates - 12-27-2016, 11:51 PM
RE: [MODULE] WHMCS - by fliphost - 12-28-2016, 04:35 PM
RE: [MODULE] WHMCS - by Rynoxx - 12-29-2016, 02:07 AM
RE: [MODULE] WHMCS - by fliphost - 12-29-2016, 03:54 AM
RE: [MODULE] WHMCS - by kini - 02-16-2017, 02:28 AM
RE: [MODULE] WHMCS - by Rynoxx - 02-16-2017, 05:50 AM
RE: [MODULE] WHMCS - by mohdsah - 02-25-2017, 08:39 AM
RE: [MODULE] WHMCS - by Rynoxx - 02-25-2017, 09:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
[Module] ELFileManager (build on elfinder) Diablo925 94 288 ,937 05-30-2024, 05:25 AM
Last Post: TGates
[MODULE] phpMyAdmin-AU (Auto-Update) TGates 14 44 ,881 06-15-2021, 06:54 AM
Last Post: TGates
[MODULE] SenBrand - Basic Branding module for Sentora TGates 20 49 ,360 06-04-2021, 11:47 AM
Last Post: ccr1969

Forum Jump:


Users browsing this thread: 36 Guest(s)