$xmlapi->createacct($accOptions) generates an error 500 when it succeed.

26medias

Registered
May 12, 2012
2
0
51
cPanel Access Level
Reseller Owner
Hi,

This is a weird issue:

$xmlapi->createacct($accOptions) will generate an internal server error only when it successfully creates the new account.
If $xmlapi->createacct($accOptions) returns an error (account already existing ...), then the page will not crash, and the function will return the error message, as it's supposed to do.

Is that a known issue?
Is there a way to fix it?

My error_log is empty, so I can't trace the root of the problem.

Thanks.
 

26medias

Registered
May 12, 2012
2
0
51
cPanel Access Level
Reseller Owner
Re: $xmlapi->createacct($accOptions) generates an error 500 when it succeed

I did, and there is no php issue.
It just crash with an internal server error. But once again, it does an internal server error only when it successfully create the account.
When it fails at creating the account, I get the WHM error message and everything, as intended.

For now I have a work-around, considering the account creation was successful if the call generates an internal server error.