The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'cPanel Developers' started by 26medias, May 14, 2012.

  1. 26medias

    26medias Registered

    Joined:
    May 12, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. charsleysa

    charsleysa Active Member

    Joined:
    Jul 18, 2011
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Palmerston North, New Zealand
    cPanel Access Level:
    Root Administrator
    Re: $xmlapi->createacct($accOptions) generates an error 500 when it succeed

    Try turning on XMLAPI debugging mode and watching the output to see where you might have issues.
     
  3. 26medias

    26medias Registered

    Joined:
    May 12, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...
Similar Threads - $xmlapi >createacct($accOptions) generates
  1. Krystalogik
    Replies:
    2
    Views:
    798

Share This Page