metaregistrar / php-epp-client

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

PHP Fatal error: Uncaught exception 'DOMException' with message 'Invalid Character Error' in Protocols/EPP/eppRequests/eppRequest.php:142 #3

Closed basd82 closed 10 years ago

basd82 commented 10 years ago

I adjusted checkdomain to use sidn but i get this error can't find what the problem is.

Can you help?

/Registries/SIDN# php ../../checkdomain.php hcc.nl
Checking 1 domain names
PHP Fatal error:  Uncaught exception 'DOMException' with message 'Invalid Character Error' in php-epp-client/Protocols/EPP/eppRequests/eppRequest.php:142
Stack trace:
#0 php-epp-client/Protocols/EPP/eppRequests/eppRequest.php(142): DOMElement->setAttribute('xmlns:http://rx...', 'sidn-epp-ext')
#1 php-epp-client/Protocols/EPP/eppConnection.php(439): eppRequest->addNamespaces(Array)
#2 php-epp-client/base.php(68): EppConnection->writeandread(Object(eppLoginRequest))
#3 php-epp-client/checkdomain.php(42): login(Object(sidnEppConnection))
#4 {main}
  thrown in php-epp-client/Protocols/EPP/eppRequests/eppRequest.php on line 142
metaregistrar commented 10 years ago

Hi Bas,

Please check if you are using the latest version. In previous versions i have made the mistake to switch variables in the AddExtension() command. If you get the most recent version from GitHub, that should solve your problem. If you want to keep working with your current version, then please switch variables in the AddExtension() command in sidnEppConnection.php.

The correcte order of parameters is: parent::addExtension('sidn-epp-ext',' http://rxsd.domain-registry.nl/sidn-ext-epp-1.0');

Vriendelijke groeten/kind regards,

Ewout de Graaf Metaregistrar

2014-02-11 11:36 GMT+01:00 Bas van den DIkkenberg notifications@github.com :

I adjusted checkdomain to use sidn but i

''' root@www-hobby-nl-lb1:/disk/site/ hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/Registries/SIDN#php ../../checkdomain.php hcc.nl Checking 1 domain names PHP Fatal error: Uncaught exception 'DOMException' with message 'Invalid Character Error' in /disk/site/ hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/Protocols/EPP/eppRequests/eppRequest.php:142 Stack trace:

0 /disk/site/

hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/Protocols/EPP/eppRequests/eppRequest.php(142): DOMElement->setAttribute('xmlns:http://rx...', 'sidn-epp-ext')

1 https://github.com/metaregistrar/php-epp-client/issues/1 /disk/site/

hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/Protocols/EPP/eppConnection.php(439): eppRequest->addNamespaces(Array)

2 https://github.com/metaregistrar/php-epp-client/issues/2 /disk/site/

hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/base.php(68): EppConnection->writeandread(Object(eppLoginRequest))

3 https://github.com/metaregistrar/php-epp-client/issues/3 /disk/site/

hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/checkdomain.php(42): login(Object(sidnEppConnection))

4 {main}

thrown in /disk/site/ hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/Protocols/EPP/eppRequests/eppRequest.phpon line 142 '''

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

basd82 commented 10 years ago

Ik had git clone gedaan van master branch.

Voor de zekerheid nog een keer gedaan, alles verwijderd.

Daarna alleen mijn username en wachtwoord van test omgeving van sidn in gevoerd. Zou het % in mijn wachtwoord het probleem kunnen zijn ? Zie bijlage heb username en ww vervangen door ****\ alleen speciale caracter laten staan .

# php checkdomain.php hcc.nl
Checking 1 domain names
PHP Fatal error:  Uncaught exception 'DOMException' with message 'Invalid Character Error' in php-epp-client/Protocols/EPP/eppRequests/eppRequest.php:142
Stack trace:
#0 php-epp-client/Protocols/EPP/eppRequests/eppRequest.php(142): DOMElement->setAttribute('xmlns:http://rx...', 'sidn-epp-ext')
#1 php-epp-client/Protocols/EPP/eppConnection.php(439): eppRequest->addNamespaces(Array)
#2 php-epp-client/base.php(68): EppConnection->writeandread(Object(eppLoginRequest))
#3 php-epp-client/checkdomain.php(42): login(Object(sidnEppConnection))
#4 {main}
  thrown in php-epp-client/Protocols/EPP/eppRequests/eppRequest.php on line 142

