Domain registrar module error

4 posts / 0 new
Last post
#1 Wed, 10/22/2014 - 13:54
cutech

Domain registrar module error

Howdy,

I've set up a namecheap api account and am attempting to configure the domain registrar module.

When I attempt to save the account info I get this error:

Failed to save account : Invalid response XML : not well-formed (invalid token) at line 1, column 49, byte 49 at /usr/lib/perl5/XML/Parser.pm line 187

There is another question similar to this that has an http/s error referenced, but I'm not sure they are linked.

Thanks for the assist, and my apologies if I've missed a relevant post regarding this.

C.U.tech

Wed, 12/24/2014 - 17:43
rsecor

Did you ever figure this out? I happent to be seeing the same issue, though I have not done much diving into it as of yet.

Wed, 12/24/2014 - 19:22
rsecor

File:
./webmin/virtualmin-registrar/namecheap-type-lib.pl

Issue:
The length of $data is empty but the web server expects an integer of 0 or greater.

My fix:
# diff namecheap-type-lib.pl.dist namecheap-type-lib.pl
538a539,540
> $data_length = 0;
> $data_length = length($data) if ( length($data) != '' );
542c544
< &write_http_connection($h, "Content-length: ".length($data)."\r\n");
---
> &write_http_connection($h, "Content-length: ".$data_length."\r\n");

Wed, 12/24/2014 - 23:21
Joe
Joe's picture

I've opened a bug report about this, so Jamie can have a look.

The ticket is here: https://www.virtualmin.com/node/35660

--

Check out the forum guidelines!

Topic locked