Account Summary Error
Thanks, now i have other problem, i use my XMLAPI for get account summary, but i have a error, saved in the error_log.
THIS IS SAVED WHEN UPDATE THE PAGE.
[20-Dec-2014 05:03:32 Europe/Moscow] RESPONSE:
X
unlimited
16M
XX
XX
XX
0
0
50
100
unlimited
unlimited
unlimited
unlimited
unlimited
unlimited
unlimited
5
root
home
ilimitado
/usr/local/cpanel/bin/noshell
14 May 10 04:39
0
not suspended
x3
1399682389
cloneswp
1
Ok
THIS IS SAVED WHEN UPDATE THE PAGE.
-
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 -
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 -
The problem was fixed, change $xmlapi->set_debug(1); to $xmlapi->set_debug(0); 0 -
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.
Comments
4 comments