metaregistrar / php-epp-client

Object-oriented PHP EPP Client
https://www.metaregistrar.com/docs/
MIT License
214 stars 160 forks source link

DOMException with "Invalid Character Error" #5

Closed long93160 closed 10 years ago

long93160 commented 10 years ago

Hi,

Please find below an exception when using infodomain.php.

Best regards, L93

root@vs-025:~/php-epp-client/trunk# php infodomain.php test.eu Retrieving info on test.eu PHP Fatal error: Uncaught exception 'DOMException' with message 'Invalid Character Error' in /root/php-epp-client/trunk/Protocols/EPP/eppRequests/eppRequest.php:142 Stack trace:

0 /root/php-epp-client/trunk/Protocols/EPP/eppRequests/eppRequest.php(142): DOMElement->setAttribute('xmlns:http://ww...', 'contact-ext')

1 /root/php-epp-client/trunk/Protocols/EPP/eppConnection.php(439): eppRequest->addNamespaces(Array)

2 /root/php-epp-client/trunk/base.php(68): EppConnection->writeandread(Object(eppLoginRequest))

3 /root/php-epp-client/trunk/infodomain.php(40): login(Object(euridEppConnection))

4 {main}

thrown in /root/php-epp-client/trunk/Protocols/EPP/eppRequests/eppRequest.php on line 142

long93160 commented 10 years ago

I will investigate this night if I have some time.

metaregistrar commented 10 years ago

Fixed it for you . Please pull the latest changes.

Vriendelijke groeten/kind regards,

Ewout de Graaf Metaregistrar

2014-02-19 14:34 GMT+01:00 long93160 notifications@github.com:

Hi,

Please find below an exception when using infodomain.php.

Best regards, L93

root@vs-025:~/php-epp-client/trunk# php infodomain.php test.eu Retrieving info on test.eu PHP Fatal error: Uncaught exception 'DOMException' with message 'Invalid Character Error' in /root/php-epp-client/trunk/Protocols/EPP/eppRequests/eppRequest.php:142 Stack trace:

0

/root/php-epp-client/trunk/Protocols/EPP/eppRequests/eppRequest.php(142): DOMElement->setAttribute('xmlns:http://ww...', 'contact-ext')

1 https://github.com/metaregistrar/php-epp-client/issues/1/root/php-epp-client/trunk/Protocols/EPP/eppConnection.php(439):

eppRequest->addNamespaces(Array)

2 https://github.com/metaregistrar/php-epp-client/issues/2/root/php-epp-client/trunk/base.php(68):

EppConnection->writeandread(Object(eppLoginRequest))

3 https://github.com/metaregistrar/php-epp-client/issues/3/root/php-epp-client/trunk/infodomain.php(40):

login(Object(euridEppConnection))

4 https://github.com/metaregistrar/php-epp-client/issues/4 {main}

thrown in /root/php-epp-client/trunk/Protocols/EPP/eppRequests/eppRequest.php on line 142

— Reply to this email directly or view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/5 .

long93160 commented 10 years ago

Thank you. It seems to be ok now.

rudybroersma commented 10 years ago

The same issue exists with DNSbe. In dnsbeEppConnection.php I replaced:

    parent::addExtension('http://www.dns.be/xml/epp/nsgroup-1.0','nsgroup');
    parent::addExtension('http://www.dns.be/xml/epp/registrar-1.0','registrar');
    parent::addExtension('http://www.dns.be/xml/epp/dnsbe-1.0','dnsbe');

with

    parent::addExtension('nsgroup', 'http://www.dns.be/xml/epp/nsgroup-1.0');
    parent::addExtension('registrar', 'http://www.dns.be/xml/epp/registrar-1.0');
    parent::addExtension('dnsbe', 'http://www.dns.be/xml/epp/dnsbe-1.0');

which resolved the error.

metaregistrar commented 10 years ago

Thanks, i will update the codebase.

Vriendelijke groeten/kind regards,

Ewout de Graaf Metaregistrar

2014-03-11 13:46 GMT+01:00 Rudy Broersma notifications@github.com:

The same issue exists with DNSbe. In dnsbeEppConnection.php I replaced:

parent::addExtension('http://www.dns.be/xml/epp/nsgroup-1.0','nsgroup');
parent::addExtension('http://www.dns.be/xml/epp/registrar-1.0','registrar');
parent::addExtension('http://www.dns.be/xml/epp/dnsbe-1.0','dnsbe');

with parent::addExtension('nsgroup', 'http://www.dns.be/xml/epp/nsgroup-1.0'); parent::addExtension('registrar', ' http://www.dns.be/xml/epp/registrar-1.0'); parent::addExtension('dnsbe', 'http://www.dns.be/xml/epp/dnsbe-1.0');

which resolved the error.

— Reply to this email directly or view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/5#issuecomment-37291148 .

metaregistrar commented 10 years ago

Codebase was updated