Skip to main content

Account Summary Error

Comments

4 comments

  • cPanelMichael
    Re: Account Sumary Error Hello :) Could you let us know the full steps we can take to reproduce the issue? What error message do you receive? Thank you.
    0
  • risklife
    Re: Account Sumary Error Well, i received this error when try get account summary for obtain Total Disk in a account. The error is saved in error_log (apache) This is the code: [PHP]include("xmlapi.php"); $ip = "localhost"; # The access has can be found on your server under WHM's "Setup remote access hash" section or at /root/.accesshash $root_hash = 'HASH'; $ruta_user = $_SERVER['DOCUMENT_ROOT">; $pregPattern = "/\/home\/(.*?)\/public_html/s"; preg_match($pregPattern,$ruta_user,$Match2); $xmlapi = new xmlapi($ip); $xmlapi->hash_auth("root",$root_hash); $xmlapi->return_xml(1); $xmlapi->set_debug(1); $username = $Match2[1]; $xmlapi->accountsummary($username); $xmlstr = $xmlapi->accountsummary($username); $sPattern = "/(.*?)<\/disklimit>/s"; preg_match($sPattern,$xmlstr,$aMatch);[/PHP]
    0
  • risklife
    The problem was fixed, change $xmlapi->set_debug(1); to $xmlapi->set_debug(0);
    0
  • cPanelPeter cPanel Staff
    Hello, Thank you for updating this thread with your solution. I'm glad you were able to solve the issue.
    0

Please sign in to leave a comment.