oderland-david Posted January 26, 2020 Share Posted January 26, 2020 (edited) Hi! whmcs version: 7.8 Im in the process of refactoring one of our registry modules and Im using the "new" _getDomainInformation() function instead of getNameservers() and getRegistrarLock() etc However - on the Admin area of WHMCS, I can't get the nameservers to show up. They do show up in the client area. dd() of the return (domain object) in the admin area shows the domain object corretly with nameservers set. Is this a known bug in WHMCS 7.8? I've submitted a bug report. Edited January 26, 2020 by oderland-david 0 Quote Link to comment Share on other sites More sharing options...
oderland-david Posted January 26, 2020 Author Share Posted January 26, 2020 I think I know what's wrong now. Docs said it expects an array for nameservers however it seems it needs an associative array with key names ns1-5. Will try in the morning and report back here. 0 Quote Link to comment Share on other sites More sharing options...
oderland-david Posted January 27, 2020 Author Share Posted January 27, 2020 Case closed. Had to return associative array. example code $nameserver = array(); for ($i=0;$i<5;$i++) { $nameserver['ns'.($i+1)] = strtolower($data['nameserver'][$i]); } try { $dom = new Domain; $dom->setDomain($domain) ->setNameservers($nameserver) ... ... ... 0 Quote Link to comment Share on other sites More sharing options...
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.