PHP Error: WARNING
PHP Error: WARNING
PHP Error: WARNING
file_get_contents(https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername=NEGRO SALCEDO&key=AIzaSyA9EcmK4oKRFy2ar16iKPiBNrt81ZxLfck): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in /home/admin/web/djrankings.org/public_html/tpls/dj/classes/MyClass.php on line 1635
Error on line:
1630)    exit;
1631)   }
1632) 
1633)   public function youtube($q, $type = 'video', $limit = 7) {
1634) 
1635)     $searchResponse = file_get_contents('https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername='.$q.'&key=AIzaSyA9EcmK4oKRFy2ar16iKPiBNrt81ZxLfck');
1636) $searchResponse = json_decode($searchResponse);
1637) $channels = array();
1638) $videoID= array();
1639) $items= array();
1640) 
1641) foreach ($searchResponse->items as $key => $response) {
1642)     array_push($channels, $response->id);
Debug Backtrace:
13) /home/admin/web/djrankings.org/public_html/tpls/dj/classes/MyClass.php on line 1635
file_get_contents('https://www.googleap...ar16iKPiBNrt81ZxLfck');
1631)  }
1632) 
1633)   public function youtube($q, $type = 'video', $limit = 7) {
1634) 
1635)     $searchResponse = file_get_contents('https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername='.$q.'&key=AIzaSyA9EcmK4oKRFy2ar16iKPiBNrt81ZxLfck');
1636) $searchResponse = json_decode($searchResponse);
1637) $channels = array();
1638) $videoID= array();
1639) $items= array();
1640) 
1641) foreach ($searchResponse->items as $key => $response) {
12) /home/admin/web/djrankings.org/public_html/tpls/dj/classes/DJ.class.php on line 247
MyClass::youtube('NEGRO SALCEDO', 'videos');
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) {
247)       $arr = $this->My->youtube($row['title'],'videos');
248)       //if (IS_ADMIN) p($arr);
249)       foreach ($arr as $item) {
250)         if (!$item['snippet']) continue;
251)         $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>';
252)       }
253)     }
11) /home/admin/web/djrankings.org/public_html/tpls/dj/classes/DJ.class.php on line 148
Dj_class::videos(false, array(38));
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']);
152)           }
153) 
154)           $a['count'] = $this->count;
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