Closed GVeidenberg closed 6 years ago
I have tried to revamp the way that extensions are added, also checked the ficora extension so that the additional function in this class are mapped properly.
Can you please try again with the latest version of php-epp-client?
Just downloaded. still get error with createcontact.php
No valid response class found for request class Metaregistrar\EPP\ficoraEppCreateContactRequest
If I use the original createcontact.php from Examples. The one you have in you script. I get errors:
PHP Fatal error: Uncaught Error: Call to undefined function Metaregistrar\EPP\mb_check_encoding() in /var/www/html/php-epp-client-master/Protocols/EPP/eppRequests/eppRequest.php:177 Stack trace:
The function mb_check_encoding is in PHP since version 4.4.3, strange that you get this error.
You could change the lines 67-71 in eppCreateContactRequest.php yourself and set postal type to INT or LOC as the registry requires.
in Protocols/EPP/eppExtensions/ficora/includes.php you find this line: $this->addCommandResponse('Metaregistrar\EPP\ficoraEppCreateContactRequest', 'Metaregistrar\EPP\eppCreateContactResponse');
This connects the function 'ficoraEppCreateContactRequest' to the response 'eppCreateContactResponse'
So unless there is a typo somewhere, this should work.
Hello
I have been struggling with this Ficora contact create and I am now in this point, where I get error
No valid response class found for request class Metaregistrar\EPP\ficoraEppCreateContactRequest
My createcontact.php looks like this :
`<?php require('/var/www/html/EPPtest/autoloader.php');
use Metaregistrar\EPP\eppConnection; use Metaregistrar\EPP\eppContactPostalInfo; use Metaregistrar\EPP\eppContact; use Metaregistrar\EPP\eppCreateContactRequest; use Metaregistrar\EPP\eppException; use Metaregistrar\EPP\eppCheckDomainRequest; use Metaregistrar\EPP\eppCheckDomainResponse; use Metaregistrar\EPP\eppDomain; use Metaregistrar\EPP\eppHost; use Metaregistrar\EPP\eppContactHandle; use Metaregistrar\EPP\eppCheckContactRequest; use Metaregistrar\EPP\eppCheckHostRequest; use Metaregistrar\EPP\ficoraEppCreateContactRequest; use Metaregistrar\EPP\eppCreateDomainRequest; use Metaregistrar\EPP\eppCreateHostRequest; use Metaregistrar\EPP\ficoraEppCheckBalanceRequest; use Metaregistrar\EPP\ficoraEppCheckBalanceResponse; use Metaregistrar\EPP\eppPollRequest; use Metaregistrar\EPP\eppPollResponse;
/**
try { // Please enter your own settings file here under before using this example if ($conn = eppConnection::create('settings.ini')) { // Connect to the EPP server if ($conn->login()) { createcontact($conn, 'info@test.com', '+31.201234567', 'Domain Administration', 'Metaregistrar', 'Address 1', 'Zipcode', 'City', 'NL'); $conn->logout(); } } } catch (eppException $e) { echo "ERROR: " . $e->getMessage() . "\n\n"; }
/**
Ficora eppConnection.php looks like this : `<?php namespace Metaregistrar\EPP;
class ficoraEppConnection extends eppConnection {
}`
Can anyone help`? Connection is working, etc.