(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)
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 installationCode: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'
(10-27-2016, 04:55 AM)TGates Wrote: That is probably because you are trying to use https on the IP:
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')Code:Caught exception: Server error response [url] https://52.37.245.73/api/domains [status code] 500 [reason phrase] Internal Server Error
, 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.