file_get_contents(http://www.whois.com/whois/xxxxxxxxxxxx.com): failed to open stream

Hello!!

I have this error in user interface, do you know what can be the cause of it?

There is an error. Please report the message (Piwik 1.12) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: file_get_contents(Whois xxxxxxxxxx.com): failed to open stream: Connection timed out in /var/www/piwik/core/Http.php on line 395

Backtrace -->

#0 Piwik_ErrorHandler(…) called at [:]
#1 file_get_contents(…) called at [/var/www/piwik/core/Http.php:395]
#2 Piwik_Http::sendHttpRequestBy(…) called at [/var/www/piwik/core/Http.php:82]
#3 Piwik_Http::sendHttpRequest(…) called at [/var/www/piwik/plugins/SEO/RankChecker.php:58]
#4 Piwik_SEO_RankChecker->getPage(…) called at [/var/www/piwik/plugins/SEO/RankChecker.php:247]
#5 Piwik_SEO_RankChecker->_getAgeWhoisCom(…) called at [/var/www/piwik/plugins/SEO/RankChecker.php:147]
#6 Piwik_SEO_RankChecker->getAge(…) called at [/var/www/piwik/plugins/SEO/API.php:73]
#7 Piwik_SEO_API->getRank(…) called at [/var/www/piwik/plugins/SEO/Controller.php:32]
#8 Piwik_SEO_Controller->getRank(…) called at [:]
#9 call_user_func_array(…) called at [/var/www/piwik/core/FrontController.php:125]
#10 Piwik_FrontController->dispatch(…) called at [/var/www/piwik/index.php:47]

I connected to the server and made
ping www.whois.com [worked OK]
ping google.com [worked OK]
wget -O - www.whois.com [time out]
wget -O - www.whois.com [form home, works ok]
telnet www.whois.com 80 [time out]
telnet www.google.com 80 [works OK]

Do you know how can I solve this?

in plugins/SEO/RankChecker.php

replace the line ~ 60 with:
return str_replace(’ ', ’ ', Http::sendHttpRequest($url, $timeout = 20, @$_SERVER[‘HTTP_USER_AGENT’]));
(change timeout to 20)

-> does it fix it?