WHMCS createaccount...
 
Notifications
Clear all

WHMCS createaccount error code -2

38 Posts
4 Users
0 Likes
4,817 Views
Posts: 38
Topic starter
(@glararan)
Eminent Member
Joined: 8 years ago

Hello,

 

I hope that I need last help 🙂 I managed to create invoice and activate it. For first time there was no error only "success". I looked into SolidCP Panel and there was no new account :/ So I did invoice again and there it comes.. error.

 

Full error: CreateAccount Fault: (Code: -2, Message: Fault: An unknown error occured (Code: -2). Please reference SolidCP BusinessErrorCodes for further information, Service ID: 2)

I went to git with hope to find whats error code -2, unfortunately I didn't find in source code what's error -2. Could you please help me to find out what's the problem?

 

Module log:

Array
(
[whmcsVersion] => 6.3.0-release.1
[accountid] => 2
[serviceid] => 2
[userid] => 1
[domain] => example.com
[username] => testc
[password] => 3Lbe9zY5g0
[packageid] => 1
[pid] => 1
[serverid] => 1
[status] => Pending
[type] => hostingaccount
[producttype] => hostingaccount
[moduletype] => SolidCP
[configoption1] => Package1
[configoption2] =>
[configoption3] =>
[configoption4] => 8
[configoption5] => 1
[configoption6] => on
[configoption7] => http://127.0.0.1:9001
[configoption8] =>
[configoption9] =>
[configoption10] =>
[configoption11] =>
[configoption12] =>
[configoption13] =>
[configoption14] =>
[configoption15] => on
[configoption16] =>
[configoption17] =>
[configoption18] =>
[configoption19] =>
[configoption20] =>
[configoption21] =>
[configoption22] =>
[configoption23] =>
[configoption24] =>
[customfields] => Array
(
)

[configoptions] => Array
(
)

[clientsdetails] => Array
(
[userid] => 1
[id] => 1
[uuid] => 6d22c183-45a5-4537-97d2-e0c941bbdfbc
[firstname] => FirstName
[lastname] => LastName
[fullname] => FirstName LastName
[companyname] =>
[email] => test@test .com

[address1] => Addr1
[address2] =>
[city] => City1
[fullstate] => CZ
[state] => CZ
[postcode] => 12345
[countrycode] => CZ
[country] => CZ
[phonenumber] => 123456789
[password] => $2y$10$pQiRQoBlyhbbFQWgQNhnrOsp9sXvNA1B.2Js6tfTqXVU3VJ74xarS
[statecode] => CZ
[countryname] => Czech Republic
[phonecc] => 420
[phonenumberformatted] => +420.123456789
[billingcid] => 0
[notes] =>
[twofaenabled] =>
[currency] => 2
[defaultgateway] =>
[cctype] =>
[cclastfour] =>
[securityqid] => 0
[securityqans] =>
[groupid] => 0
[status] => Inactive
[credit] => 0.00
[taxexempt] =>
[latefeeoveride] =>
[overideduenotices] =>
[separateinvoices] =>
[disableautocc] =>
[emailoptout] =>
[overrideautoclose] =>
[allowSingleSignOn] => 1
[language] =>
[lastlogin] => Date: 17/10/2016 23:03<br>IP Address: xxx.xxx.xxx.xxx<br>Host:
)

[server] => 1
[serverip] => 127.0.0.1
[serverhostname] => 127.0.0.1
[serverusername] => whmcs
[serverpassword] => p@ssw0rd
[serveraccesshash] =>
[serversecure] =>
[serverhttpprefix] => http
[serverport] => 9002
[action] => create
)

 

Thanks for help

37 Replies
Posts: 1456
Admin
(@trobinson)
Noble Member
Joined: 8 years ago

Hi,

 

Could you check the eventlog on your SCPServer and SCPPortal to see if any more details have been logged?

 

I did look and there isn't a error -2 its normally at least 3digits.

 

Kind Regards,

 

Trevor Robinson

Reply
Posts: 80
(@bogdan_k)
Member
Joined: 8 years ago

Hi,

I assume you are using the SolidCP WHMCS Plugin v. 1.1.0. If not, please let me know it.

Please check also the following steps:

  1. Please go in WHMCS adminarea to Setup -> Products/Services -> Edit the server and press the "Test connection" button. If the credentials and the communication with the SolidCP API is correct, then you will get a green "Successful!". If there is something wrong with the connection, adjust the server settings and credentials until the connection is working. Here you can also adjust the port, but as already told, 9002 is the standard, if you has not changed it in the SolidCP installation.
  2. If you go to the SolidCP portal and login with the same credentials "user: whmcs / pass: p@ssword ", are you able to create manually a new user and create for this user a space with the Plan ID 8?
  3. According to your settings (connecting to localhost), you are using WHMCS on a Windows server. Please note that WHMCS doesn't support Windows webservers. They only test WHMCS with Linux webservers. We had many mysterious errors while trying to run WHMCS on the same Windows machine. Then we gave up and installed WHMCS on a Linux VM. In a Linux environment the installation and configuration was working without any problems.
Reply
Posts: 38
Topic starter
(@glararan)
Eminent Member
Joined: 8 years ago

Trevor:

Unfortunately no error in EventViewer 🙁 I checked that as first opinion where to find error :/

Bogdan:

  1. Test is success, I did it before I created topic.
  2. I'm able to create as whmcs new user and also I can give him a space with that ID
  3. Im running WHMCS in IIS, so its Windows :/ 2016
Reply
Posts: 38
Topic starter
(@glararan)
Eminent Member
Joined: 8 years ago

Question to some developer.. how you debugging solidcp? Remote debugger? I think WHMCS is not problem in my case.

 

Thanks

Reply
Page 1 / 5
Share: