Unable to update Plesk license key - An invalid XML character was found in the element content of the document

Created:

2017-01-10 23:00:19 UTC

Modified:

2017-08-08 13:41:04 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to update Plesk license key - An invalid XML character was found in the element content of the document

Applicable to:

  • Plesk for Linux

Symptoms

When trying to update Plesk license key by any means, the following error appears:

Error: Failed to parse XML-RPC request: An invalid XML character (Unicode: 0x3) was found in the element content of the document.

Cause

Non-printable character in admin user profile

Resolution

- Login to Plesk as 'admin'

- Go to Tools & Settings > Profile and make sure that there is no non-printable characters are displayed.

Additionally, you can use the following to locate the place having invalid character. In the example below 'City' contains invalid character `Unicode: 0x3` ([\x03]) and replaced with `CORRUPTED`:

# plesk bin admin -xi | sed -e 's/[\x03]/CORRUPTED/g'

<?xml version="1.0" encoding="UTF-8"?>
<admin>
<locale>en-US</locale>
<multiple-sessions>true</multiple-sessions>
<skin>Default</skin>
<cname>CompanyName</cname>
<pname>Administrator</pname>
<phone>549+849+8</phone>
<fax/>
<email>email@example.com</email>
<address>AddressLine</address>
<city>CityNameCORRUPTED</city>
<state>State-Province</state>
<zip>10001</zip>
<country>US</country>
</admin>

Have more questions? Submit a request
Please sign in to leave a comment.