Warning (2): file_get_contents(https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94&key=AIzaSyAovSSim8YLc_cDiKNGkPAgRmSV5lujKHU) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request
[APP/View/Helper/YoutubeHelper.php, line 24]Code Context$username = "guimaraes1322"
$playlist = "PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94"
$urlPlaylist = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94&key=AIzaSyAovSSim8YLc_cDiKNGkPAgRmSV5lujKHU"
$http_response_header = array(
"HTTP/1.0 400 Bad Request",
"Vary: X-Origin",
"Vary: Referer",
"Content-Type: application/json; charset=UTF-8",
"Date: Fri, 12 Aug 2022 09:42:29 GMT",
"Server: scaffolding on HTTPServer2",
"Cache-Control: private",
"X-XSS-Protection: 0",
"X-Frame-Options: SAMEORIGIN",
"X-Content-Type-Options: nosniff",
"Accept-Ranges: none",
"Vary: Origin,Accept-Encoding",
"Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43""
)
file_get_contents - [internal], line ??
YoutubeHelper::getNewVideos() - APP/View/Helper/YoutubeHelper.php, line 24
include - APP/Plugin/ConteudoDinamico/View/Conteudos/index.ctp, line 154
View::_render() - CORE/Cake/View/View.php, line 598
View::render() - CORE/Cake/View/View.php, line 365
Controller::render() - CORE/Cake/Controller/Controller.php, line 898
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 114
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 89
[main] - APP/webroot/index.php, line 96
Notice (8): Trying to get property of non-object [APP/View/Helper/YoutubeHelper.php, line 26]Code Context $cont = json_decode(file_get_contents($urlPlaylist));
$feed = $cont->items;
$username = "guimaraes1322"
$playlist = "PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94"
$urlPlaylist = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94&key=AIzaSyAovSSim8YLc_cDiKNGkPAgRmSV5lujKHU"
$http_response_header = array(
"HTTP/1.0 400 Bad Request",
"Vary: X-Origin",
"Vary: Referer",
"Content-Type: application/json; charset=UTF-8",
"Date: Fri, 12 Aug 2022 09:42:29 GMT",
"Server: scaffolding on HTTPServer2",
"Cache-Control: private",
"X-XSS-Protection: 0",
"X-Frame-Options: SAMEORIGIN",
"X-Content-Type-Options: nosniff",
"Accept-Ranges: none",
"Vary: Origin,Accept-Encoding",
"Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43""
)
$cont = null
YoutubeHelper::getNewVideos() - APP/View/Helper/YoutubeHelper.php, line 26
include - APP/Plugin/ConteudoDinamico/View/Conteudos/index.ctp, line 154
View::_render() - CORE/Cake/View/View.php, line 598
View::render() - CORE/Cake/View/View.php, line 365
Controller::render() - CORE/Cake/Controller/Controller.php, line 898
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 114
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 89
[main] - APP/webroot/index.php, line 96
Notice (8): Trying to get property of non-object [APP/View/Helper/YoutubeHelper.php, line 31]Code Context
$msg .= "<iframe id='switcher' width='560' height='315' src='//www.youtube.com/embed/".$feed[0]->snippet->resourceId->videoId."' frameborder='0' allowfullscreen></iframe>";
$username = "guimaraes1322"
$playlist = "PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94"
$urlPlaylist = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94&key=AIzaSyAovSSim8YLc_cDiKNGkPAgRmSV5lujKHU"
$http_response_header = array(
"HTTP/1.0 400 Bad Request",
"Vary: X-Origin",
"Vary: Referer",
"Content-Type: application/json; charset=UTF-8",
"Date: Fri, 12 Aug 2022 09:42:29 GMT",
"Server: scaffolding on HTTPServer2",
"Cache-Control: private",
"X-XSS-Protection: 0",
"X-Frame-Options: SAMEORIGIN",
"X-Content-Type-Options: nosniff",
"Accept-Ranges: none",
"Vary: Origin,Accept-Encoding",
"Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43""
)
$cont = null
$feed = null
$msg = ""
YoutubeHelper::getNewVideos() - APP/View/Helper/YoutubeHelper.php, line 31
include - APP/Plugin/ConteudoDinamico/View/Conteudos/index.ctp, line 154
View::_render() - CORE/Cake/View/View.php, line 598
View::render() - CORE/Cake/View/View.php, line 365
Controller::render() - CORE/Cake/Controller/Controller.php, line 898
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 114
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 89
[main] - APP/webroot/index.php, line 96
Notice (8): Trying to get property of non-object [APP/View/Helper/YoutubeHelper.php, line 31]Code Context
$msg .= "<iframe id='switcher' width='560' height='315' src='//www.youtube.com/embed/".$feed[0]->snippet->resourceId->videoId."' frameborder='0' allowfullscreen></iframe>";
$username = "guimaraes1322"
$playlist = "PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94"
$urlPlaylist = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94&key=AIzaSyAovSSim8YLc_cDiKNGkPAgRmSV5lujKHU"
$http_response_header = array(
"HTTP/1.0 400 Bad Request",
"Vary: X-Origin",
"Vary: Referer",
"Content-Type: application/json; charset=UTF-8",
"Date: Fri, 12 Aug 2022 09:42:29 GMT",
"Server: scaffolding on HTTPServer2",
"Cache-Control: private",
"X-XSS-Protection: 0",
"X-Frame-Options: SAMEORIGIN",
"X-Content-Type-Options: nosniff",
"Accept-Ranges: none",
"Vary: Origin,Accept-Encoding",
"Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43""
)
$cont = null
$feed = null
$msg = ""
YoutubeHelper::getNewVideos() - APP/View/Helper/YoutubeHelper.php, line 31
include - APP/Plugin/ConteudoDinamico/View/Conteudos/index.ctp, line 154
View::_render() - CORE/Cake/View/View.php, line 598
View::render() - CORE/Cake/View/View.php, line 365
Controller::render() - CORE/Cake/Controller/Controller.php, line 898
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 114
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 89
[main] - APP/webroot/index.php, line 96
Notice (8): Trying to get property of non-object [APP/View/Helper/YoutubeHelper.php, line 31]Code Context
$msg .= "<iframe id='switcher' width='560' height='315' src='//www.youtube.com/embed/".$feed[0]->snippet->resourceId->videoId."' frameborder='0' allowfullscreen></iframe>";
$username = "guimaraes1322"
$playlist = "PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94"
$urlPlaylist = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94&key=AIzaSyAovSSim8YLc_cDiKNGkPAgRmSV5lujKHU"
$http_response_header = array(
"HTTP/1.0 400 Bad Request",
"Vary: X-Origin",
"Vary: Referer",
"Content-Type: application/json; charset=UTF-8",
"Date: Fri, 12 Aug 2022 09:42:29 GMT",
"Server: scaffolding on HTTPServer2",
"Cache-Control: private",
"X-XSS-Protection: 0",
"X-Frame-Options: SAMEORIGIN",
"X-Content-Type-Options: nosniff",
"Accept-Ranges: none",
"Vary: Origin,Accept-Encoding",
"Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43""
)
$cont = null
$feed = null
$msg = ""
YoutubeHelper::getNewVideos() - APP/View/Helper/YoutubeHelper.php, line 31
include - APP/Plugin/ConteudoDinamico/View/Conteudos/index.ctp, line 154
View::_render() - CORE/Cake/View/View.php, line 598
View::render() - CORE/Cake/View/View.php, line 365
Controller::render() - CORE/Cake/Controller/Controller.php, line 898
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 114
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 89
[main] - APP/webroot/index.php, line 96
Warning (2): Invalid argument supplied for foreach() [APP/View/Helper/YoutubeHelper.php, line 35]Code Context $msg .= '<div class="videos-youtube" style="overflow:hidden;">';
$msg .= '<ul>';
foreach ($feed AS $key => $f) {
$username = "guimaraes1322"
$playlist = "PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94"
$urlPlaylist = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94&key=AIzaSyAovSSim8YLc_cDiKNGkPAgRmSV5lujKHU"
$http_response_header = array(
"HTTP/1.0 400 Bad Request",
"Vary: X-Origin",
"Vary: Referer",
"Content-Type: application/json; charset=UTF-8",
"Date: Fri, 12 Aug 2022 09:42:29 GMT",
"Server: scaffolding on HTTPServer2",
"Cache-Control: private",
"X-XSS-Protection: 0",
"X-Frame-Options: SAMEORIGIN",
"X-Content-Type-Options: nosniff",
"Accept-Ranges: none",
"Vary: Origin,Accept-Encoding",
"Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43""
)
$cont = null
$feed = null
$msg = "<iframe id='switcher' width='560' height='315' src='//www.youtube.com/embed/' frameborder='0' allowfullscreen></iframe><div class="todos-os-videos"><div class="videos-youtube" style="overflow:hidden;"><ul>"
YoutubeHelper::getNewVideos() - APP/View/Helper/YoutubeHelper.php, line 35
include - APP/Plugin/ConteudoDinamico/View/Conteudos/index.ctp, line 154
View::_render() - CORE/Cake/View/View.php, line 598
View::render() - CORE/Cake/View/View.php, line 365
Controller::render() - CORE/Cake/Controller/Controller.php, line 898
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 114
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 89
[main] - APP/webroot/index.php, line 96
Notice (8): Undefined variable: key [APP/View/Helper/YoutubeHelper.php, line 41]Code Context $msg .= '</ul>';
if ($key > 4) {
$username = "guimaraes1322"
$playlist = "PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94"
$urlPlaylist = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=PL1mi1DX6zTPoe01dLW4CY7qU00R3DXn94&key=AIzaSyAovSSim8YLc_cDiKNGkPAgRmSV5lujKHU"
$http_response_header = array(
"HTTP/1.0 400 Bad Request",
"Vary: X-Origin",
"Vary: Referer",
"Content-Type: application/json; charset=UTF-8",
"Date: Fri, 12 Aug 2022 09:42:29 GMT",
"Server: scaffolding on HTTPServer2",
"Cache-Control: private",
"X-XSS-Protection: 0",
"X-Frame-Options: SAMEORIGIN",
"X-Content-Type-Options: nosniff",
"Accept-Ranges: none",
"Vary: Origin,Accept-Encoding",
"Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43""
)
$cont = null
$feed = null
$msg = "<iframe id='switcher' width='560' height='315' src='//www.youtube.com/embed/' frameborder='0' allowfullscreen></iframe><div class="todos-os-videos"><div class="videos-youtube" style="overflow:hidden;"><ul></ul>"
YoutubeHelper::getNewVideos() - APP/View/Helper/YoutubeHelper.php, line 41
include - APP/Plugin/ConteudoDinamico/View/Conteudos/index.ctp, line 154
View::_render() - CORE/Cake/View/View.php, line 598
View::render() - CORE/Cake/View/View.php, line 365
Controller::render() - CORE/Cake/Controller/Controller.php, line 898
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 114
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 89
[main] - APP/webroot/index.php, line 96