PHP Error: WARNING
PHP Error: WARNING
PHP Error: WARNING
file_get_contents(https://www.googleapis.com/youtube/v3/search?key=AIzaSyA9EcmK4oKRFy2ar16iKPiBNrt81ZxLfck&part=snippet&channelId=UC2p_kzEcgmD9vBbJAFvn_kw&maxResults=7): failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable in /home/admin/web/djrankings.org/public_html/tpls/dj/classes/MyClass.php on line 1643
Error on line:
1638)$videoID= array();
1639) $items= array();
1640) 
1641) foreach ($searchResponse->items as $key => $response) {
1642)     array_push($channels, $response->id);
1643)     $fetchVideos = file_get_contents('https://www.googleapis.com/youtube/v3/search?key=AIzaSyA9EcmK4oKRFy2ar16iKPiBNrt81ZxLfck&part=snippet&channelId='.$response->id.'&maxResults=7');
1644)     if($fetchVideos != false)
1645)     {
1646)         $fetchVideos = json_decode($fetchVideos);
1647)         if($fetchVideos->items)
1648)         {
1649)             foreach ($fetchVideos->items as $key => $item) {
1650)                 if($item->id->videoId)
Debug Backtrace:
13) /home/admin/web/djrankings.org/public_html/tpls/dj/classes/MyClass.php on line 1643
file_get_contents('https://www.googleap..._kw&maxResults=7');
1639)$items= array();
1640) 
1641) foreach ($searchResponse->items as $key => $response) {
1642)     array_push($channels, $response->id);
1643)     $fetchVideos = file_get_contents('https://www.googleapis.com/youtube/v3/search?key=AIzaSyA9EcmK4oKRFy2ar16iKPiBNrt81ZxLfck&part=snippet&channelId='.$response->id.'&maxResults=7');
1644)     if($fetchVideos != false)
1645)     {
1646)         $fetchVideos = json_decode($fetchVideos);
1647)         if($fetchVideos->items)
1648)         {
1649)             foreach ($fetchVideos->items as $key => $item) {
12) /home/admin/web/djrankings.org/public_html/tpls/dj/classes/DJ.class.php on line 240
MyClass::youtube('mayhemSLR', 'users');
236)      }
237)     }
238)     if (!$y_id && $n) {
239) 
240)       $arr = $this->My->youtube($n,'users');
241)       foreach ($arr as $item) {
242)         if (!$item['snippet']) continue;
243)         $r .= '<tr><td style="padding-bottom:5px;"><a href="javascript:;" onclick="youtubeMe(\''.$item['id'].'\',\''.strJAVA($item['snippet']['title']).'\')"><img src="'.$item['snippet']['thumbnails']['medium']['url'].'" width="100"></a></td><td style="padding:2px 5px;vertical-align:top;"><a href="javascript:;" onclick="youtubeMe(\''.$item['id'].'\',\''.strJAVA($item['snippet']['title']).'\')">'.$item['snippet']['title'].'</a></td></tr>';
244)       }
245)     }
246)     if (!$y_id) {
11) /home/admin/web/djrankings.org/public_html/tpls/dj/classes/DJ.class.php on line 145
Dj_class::videos('mayhemSLR', array(38));
141)                  $this->count['youtube']['views'] = $d['entry']['yt:statistics_attr']['totalUploadViews'];
142)                   $this->count['youtube']['url'] = $l['url'];
143)                 }
144)                 */
145)                 $a['videos'] = $this->videos($n, $row);
146)               }
147)             }
148)             if (!$a['videos']) $a['videos'] = $this->videos(false, $row);
149)           } else {
150) 
151)             $a['videos'] = unserialize($a['videos']);
10) /home/admin/web/djrankings.org/public_html/tpls/dj/classes/DJ.class.php on line 7
Dj_class::run();
3)class Dj_class extends Object {
4) 
5)   public function __construct(&$Index) {
6)     parent::load($Index);
7)     $this->run();
8)   }
9) 
10)   public $count = array(
11)     'twitter'  => array(),
12)     'facebook'  => array(),
13)     'youtube'  => array(),
9) /home/admin/web/djrankings.org/public_html/inc/Site.php on line 1166
Dj_class::__construct(object(Index), NULL, NULL, NULL, NULL);
8) /home/admin/web/djrankings.org/public_html/inc/Index.php on line 314
Factory::call('.DJ', object(Index));
7) /home/admin/web/djrankings.org/public_html/tpls/dj/classes/MyClass.php on line 5248
Index::staticPage('DJ', '');
6) /home/admin/web/djrankings.org/public_html/mod/Mainarea.php on line 86
MyClass::page();
5) /home/admin/web/djrankings.org/public_html/mod/Mainarea.php on line 149
Mainarea::printMain();
4) /home/admin/web/djrankings.org/public_html/mod/Mainarea.php on line 115
Mainarea::ajaxel();
3) /home/admin/web/djrankings.org/public_html/inc/Index.php on line 235
Mainarea::printIndex();
2) /home/admin/web/djrankings.org/public_html/inc/Site.php on line 249
Index::document();
1) /home/admin/web/djrankings.org/public_html/index.php on line 54
Site::init();
Ajaxel CMS v8.1