• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

API - Parser error: Request is invalid

W

WallyB

Guest
Hi;

I'm using the API to try to create an email account for a domain on the Plesk 8.4 server; however, after following the information in the Manual, I get errcode 1014 and the above error text.

I'm following the mail create formatting precisely as described from page 669 of the manual; however it only seems to balk at certain elements:

Code:
  $redirect = $xmldoc->createElement('redirect');
  $mailname->appendChild($redirect);
  $redirect->appendChild($xmldoc->createElement('enabled', 'true'));
  $redirect->appendChild($xmldoc->createElement('address', $redirect_address));

Adding any of this to the DomDocument, although it shows a perfect XML formatted base, returns the error.

I'm using version 1.5.2.0.

Are there certain elements that are still unable to be used within 8.4 and I need to upgrade in order to access these functions?
 
A follow-up... it seems that the redirect node (as well as others) only work in a mail->update->add structure and not a mail->create... is this something that's a known problem with the API?
 
Back
Top