Van: Ewout de Graaf [mailto:notifications@github.com] Verzonden: dinsdag 11 februari 2014 12:02 Aan: metaregistrar/php-epp-client CC: Bas van den Dikkenberg Onderwerp: Re: [php-epp-client] PHP Fatal error: Uncaught exception 'DOMException' with message 'Invalid Character Error' in Protocols/EPP/eppRequests/eppRequest.php:142 (#3)

Hallo Bas,

Heb je de laatste versie? In een vorige versie zat een probleem dat ik bij AddExtension() de variabelen verkeerd om had gedaan. Als je de meest recente versie van Github haalt moet dat probleem voorbij zijn. Wat je eventueel ook kunt doen is de parameters omdraaien in het AddExtension commando in sidnEppConnection.php

De correcte volgorde is: parent::addExtension('sidn-epp-ext',' http://rxsd.domain-registry.nl/sidn-ext-epp-1.0');

Vriendelijke groeten/kind regards,

Ewout de Graaf Metaregistrar

2014-02-11 11:36 GMT+01:00 Bas van den DIkkenberg notifications@github.com<mailto:notifications@github.com> :

I adjusted checkdomain to use sidn but i

''' root@www-hobby-nl-lb1:/disk/site/ hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/Registries/SIDN#php ../../checkdomain.php hcc.nl Checking 1 domain names PHP Fatal error: Uncaught exception 'DOMException' with message 'Invalid Character Error' in /disk/site/ hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/Protocols/EPP/eppRequests/eppRequest.php:142 Stack trace:

0 /disk/site/

hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/Protocols/EPP/eppRequests/eppRequest.php(142): DOMElement->setAttribute('xmlns:http://rx...', 'sidn-epp-ext')

1 https://github.com/metaregistrar/php-epp-client/issues/1 /disk/site/

hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/Protocols/EPP/eppConnection.php(439): eppRequest->addNamespaces(Array)

2 https://github.com/metaregistrar/php-epp-client/issues/2 /disk/site/

hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/base.php(68): EppConnection->writeandread(Object(eppLoginRequest))

3 https://github.com/metaregistrar/php-epp-client/issues/3 /disk/site/

hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/checkdomain.php(42): login(Object(sidnEppConnection))

4 {main}

thrown in /disk/site/ hcc.nl/beheer.hcc.nl/www/apps/hobbynet/sidn/php-epp-client/Protocols/EPP/eppRequests/eppRequest.phpon line 142 '''

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

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

basd82 commented 10 years ago

Bestand was niet toegevoegd dus hier nog keer

<?php
#
# Load the SIDN specific additions
#
include_once(dirname(__FILE__).'/sidnEppCreateContactRequest.php');
include_once(dirname(__FILE__).'/sidnEppPollRequest.php');
include_once(dirname(__FILE__).'/sidnEppPollResponse.php');
include_once(dirname(__FILE__).'/sidnEppCheckResponse.php');
include_once(dirname(__FILE__).'/sidnEppInfoDomainResponse.php');
include_once(dirname(__FILE__).'/sidnEppRenewRequest.php');

class sidnEppConnection extends eppConnection
{

    public function __construct()
    {
        parent::__construct(false);
        parent::setHostname('ssl://testdrs.domain-registry.nl');
        parent::setPort(700);
        parent::setUsername('300***');
        parent::setPassword('*****%******');
        parent::setTimeout(5);
        parent::setLanguage('en');
        parent::setVersion('1.0');
        parent::addExtension('sidn-epp-ext','http://rxsd.domain-registry.nl/sidn-ext-epp-1.0');
        parent::enableDnssec();
        parent::addCommandResponse('sidnEppPollRequest', 'sidnEppPollResponse');
        parent::addCommandResponse('sidnEppCreateContactRequest', 'eppCreateResponse');
        parent::addCommandResponse('eppCheckRequest', 'sidnEppCheckResponse');
        parent::addCommandResponse('eppInfoDomainRequest', 'sidnEppInfoDomainResponse');
        parent::addCommandResponse('sidnEppRenewRequest', 'eppRenewResponse');
    }

}
basd82 commented 10 years ago

Heel apart als omgekeerd doe van wat jij zeg werkt het

        parent::addExtension('http://rxsd.domain-registry.nl/sidn-ext-epp-1.0', 'sidn-epp-ext');
metaregistrar commented 10 years ago

Hallo Bas,

Ik heb een cleane checkout gedaan, en inderdaad hetzelfde probleem. Ik los het op en commit de code naar Github.

Vriendelijke groeten/kind regards,

Ewout de Graaf Metaregistrar

2014-02-11 12:39 GMT+01:00 Bas van den DIkkenberg notifications@github.com :

Heel apart als omgekeerd doe van wat jij zeg werkt het

    parent::addExtension('http://rxsd.domain-registry.nl/sidn-ext-epp-1.0', 'sidn-epp-ext');

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

metaregistrar commented 10 years ago

Hallo Bas,

Probleem is opgelost in de laatste commit.

Vriendelijke groeten/kind regards,

Ewout de Graaf Metaregistrar

2014-02-11 12:39 GMT+01:00 Bas van den DIkkenberg notifications@github.com :

Heel apart als omgekeerd doe van wat jij zeg werkt het

    parent::addExtension('http://rxsd.domain-registry.nl/sidn-ext-epp-1.0', 'sidn-epp-ext');

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

metaregistrar commented 10 years ago

Problem solved in the latest commit