This returns the name servers from the registrar module . However, on the client area nameservers page in the template the first nameserver, ns1 shifts to ns2 and so on. And ns1 value is simply 'true' and this is why it appears something like this
What is the fix for this? I turned on debug in the template I am getting the values like this -
Value
Array (6)
1 => Array (3)
num => 1
label => "Nameserver 1"
value => true
2 => Array (3)
num => 2
label => "Nameserver 2"
value => "ns40.sbc-dns.com"
3 => Array (3)
num => 3
label => "Nameserver 3"
value => "ns41.sbc-dns.com"
4 => Array (3)
num => 4
label => "Nameserver 4"
value => ""
5 => Array (3)
num => 5
label => "Nameserver 5"
value => ""
6 => Array (1)
value => ""
Question
deepaktsw
Hello,
I am facing a weird issue with my WHMC site.
I am using a custom Domain registrar module, it fetches the nameservers correctly using its API to be double sure I even hardcoded it like this
This returns the name servers from the registrar module . However, on the client area nameservers page in the template the first nameserver, ns1 shifts to ns2 and so on. And ns1 value is simply 'true' and this is why it appears something like this
What is the fix for this? I turned on debug in the template I am getting the values like this -
Value Array (6) 1 => Array (3) num => 1 label => "Nameserver 1" value => true 2 => Array (3) num => 2 label => "Nameserver 2" value => "ns40.sbc-dns.com" 3 => Array (3) num => 3 label => "Nameserver 3" value => "ns41.sbc-dns.com" 4 => Array (3) num => 4 label => "Nameserver 4" value => "" 5 => Array (3) num => 5 label => "Nameserver 5" value => "" 6 => Array (1) value => ""
please help. Thanks
Link to comment
Share on other sites
4 answers 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.