WHMCS Error
#1
WHMCS Error
Hello,

I have posted this before but no one replied. This is what is happening. I buy something and the I get an email saying the API Request failed?

@[Rynoxx]


Caught exception: Server error response [url] http://cp.instahosting.uk/api/whmcs [status code] 500 [reason phrase] Internal Server Error

#0 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/lib/senitor/vendor/guzzlehttp/guzzle/src/Subscriber/HttpError.php(33): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Message\Request), Object(GuzzleHttp\Message\Response))
#1 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/lib/senitor/vendor/guzzlehttp/guzzle/src/Event/Emitter.php(109): GuzzleHttp\Subscriber\HttpError->onComplete(Object(GuzzleHttp\Event\CompleteEvent), 'complete')
#2 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/lib/senitor/vendor/guzzlehttp/guzzle/src/RequestFsm.php(91): GuzzleHttp\Event\Emitter->emit('complete', Object(GuzzleHttp\Event\CompleteEvent))
#3 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/lib/senitor/vendor/guzzlehttp/guzzle/src/RequestFsm.php(132): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
#4 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/lib/senitor/vendor/react/promise/src/FulfilledPromise.php(24): GuzzleHttp\RequestFsm->GuzzleHttp\{closure}(Array)
#5 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/lib/senitor/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php(55): React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL)
#6 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/lib/senitor/vendor/guzzlehttp/guzzle/src/Message/FutureResponse.php(43): GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL)
#7 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/lib/senitor/vendor/guzzlehttp/guzzle/src/RequestFsm.php(135): GuzzleHttp\Message\FutureResponse::proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure))
#8 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/lib/senitor/vendor/guzzlehttp/guzzle/src/Client.php(233): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
#9 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/lib/senitor/vendor/guzzlehttp/guzzle/src/Client.php(218): GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request))
#10 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/lib/senitor/src/Handlers/XmwsRequest.php(91): GuzzleHttp\Client->post('whmcs', Array)
#11 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/lib/senitor/src/Senitor.php(130): Ballen\Senitor\Handlers\XmwsRequest->send()
#12 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/sentora.php(163): Ballen\Senitor\Senitor->send()
#13 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/servers/sentora/sentora.php(242): sendSenitorRequest(Array, 'whmcs', 'CreateClient', Array)
#14 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/includes/classes/WHMCS/Module/AbstractModule.php(0): sentora_CreateAccount(Array)
#15 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/includes/classes/WHMCS/Module/Server.php(0): WHMCS\Module\AbstractModule->call()
#16 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/includes/modulefunctions.php(0): WHMCS\Module\Server->call()
#17 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/includes/modulefunctions.php(0): ModuleCallFunction()
#18 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/includes/invoicefunctions.php(0): ServerCreateAccount()
#19 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/includes/invoicefunctions.php(0): makeHostingPayment()
#20 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/includes/invoicefunctions.php(0): processPaidInvoice()
#21 /var/sentora/hostdata/zadmin/public_html/billing_instahosting_uk/modules/gateways/callback/paypal.php(0): addInvoicePayment()
#22 {main}


Thanks,
Lewis Smile
Reply
#2
RE: WHMCS Error
Hi @[instahost],
Check your Sentora error logs and post them here, seeing as the error is on the Sentora side of the modules.
Reply
#3
RE: WHMCS Error
(12-23-2015, 10:14 PM)Rynoxx Wrote: Hi @[instahost],
Check your Sentora error logs and post them here, seeing as the error is on the Sentora side of the modules.

Hello

I have just tried manually creating the order and it seems that WHMCS is not generating a username because when I put a username in the Request is a success and the account is created.
Reply
#4
RE: WHMCS Error
(12-23-2015, 10:22 PM)instahost Wrote:
(12-23-2015, 10:14 PM)Rynoxx Wrote: Hi @[instahost],
Check your Sentora error logs and post them here, seeing as the error is on the Sentora side of the modules.

Hello

I have just tried manually creating the order and it seems that WHMCS is not generating a username because when I put a username in the Request is a success and the account is created.

Ok that's very strange, but the result of the API call shouldn't be a 500 response code because a parameter is missing. Anyhow, if you have the Sentora error logs at hand I'd love to take a look at them to see what's causing the problem.
Reply
#5
RE: WHMCS Error
Where can I find the logs?
Reply
#6
RE: WHMCS Error
@[instahost] sorry for the late response, the sentora error logs can be found in /var/sentora/logs/sentora-error.log
Reply
#7
RE: WHMCS Error
@rynoxx

I have copied the log over to a paste which can be found here: http://pastebin.com/2tw0Frjy
Reply
#8
RE: WHMCS Error
(12-31-2015, 03:27 AM)instahost Wrote: @rynoxx

I have copied the log over to a paste which can be found here: http://pastebin.com/2tw0Frjy

@[instahost], the paste has expired Sad

EDIT: Nevermind, it's back.
Reply
#9
RE: WHMCS Error
@[instahost] the only errors I find that could be related to the WHMCS module are the ones on line 522 - 529

Code:
[Sun Nov 22 08:46:15 2015] [error] [client 5.189.159.145] PHP Fatal error:  Call to a member function GetControllerRequest() on a non-object in /etc/sentora/panel/dryden/ctrl/auth.class.php on line 190 [Sun Nov 22 08:55:10 2015] [error] [client 92.3.88.45] File does not exist: /etc/sentora/panel/billing.instahosting.uk, referer: http://cp.instahosting.uk/?module=whmcs [Sun Nov 22 09:37:39 2015] [error] [client 5.189.159.145] PHP Fatal error:  Call to a member function GetControllerRequest() on a non-object in /etc/sentora/panel/dryden/ctrl/auth.class.php on line 190 [Sun Nov 22 09:40:41 2015] [error] [client 5.189.159.145] PHP Fatal error:  Call to a member function GetControllerRequest() on a non-object in /etc/sentora/panel/dryden/ctrl/auth.class.php on line 190 [Sun Nov 22 09:42:11 2015] [error] [client 5.189.159.145] PHP Fatal error:  Call to a member function GetControllerRequest() on a non-object in /etc/sentora/panel/dryden/ctrl/auth.class.php on line 190 [Sun Nov 22 09:49:14 2015] [error] [client 92.3.88.45] File does not exist: /etc/sentora/panel/favicon.ico, referer: http://5.189.159.145/api/whmcs [Sun Nov 22 09:50:05 2015] [error] [client 127.0.0.1] PHP Fatal error:  Call to a member function GetControllerRequest() on a non-object in /etc/sentora/panel/dryden/ctrl/auth.class.php on line 190 [Sun Nov 22 09:52:08 2015] [error] [client 127.0.0.1] PHP Fatal error:  Call to a member function GetControllerRequest() on a non-object in /etc/sentora/panel/dryden/ctrl/auth.class.php on line 190

I'll look into the errors regarding "PHP Fatal error: Call to a member function GetControllerRequest() on a non-object in /etc/sentora/panel/dryden/ctrl/auth.class.php on line 190" next week and see if I can find a solution (or if it's even related to the WHMCS module)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Repo update error hostingms 3 8 ,779 02-14-2024, 09:20 AM
Last Post: TGates
apt-get install mod_ssl ERROR CMs222 9 32 ,275 11-11-2022, 09:14 PM
Last Post: zustudios
Sentora debug and error files johnnyp 0 2 ,345 10-27-2022, 06:16 PM
Last Post: johnnyp

Forum Jump:


Users browsing this thread: 2 Guest(s)