Jump to content
  • 0

Domain Always Not Available To Register


1983ltd

Question

I think I asked you guys about this in early V3....

 

Still having the same problems.

 

Using Namescheap API NOT in sandbox mode.

 

See attached...

 

No matter what domain is attempted to be registered they are ALWAYS returned as not available for registration. No logs are kept after it does a whois so not sure if its using the API to look up the domain availability or not??

 

Also clicking on 'Check availability' hangs the browser for around 60-80 seconds or more before the Not Available page displays!!!!!

post-2347-0-71719400-1380841673_thumb.pn

post-2347-0-70919500-1380841905_thumb.pn

Link to comment
Share on other sites

Recommended Posts

  • 0

I think I asked you guys about this in early V3....

 

Still having the same problems.

 

Using Namescheap API NOT in sandbox mode.

 

See attached...

 

No matter what domain is attempted to be registered they are ALWAYS returned as not available for registration. No logs are kept after it does a whois so not sure if its using the API to look up the domain availability or not??

 

Also clicking on 'Check availability' hangs the browser for around 60-80 seconds or more before the Not Available page displays!!!!!

 

How do you get a domain reseller with Namecheap so I can try their module mate?

Link to comment
Share on other sites

  • 0

How do you get a domain reseller with Namecheap so I can try their module mate?

Sign up for one? Namescheap.com The Sandbox is free... But this problem isnt to do with Namescheap I dont think as its not using the module to check if the domain is available... I think...

Link to comment
Share on other sites

  • 0

Sign up for one? Namescheap.com The Sandbox is free... But this problem isnt to do with Namescheap I dont think as its not using the module to check if the domain is available... I think...

 

I think it is the module, as I use Logicboxes module myself and I get that domain is available.

post-38-0-59560900-1380850610_thumb.png

Link to comment
Share on other sites

  • 0

Hit this bug today.

Blesta v3.0.4

namecheap module v1.0.6

 

If I click transfer the domain is available.

 

If I click check availability the domain is always unavailable.

 

Checking on the namecheap site the domain is available.

 

Checked the namecheap module folder, in v3.0.4 of blesta the .php file says that the namecheap module is 1.0.6. Reuploaded the folder just in case, same thing happens.

 

Did the bug fix change any files outside of the module? Need to upload any other file?

 

EDIT: diff between the two files:

<     private static $version = "1.0.5";
---
>     private static $version = "1.0.6";
1174c1174
<         return $response->DomainCheckResult->{"@attributes"}->Available == "true";
---
>         return strtolower($response->DomainCheckResult->{"@attributes"}->Available) == "true";

Link to comment
Share on other sites

  • 0

Can you attempt to debug this on your system?

 

Change /components/modules/namecheap/namecheap.php (line 1173):

$response = $result->response();
return strtolower($response->DomainCheckResult->{"@attributes"}->Available) == "true";

to:

$response = $result->response();
var_dump($response);
die;
return strtolower($response->DomainCheckResult->{"@attributes"}->Available) == "true";

 

Then test it again, and let us know the output. And of course, remove these code changes afterward if you're in a live environment.

Link to comment
Share on other sites

  • 0

Can you attempt to debug this on your system?

 

Change /components/modules/namecheap/namecheap.php (line 1173):

$response = $result->response();
return strtolower($response->DomainCheckResult->{"@attributes"}->Available) == "true";

to:

$response = $result->response();
var_dump($response);
die;
return strtolower($response->DomainCheckResult->{"@attributes"}->Available) == "true";

 

Then test it again, and let us know the output. And of course, remove these code changes afterward if you're in a live environment.

 

 

Absolutely no change. Module log is empty as well.

Link to comment
Share on other sites

  • 0

Absolutely no change. Module log is empty as well.

 

Then it sounds like an OK response was not received from the API, or was not handled.

 

You can update /components/modules/namecheap/apis/namecheap_api.php (line 99):

$response = curl_exec($ch);

 

to:

$response = curl_exec($ch);
if ($response === false)
	echo "ERROR: " . curl_error($ch);

And try checking the availability of a domain again. If you receive an error regarding a hostname unable to resolve, this is likely a DNS configuration issue with your server related to cURL requests.

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
Answer this question...

×   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.

Loading...
×
×
  • Create New...