Jump to content

control panel provisioning problem


MaRiOsGR

Recommended Posts

Hello people,

 

I have the following problem, when I make an order with the client details in Greek characters , and then try to create the package in Plesk

I always get the error:

 

Module Command Error

1014 - Parser error: Cannot parse the XML from the source specified

 

I've tried that with 3 different clients and they all get the same error.

I did test it with latin characters and its working fine, so I guess the problem is the greek characters.

 

Plesk commands and plesk work file with greek characters (for example [root@zeus marav]# /usr/local/psa/bin/client --create testuser123 -name "τεστ τεστερ" -passwd sample -country GR -notify false

SUCCESS: Creation of client 'testuser123' complete.)

 

whmcs support staff say they do not have any solution at the current time.

 

is there any one that has done something like this?

or any developer who can fix this problem ?

Link to comment
Share on other sites

Hmmm, maybe the charset in the template you are using?

 

I know it has it's own variable {$charset}

 

<meta http-equiv="content-type" content="text/html; charset={$charset}" />

 

Maybe try setting it manually to a character set that supports greek? I believe charset=iso-8859-7 is for the greek alphabet. Try setting that manually, although I am unsure if that will affect anything else.

 

I am suggesting this because you stated that Plesk was accepting it, so it must be a problem with it coming in from WHMCS, hence the charset could be a possibility.

 

Hope it helps!

Link to comment
Share on other sites

the support said that it accepts utf-8 in the xml parser, and the charset of the page is charset=utf-8 (if i do an "view source").

 

they also gave me this:

 

This is what the plesk module from WHMCS sends. As you can see encoding is specified as UTF-8 and the data passed into it is exactly what the customer enters:

 

<?xml version="1.0" encoding="UTF-8"?>

<packet version="1.6.0.0">

<client>

<add>

<gen_info>

<pname>xxxxxxxxxxxxx</pname>

<login>xxxxxxxx</login>

<passwd>xxxxxx</passwd>

<status>0</status>

<phone>xxxxxxxx</phone>

<fax/>

<email>xxxx@xxx.xx</email>

<address>xxxxx</address>

<city>xxxxxx</city>

<state>xxxxx</state>

<pcode>xxxx</pcode>

<country>xx</country>'

</gen_info>

<template-name>xxxxxx</template-name>

</add>

</client>

</packet>

 

Regards,

 

Matt

 

but I dont know what would that help.

Is I have noticed they use regular expressions for the parser, and it only accepts A-Z and 0-9 ...

Link to comment
Share on other sites

I wasn't even thinking about the XML!!

 

UTF-8 would support the greek alphabet only it showed up in the xml as 945; or α (lower case Alpha, without the space between # and 9). I am wondering if this is causing some problems with the validity of the XML file.

 

Can you take the provided XML example and fill in test information using Greek and attach it here. I will check it over to make sure it comes out valid. I am almost certain that this is the problem.

 

I still think that iso-8859-1 needs to be used in this case for the xml because it is more specific towards the Greek alphabet, where utf-8 is more universal.

Link to comment
Share on other sites

Kevin thank you for your interest.

 

here is an example with greek characters

 

<?xml version="1.0" encoding="UTF-8"?>

<packet version="1.6.0.0">

<client>

<add>

<gen_info>

<pname>Τεστάκης Τεστόπουλος</pname>

<login>user123</login>

<passwd>test123</passwd>

<status>0</status>

<phone>00302810325001</phone>

<fax/>

<email>mytest@myemail.gr</email>

<address>Δράμας 18</address>

<city>Ηράκλειο</city>

<state>Κρήτης</state>

<pcode>71307</pcode>

<country>GR</country>'

</gen_info>

<template-name>xxxxxx</template-name>

</add>

</client>

</packet>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated