Trying to get property of non-object

« MODX Parse Error »

Error : file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
Error information
ErrorType[num] WARNING[2]
File /var/www/public_html/includes/clanattacks.php
Line 29
Source $xml = file_get_contents($url.'?'.$query);
Current Snippet XmlClanAttacks

Basic info
REQUEST_URI http://berserk-online.com/raspisanie_klanovyh_voin.html
Resource [118] Расписание Клановых Войн
Referer
User Agent CCBot/2.0 (https://commoncrawl.org/faq/)
IP 100.24.113.182
Current time 2020-11-26 20:48:34

Benchmarks
MySQL 0.0044 s (8 Requests)
PHP 0.0132 s
Total 0.0176 s
Memory 1.5262908935547 mb

Backtrace
DocumentParser->executeParser()
index.php on line 126
DocumentParser->prepareResponse()
manager/includes/document.parser.class.inc.php on line 2140
DocumentParser->parseDocumentSource(string $var1)
manager/includes/document.parser.class.inc.php on line 2217
DocumentParser->evalSnippets(string $var1)
manager/includes/document.parser.class.inc.php on line 2003
DocumentParser->_get_snip_result('XmlClanAttacks')
manager/includes/document.parser.class.inc.php on line 1408
DocumentParser->evalSnippet(string $var1, array $var2)
manager/includes/document.parser.class.inc.php on line 1466
eval()
manager/includes/document.parser.class.inc.php on line 1360
getClanAttacks()
manager/includes/document.parser.class.inc.php(1360) : eval()'d code on line 3
file_get_contents(string $var1)
includes/clanattacks.php on line 29