Problem creating accounts - API
Hi,
I use API to create accounts with PHP. This week I noticed that the account creation status is different.
It is appearing before the following account status:
What is this? Before I created the account and did not appear this ... I use the port '2087'. I read the status of the account creation through the command "new SimpleXMLElement ()". But I have the following log:
thrown in /home/useracctlocal/public_html/createacct.php on line 338
Please can anyone help me? Thank you
Password is 'useracct' has been changed.
Id: TQ: TaskQueue: 0000
----- BEGIN RSA PRIVATE KEY -----
SDFJLJljflJLJlhjHhLHljhlJHLgJHGjughjjlkJLKjlkJKLjLKJKLjllkjlJlkjLKJLLjlkJKLjlJLJHGJgJGjgJGjgJgjGJgjGJgJGJHGJFDFDSDFJLJljflJLJlhjHhLHljhlJHLgJHGjughjjlkJLKjlkJKLjLKJKLjllkjlJlkjLKJLLjlkJKLjlJLJHGJgJGjgJGjgJgjGJgjGJgJGJHGJFDFDSDFJLJljflJLJlhjHhLHljhlJHLgJHGjughjjlkJLKjlkJKLjLKJKLjllkjlJlkjLKJLLjlkJKLjlJLJHGJgJGjgJGjgJgjGJgjGJgJGJHGJFDFDSDFJLJljflJLJlhjHhLHljhlJHLgJHGjughjjlkJLKjlkJKLjLKJKLjllkjlJlkjLKJLLjlkJKLjlJLJHGJgJGjgJGjgJgjGJgjGJgJGJHGJFDFDSDFJLJljflJLJlhjHhLHljhlJHLgJHGjughjjlkJLKjlkJKLjLKJKLjllkjlJlkjLKJLLjlkJKLjlJLJHGJgJGjgJGjgJgjGJgjGJgJGJHGJFDFD
----- END RSA PRIVATE KEY -----
What is this? Before I created the account and did not appear this ... I use the port '2087'. I read the status of the account creation through the command "new SimpleXMLElement ()". But I have the following log:
PHP Warning: SimpleXMLElement :: __ construct (): Entity: line 1: parser error: Start tag expected, < not found in /home/useracctlocal/public_html/createacct.php on line 338
PHP Warning: SimpleXMLElement :: __ construct (): Password is "useracct" has been changed. in /home/useracctlocal/public_html/createacct.php on line 338
PHP Warning: SimpleXMLElement :: __ construct (): ^ in /home/useracctlocal/public_html/createacct.php on line 338
PHP Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed XML' in /home/useracctlocal/public_html/createacct.php:338
Stack trace:
__construct('Password for \xE2\x80...') ">
# 0 /home/useracctlocal/public_html/createacct.php(338): SimpleXMLElement -> __ construct ('Password for \ XE2 \ x80 ...')
# 1 /home/useracctlocal/public_html/createacct.php(170): include ('/ home / useracctlocal ...')
# 2 {main}
thrown in /home/useracctlocal/public_html/createacct.php on line 338
PHP Code:
$acct = array( 'username' => $cp_user, 'password' => $cp_passw, 'domain' => $domain, 'contactemail' => $email, 'plan' => $plan, 'mxcheck'=>"local");
$account = $xmlapi->createacct($acct);
$xml2 = new SimpleXMLElement($account); // line 338
Please can anyone help me? Thank you
-
Hello David, thank you for answering me. Before opening the ticket identified a change in my WHM. In Home "Server Configuration" Basic cPanel & WHM Setup is showing the following: - Removed - (please attach images to your posts) I think maybe that might be the cause of the log and I'm having as never before. Can you help me with that? I could not understand well how to proceed with the API TOKEN. 0
Please sign in to leave a comment.
Comments
3 comments