WHMCS Module Error

Started by nuffsaid, March 26, 2018, 08:08:33 PM

Previous topic - Next topic

nuffsaid

Holah

When i try to create a new account on whmcs, i get a

"Order Accept Encountered Problems"

When i check the module debug log i see the following

https://server.example.com:2031/api/?key=wMr2MpcukGi0QpvhLMRm6JIZgVDN3LhuA6pGdOucfEH7S&api=account_new&domain=mydomain.co.zw&username=vkkcjcmq&password=ht86t1D6&package=2&email=my%40gmail.com&inode=50000&nofile=60000&nproc=40

josemnunez


nuffsaid

#2
Quote from: josemnunez on March 26, 2018, 11:38:48 PM
Try to review and download this new module

http://wiki.centos-webpanel.com/whmcs-module-for-cwp-api


I followed this tutorial to the last and still get the "Order Accept Encountered Problems error"

How can i check where its wrong ?


I copied the code and ran it on the browser and it gives me the "Allowed IP's not set or you don't have access from IP: xxx.xxx.xxx" even if the ip are set on api manager, is they another place where i go to to enter the IP ? its already allwed on csf


nuffsaid

Quote from: josemnunez on March 27, 2018, 10:10:47 AM
stop by here


http://forum.centos-webpanel.com/installation/whmcs-new-module-404/new/?topicseen#new

I followed this guide and still to no avail .

I installed whmcs on the same server and then started getting this error

"{"status":"Error","msj":"unauthorized host","format":"JSON"}"

josemnunez

Check the ip that I use in your ad administrator, this IP must be the same one of the server where your WHMCS is located

martinporter

Has anyone got this Module working yet? - no matter what I try I keep getting "Order Accept Encountered Problems"

thanks
Martin...

josemnunez

Have you manually tested that the api is responding?

ForYourIT

Quote from: nuffsaid on March 29, 2018, 01:04:13 PM
Quote from: josemnunez on March 27, 2018, 10:10:47 AM
stop by here


http://forum.centos-webpanel.com/installation/whmcs-new-module-404/new/?topicseen#new

I followed this guide and still to no avail .

I installed whmcs on the same server and then started getting this error

"{"status":"Error","msj":"unauthorized host","format":"JSON"}"

I have the same problem. When installing WHMCS on the same CWP server with the same IP, I get an unauthorized.
At the API key I inserted the public IP & also whitelisted this IP in the firewall.

Any other CWP server works good.

Will investigate this more. I think it probably follows a (local?) network path instead of going outside & inside again, which will make the server unauthorized.

josemnunez

Please try to replace the IP by% in your apikey. If this does not work check that the two IPs of your servers are on a white list

ForYourIT

Quote from: josemnunez on February 11, 2019, 02:50:15 PM
Please try to replace the IP by% in your apikey. If this does not work check that the two IPs of your servers are on a white list
Hi thanks for the answer.
When I try this, the user does get created ..... however WHMCS shows the folllowing error:

Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later

In the CWP logs I can find the following:
[12-Feb-2019 13:51:41] WARNING: [pool cwpsrv] child 930 said into stderr: "Redirecting to /bin/systemctl status lfd.service"
[12-Feb-2019 13:55:05] WARNING: [pool cwpsrv] child 930 said into stderr: "New password: "
[12-Feb-2019 13:55:06] WARNING: [pool cwpsrv] child 930 said into stderr: "Retype new password: "
[12-Feb-2019 13:55:06] WARNING: [pool cwpsrv] child 930 said into stderr: "ERROR 1141 (42000) at line 1: There is no such grant defined for user 'klpstowo' on host 'localhost'"


Right now I am trying to find out where this is going wrong.

itzdaniel483

Was this error solved?

My API settings show the URL to the API as my IPv4. I am still getting the error.