I am currently working on a WHMCS registrar module using the Sample Rgistrar Module by WHMCS, I have done an API connect to my registry and have performed domain registration with my code, when I transfer the same code to WHMCS registrar module and activate the module then perform domain registration, I get errors:
<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"xml:lang="en"lang="en"><head><title>404 - Not Found</title></head><body><h1>404 - Not Found</h1></body></html>
The same API resource URL I have tested from my computer and it registered a domain, and have checked it's very much available, I also get this error on WHMCS: Registrar Error
Bad response received from API, I am sure my code works well without WHMCS and is able to do a number of registration successfully but once it's transfered to WHMCS registrar module , the 404 error will surface, I am very confused with this kind of issue and don't know what could be the problem, I have also allowed my server IP on the registry server so this couldn't be the issue.
my code is pasted below and the whole module is attached
Question
Nnamdi
Hi Guys ,
I am currently working on a WHMCS registrar module using the Sample Rgistrar Module by WHMCS, I have done an API connect to my registry and have performed domain registration with my code, when I transfer the same code to WHMCS registrar module and activate the module then perform domain registration, I get errors:
The same API resource URL I have tested from my computer and it registered a domain, and have checked it's very much available, I also get this error on WHMCS: Registrar Error
Bad response received from API, I am sure my code works well without WHMCS and is able to do a number of registration successfully but once it's transfered to WHMCS registrar module , the 404 error will surface, I am very confused with this kind of issue and don't know what could be the problem, I have also allowed my server IP on the registry server so this couldn't be the issue.
my code is pasted below and the whole module is attached
ApiClient.php:
namebright.php:
namebright.zip
Edited by WHMCS ChrisDPlease use code blocks when adding code samples into the community
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.