dnhgeeks Posted May 28, 2016 Share Posted May 28, 2016 Hello, I am using WHMCS-bridge plugin on my website for integrating WHMCS. The domainchecker is not working with my website. The url is When I submit a domain name it is giving following error. (Replaced cpanel username with [username]) Notice: Undefined index: main in /home/[username]/public_html/wp-content/plugins/whmcs-bridge/bridge.init.php on line 561 Please tell me, what is the problem with whmcs-bridge and how can I update it. Thank you 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 28, 2016 Share Posted May 28, 2016 assuming you have the latest version of Bridge installed, or at least one that's compatible with your version of WHMCS, are it's settings correct? also, on a side note, I suspect that you have far too many Alternate TLDs selected in your whois lookup setup - if you do a search for any domain in the cart, it time-outs with no results... that might be an issue with your domainchecker too. 0 Quote Link to comment Share on other sites More sharing options...
dnhgeeks Posted May 28, 2016 Author Share Posted May 28, 2016 whmcs and whmcs-bridge both are of latest version. it was working earlier smoothly so the settings must be correct. I have added all TLD's may be this have caused this problem. whmcs must be searching for all tlds on user input. can whmcs work with all tld's ? should I remove all TLD's from WHMCS and keep only few tld's ? where can I limit the whois search for some tld's ? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 28, 2016 Share Posted May 28, 2016 (edited) whmcs and whmcs-bridge both are of latest version. it was working earlier smoothly so the settings must be correct. I have added all TLD's may be this have caused this problem. whmcs must be searching for all tlds on user input. or trying to... imagine, for arguments sake, that a whois lookup takes 1 second per TLD, and you've got 400 TLDs in your list to lookup... that's 400 secs (or nearly 7 minutes) to do a complete search - no-one is going to wait around for that... probably not even the server! can whmcs work with all tld's ? yes - but you can't (or shouldn't) set it to search whois for them all at once... worst case is you'll start hitting whois lookup limits for certain TLDs and then you might start getting false results for them or have your access blocked to those whois servers... if you need/want to search for a lot of TLDs at once, then you can't really use whois, you'd need a faster API solution - but they'll be registrar-dependant.. such as Hexonet or the LogicBoxes addons. should I remove all TLD's from WHMCS and keep only few tld's ? you'll have to - the usual default range is 10 - 20... if your server can cope, perhaps a few more; if it can't, perhaps a few less. if I went to your site wanting to register 'brian.com' and if it's unavailable, then it's highly unlikely that i'm going to want to register 'brian.aaa.pro' - so why should the server search for it ? where can I limit the whois search for some tld's ? http://docs.whmcs.com/Domains_Tab#Domain_Lookup Standard WHOIS - this checks domain availability using WHOIS servers directly, and is the default Domain Lookup provider used by WHMCS installations. When using this method, in addition to the users chosen domain name and TLD, the status of the same domain with other TLD extensions can be provided at the same time (formerly known as Bulk Check TLDS). setup -> general settings -> domains -> domain lookup -> standard whois (configure) deselect them all apart from the popular ones... (.com, net, org, any cc for your country etc). also, and very importantly, go through your whoisservers.php file and ensure that there is an entry for each of the TLDs you're offering. http://docs.whmcs.com/Domains_Configuration#Adding_Additional_WHOIS_Services I think you might have assumed that just by adding the TLD to domain pricing, that WHMCS can search for it - wrong! there will be MANY / MOST of them missing or not working, e.g I bet you don't have even have an entry in there for aaa.pro - the first TLD in your list! i'm not even sure if you can register .aaa.pro domains anymore (or if anyone ever did originally) now that .pro has been opened up. you may have a busy weekend ahead of you! Edited May 28, 2016 by brian! 0 Quote Link to comment Share on other sites More sharing options...
dnhgeeks Posted May 28, 2016 Author Share Posted May 28, 2016 (edited) absolutely true, no one will wait for 7 minutes to check for a domain name. I have removed whmcs-bridge. The integration will not work in such a situation. I think, the server dies when working to get domain name availability as all three (wordpress, whmcs-bridge, whmcs) are working. It is working in whmcs alone. It is midnight and I am drooling through whmcs. 1 question, where can I update the setting to make .com default tld, when a user will submit domain name without selecting any tlds ? yes - but you can't (or shouldn't) set it to search whois for them all at once... worst case is you'll start hitting whois lookup limits for certain TLDs and then you might start getting false results for them or have your access blocked to those whois servers... if you need/want to search for a lot of TLDs at once, then you can't really use whois, you'd need a faster API solution - but they'll be registrar-dependant.. such as Hexonet or the LogicBoxes addons. I agree. There is no reason to search for all tlds in every search. you'll have to - the usual default range is 10 - 20... if your server can cope, perhaps a few more; if it can't, perhaps a few less. if I went to your site wanting to register 'brian.com' and if it's unavailable, then it's highly unlikely that i'm going to want to register 'brian.aaa.pro' - so why should the server search for it ? yes, I have used 10 for default search. I think you might have assumed that just by adding the TLD to domain pricing, that WHMCS can search for it - wrong! there will be MANY / MOST of them missing or not working, e.g I bet you don't have even have an entry in there for aaa.pro - the first TLD in your list! i'm not even sure if you can register .aaa.pro domains anymore (or if anyone ever did originally) now that .pro has been opened up. you may have a busy weekend ahead of you! yes, this weekend will be getting busier. I have not thought about whois lookup servers. I will check it in weekend. i'm not even sure if you can register .aaa.pro domains anymore (or if anyone ever did originally) now that .pro has been opened up. hmmm... more work checking each tld for its existence ? can you add this feature in whmcs ? you can make a function to ping the whois server and tell if the server is working. based on each ping result, only the active tlds will be available to users. what do you think ? Edited May 29, 2016 by dnhgeeks 0 Quote Link to comment Share on other sites More sharing options...
dnhgeeks Posted May 29, 2016 Author Share Posted May 29, 2016 I have found the solution. I have removed the plugin multisite enhancements which is causing problems. Thank you for your help. Now it is working. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 29, 2016 Share Posted May 29, 2016 1 question, where can I update the setting to make .com default tld, when a user will submit domain name without selecting any tlds ? move it to the top of your list in the Domain Pricing TLD sort order. hmmm... more work checking each tld for its existence ?can you add this feature in whmcs ? don't look at me - I don't work for them! but a general piece of advice - when it comes to TLDs, don't rely on WHMCS to do anything of use... do it yourself, or rely on others... but don't expect WHMCS to come up with any solutions... I spent ages waiting/hoping that would change - but it was quicker to do it myself. you can make a function to ping the whois server and tell if the server is working. based on each ping result, only the active tlds will be available to users.what do you think ? I think there's a fundamental flaw with that... you would need to know what the whois server is for each TLD before you could ping it... but if you know the whois server, then you can modify whoisservers.php to query it (in most cases) and get the correct answer for each TLD... so you wouldn't need to ping it. and then what do you do for those TLDs that don't operate a port 43 whois server and rely on web forms? if you have to, you could modify the templates to allow you to take a registration order even if the whois server is down... http://forum.whmcs.com/showthread.php?111759-Bypass-whois-function-in-case-of-downtime-or-false-positives but it would be much better to have a thoroughly complete whoisservers.php list rather than worrying about pinging whois servers to see if they're alive or not... if you were being really thorough, it would have 3000+ entries not the few hundred in the default file. in my opinion, you've added the TLDs to WHMCS in the wrong way - ideally, you could check/add an entry in whoisservers.php and then add it to pricing... you've added them all to pricing, now you'll have to go through them and check each one. I suppose ideally, WHMCS would have kept the list updated for their customers - but they haven't, so it's down to you to check. I think all those 3rd-level .pro domains can go for starters - I can't recall every seeing any registered when searching Google. the thread below might help if you need to find entries - but better to work from newest -> oldest post in that thread as the entries for each TLD often changes. http://forum.whmcs.com/showthread.php?86494-New-gTLDs-Whois-Server I have found the solution. I have removed the plugin multisite enhancements which is causing problems. Thank you for your help. Now it is working. it does seem faster now and is at least showing results... even if they're not necessarily accurate. 0 Quote Link to comment Share on other sites More sharing options...
dnhgeeks Posted May 30, 2016 Author Share Posted May 30, 2016 Thank you for your help! don't look at me - I don't work for them! I will be careful next time I think there's a fundamental flaw with that... you would need to know what the whois server is for each TLD before you could ping it... but if you know the whois server, then you can modify whoisservers.php to query it (in most cases) and get the correct answer for each TLD... so you wouldn't need to ping it. If I do it for all tlds, this means a lot of work I suppose ideally, WHMCS would have kept the list updated for their customers - but they haven't, so it's down to you to check. That would have been best for me...but unfortunately it is not so. I think all those 3rd-level .pro domains can go for starters - I can't recall every seeing any registered when searching Google. Not sure, it is better to hide the third level tlds. I never saw a website either. the thread below might help if you need to find entries - but better to work from newest -> oldest post in that thread as the entries for each TLD often changes. http://forum.whmcs.com/showthread.ph...s-Whois-Server Thank you for the thread link One question, should I read all 26 pages to create a full list OR can you point me to some comments with the longest list of tlds. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 31, 2016 Share Posted May 31, 2016 If I do it for all tlds, this means a lot of work true - probably why WHMCS don't do it themselves either. and it's a hell of a lot of work initially setting up the list. Not sure, it is better to hide the third level tlds. I never saw a website either. might be worth checking with your registrar about this as to whether they offer them... I doubt you can any more, but their advice will be more appropriate for you. One question, should I read all 26 pages to create a full list OR can you point me to some comments with the longest list of tlds. I am going to insist that you read all 26 pages as i'll be quizzing you on the content shortly! seriously, I don't think you could create a valid list from that thread - it's more useful for filling in blanks/gaps in your existing file... e.g., when new TLDs are delegated or existing entries change... or teaching you the process of how to create your own list. I know i'm biased, but I think the most thorough and complete whois list i've seen is mine - though you'll have to take my word for it as it currently isn't available publicly... i'll likely make it available for sale, along with regular updates, one day but not today - i've got enough on my plate with other projects. ... and on a side-note, even if it were available now, I wouldn't tell you about it in this thread as it would rightly be against the forum rules as advertising outside of the accepted sub-forums. I think your next best solution is from the starter of the above thread - nimonogi - he's made a list available from his website that you can download for free (after signup)... i've never downloaded it, but it's got to be better than the default whoisservers.php file supplied by WHMCS... and should likely include most of the recent new TLDs... at the very least, it should be a good starting point for you. http://forum.whmcs.com/showthread.php?86494-New-gTLDs-Whois-Server&p=370242#post370242 https://www.brontobytes.com/cart.php?a=add&pid=72 always bear in mind with lists such as these - whether it's nimonogi's, WHMCS or even mine - that they are prone to be outdated quickly... an entry might work today, but if the registry makes even a minor change to its output, then it may fail tomorrow... so you need to check them regularly. 1 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.