Page tree

Q: I try to connect to my site after installing JoomlaStats and I get following warning (and probably it takes about 60 seconds to load the first page):
(note: the line number may be different)

Warning: fsockopen(): unable to connect to 193.0.0.135:43 in /components/com_joomlastats/joomlastats.inc.php on line 516

Warning: fsockopen(): unable to connect to 200.160.2.15:43 in /components/com_joomlastats/joomlastats.inc.php on line 516

Warning: fsockopen(): unable to connect to 196.216.2.1:43 in /components/com_joomlastats/joomlastats.inc.php on line 516



A: To be able to lookup the country when using a domain that does not contain any country information in it (like .com or .net) JoomlaStats does an fsockopen to the whois.ripe.net database on port 43 (WHOIS service).

Solution 1:
Make sure your system (the webserver JoomlaStats is configured on) can open an outgoing connection on port 43 to whois.ripe.net
Solution 2:
Disable the whois feature (JoomlaStats 'Configuration'->'Common' Tab). JoomlaStat works fine, however less visitors wil be related to their country.


Note:
It could be that the ip2country table never will be filled if you can't enable the whois feature (and will result in a message on the Info section). Although you won't be able to detect where some of the visitor are visiting from, this won't harm your data. A developer is currently investigating if we can provide a solution for resolving the visitors country for users that aren't able to use the whois feature (on systems having port 43 blocked).


This Warning messag can be seen when using JoomlaStats 2.3.x or before. FromJoomlaStats version 3.0.x you don't get an error message, but whois just doesn't work.