Error messages in top of my webpage

Hello.
When I am visting my website lothiancartrader.tk
the following error message appears:
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /storage/h2/505/559505/public_html/plugins/system/wdc_visits.php on line 162 Warning: file_get_contents(http://api.hostip.info/?ip=37.6.187.156): failed to open stream: php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /storage/h2/505/559505/public_html/plugins/system/wdc_visits.php on line 162 Notice: Undefined offset: 1 in /storage/h2/505/559505/public_html/plugins/system/wdc_visits.php on line 171 Notice: Undefined offset: 1 in /storage/h2/505/559505/public_html/plugins/system/wdc_visits.php on line 175

When I refresh the page (ctrl+F5) the message dessapears.
Any suggestion?

What script are you running?

I’d recommend

  1. checking out the lines of code it is highlighting and address the issues

  2. downgrading your PHP version via general settings to something like 5.4 to see if this solves the errors

  3. disable errors showing via general settings although this doesn’t fix anything if something is not functioning.

I am using Joomla 1.5.26
PHP version is 5.2
When I disable errors showing from feneral settings then messages disappear.