Warning (2) : file_get_contents(https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UC4IPi_z2q5WPedvvADteXPQ&order=date&type=video&maxResults=8&key=AIzaSyCDNfbuD8hJ7KzDmbNM2_1AaiCbijQ5KEY) [function.file-get-contents ]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
[APP/views/pages/youtube_videos.ctp , line 94 ]Code |
Context // If no live video, get the most recent video
$url = "https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=$channelId&order=date&type=video&maxResults=8&key=$apiKey";
$json = file_get_contents($url);
$___viewFn = "/home/74/09/8200974/web/app/views/pages/youtube_videos.ctp"
$___dataForView = array(
"title_for_layout" => "Youtube Videos",
"navigation" => array(
array(),
array(),
array(),
array(),
array(),
array()
),
"main_collection_field" => null,
"main_collection_group" => null,
"collection_groups" => array(
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array()
),
"fieldsRequiredData" => array(
"page" => array()
),
"collections" => array(
"42-156" => array(),
"45-167" => array(),
"48-933" => array(),
"49-934" => array(),
"55-199" => array(),
"58-203" => array()
),
"groups_fields" => array(
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array()
),
"page" => array(
"Page" => array(),
"ParentPage" => array(),
"Layout" => array()
),
"page_urls_map" => array(
"/",
"/page-not-found/",
"/what-s-new/",
"/corporate/leadership-team/",
"/corporate/contact/",
"/corporate/leadership-team/",
"/corporate/share-structure/",
"/corporate/fact-sheet/",
"/projects/panorama-ridge-gold/overview/",
"/projects/ainsworth-silver/overview/",
"/projects/ainsworth-silver/overview/",
"/projects/ainsworth-silver/2024-exploration-results/",
"/projects/tulameen-copper-mountain/overview/",
"/projects/tulameen-copper-mountain/overview/",
"/projects/nevada-rand/overview/",
"/projects/nevada-rand/overview/",
"/projects/nevada-rand/location/",
"/projects/nevada-rand/geographic-setting/",
"/projects/nevada-rand/nevada-rand-shaft/",
"/projects/nevada-rand/drilling/",
"/projects/other-projects/",
"/projects/panorama-ridge-gold/overview/",
"/projects/other-projects/panorama-ridge-gold/overview/",
"/projects/other-projects/panorama-ridge-gold/location/",
"/projects/other-projects/panorama-ridge-gold/property-description-geology/",
"/projects/other-projects/panorama-ridge-gold/trenching/",
"/projects/other-projects/panorama-ridge-gold/drilling/",
"/projects/other-projects/panorama-ridge-gold/nickel-plate-history/",
"http://www.directroyalty.com",
"/projects/pine-grove/overview/",
"/projects/other-projects/pine-grove/overview/",
"/projects/other-projects/pine-grove/drilling/",
"/projects/kettle-valley/overview/",
"/projects/kettle-valley/overview/",
"/projects/kettle-valley/2021-trenching/",
"/projects/kettle-valley/2022-drilling/",
"/projects/aurora-west/overview/",
"/projects/aurora-west/overview/",
"/media-room/news/",
"/media-room/news/",
"/media-room/photo-gallery/",
"/media-room/videos/",
"/media-room/corporate-presentation/",
"/media-room/youtube-videos/",
"http://www.sedar.com/DisplayCompanyDocuments.do?lang=EN&issuerNo=00005516",
"http://www.sedar.com/DisplayCompanyDocuments.do?lang=EN&issuerNo=00005516",
"/regulatory-filings/offering-documents/",
"/regulatory-filings/annual-meeting/2024/",
"/regulatory-filings/annual-meeting/2024/"
),
"site" => array(
"Site" => array()
)
)
$loadHelpers = true
$cached = false
$text = TextHelper
TextHelper::$helpers = NULL
TextHelper::$base = ""
TextHelper::$webroot = "/"
TextHelper::$theme = NULL
TextHelper::$here = "/media-room/youtube-videos"
TextHelper::$params = array
TextHelper::$action = "view"
TextHelper::$plugin = NULL
TextHelper::$data = NULL
TextHelper::$namedArgs = NULL
TextHelper::$argSeparator = NULL
TextHelper::$validationErrors = NULL
TextHelper::$tags = array
TextHelper::$__tainted = NULL
TextHelper::$__cleaned = NULL
$csek = CsekHelper
CsekHelper::$helpers = NULL
CsekHelper::$base = ""
CsekHelper::$webroot = "/"
CsekHelper::$theme = NULL
CsekHelper::$here = "/media-room/youtube-videos"
CsekHelper::$params = array
CsekHelper::$action = "view"
CsekHelper::$plugin = NULL
CsekHelper::$data = NULL
CsekHelper::$namedArgs = NULL
CsekHelper::$argSeparator = NULL
CsekHelper::$validationErrors = NULL
CsekHelper::$tags = array
CsekHelper::$__tainted = NULL
CsekHelper::$__cleaned = NULL
CsekHelper::$viewVars = array
CsekHelper::$FieldsUtil = FieldsUtil object
$time = TimeHelper
TimeHelper::$helpers = NULL
TimeHelper::$base = ""
TimeHelper::$webroot = "/"
TimeHelper::$theme = NULL
TimeHelper::$here = "/media-room/youtube-videos"
TimeHelper::$params = array
TimeHelper::$action = "view"
TimeHelper::$plugin = NULL
TimeHelper::$data = NULL
TimeHelper::$namedArgs = NULL
TimeHelper::$argSeparator = NULL
TimeHelper::$validationErrors = NULL
TimeHelper::$tags = array
TimeHelper::$__tainted = NULL
TimeHelper::$__cleaned = NULL
$jqueryEngine = JqueryEngineHelper
JqueryEngineHelper::$_optionMap = array
JqueryEngineHelper::$_callbackArguments = array
JqueryEngineHelper::$jQueryObject = "$"
JqueryEngineHelper::$useNative = true
JqueryEngineHelper::$selection = NULL
JqueryEngineHelper::$bufferedMethods = array
JqueryEngineHelper::$helpers = NULL
JqueryEngineHelper::$base = ""
JqueryEngineHelper::$webroot = "/"
JqueryEngineHelper::$theme = NULL
JqueryEngineHelper::$here = "/media-room/youtube-videos"
JqueryEngineHelper::$params = array
JqueryEngineHelper::$action = "view"
JqueryEngineHelper::$plugin = NULL
JqueryEngineHelper::$data = NULL
JqueryEngineHelper::$namedArgs = NULL
JqueryEngineHelper::$argSeparator = NULL
JqueryEngineHelper::$validationErrors = NULL
JqueryEngineHelper::$tags = array
JqueryEngineHelper::$__tainted = NULL
JqueryEngineHelper::$__cleaned = NULL
$js = JsHelper
JsHelper::$bufferScripts = true
JsHelper::$helpers = array
JsHelper::$__jsVars = array
JsHelper::$__bufferedScripts = array
JsHelper::$__engineName = "JqueryEngine"
JsHelper::$setVariable = "app"
JsHelper::$base = ""
JsHelper::$webroot = "/"
JsHelper::$theme = NULL
JsHelper::$here = "/media-room/youtube-videos"
JsHelper::$params = array
JsHelper::$action = "view"
JsHelper::$plugin = NULL
JsHelper::$data = NULL
JsHelper::$namedArgs = NULL
JsHelper::$argSeparator = NULL
JsHelper::$validationErrors = NULL
JsHelper::$tags = array
JsHelper::$__tainted = NULL
JsHelper::$__cleaned = NULL
JsHelper::$Html = HtmlHelper object
JsHelper::$Form = FormHelper object
JsHelper::$JqueryEngine = JqueryEngineHelper object
$form = FormHelper
FormHelper::$helpers = array
FormHelper::$fieldset = array
FormHelper::$__options = array
FormHelper::$fields = array
FormHelper::$requestType = NULL
FormHelper::$defaultModel = NULL
FormHelper::$_inputDefaults = array
FormHelper::$base = ""
FormHelper::$webroot = "/"
FormHelper::$theme = NULL
FormHelper::$here = "/media-room/youtube-videos"
FormHelper::$params = array
FormHelper::$action = "view"
FormHelper::$plugin = NULL
FormHelper::$data = NULL
FormHelper::$namedArgs = NULL
FormHelper::$argSeparator = NULL
FormHelper::$validationErrors = NULL
FormHelper::$tags = array
FormHelper::$__tainted = NULL
FormHelper::$__cleaned = NULL
FormHelper::$Html = HtmlHelper object
$html = HtmlHelper
HtmlHelper::$tags = array
HtmlHelper::$_crumbs = array
HtmlHelper::$__includedScripts = array
HtmlHelper::$_scriptBlockOptions = array
HtmlHelper::$__docTypes = array
HtmlHelper::$helpers = NULL
HtmlHelper::$base = ""
HtmlHelper::$webroot = "/"
HtmlHelper::$theme = NULL
HtmlHelper::$here = "/media-room/youtube-videos"
HtmlHelper::$params = array
HtmlHelper::$action = "view"
HtmlHelper::$plugin = NULL
HtmlHelper::$data = NULL
HtmlHelper::$namedArgs = NULL
HtmlHelper::$argSeparator = NULL
HtmlHelper::$validationErrors = NULL
HtmlHelper::$__tainted = NULL
HtmlHelper::$__cleaned = NULL
$session = SessionHelper
SessionHelper::$helpers = array
SessionHelper::$__active = true
SessionHelper::$valid = false
SessionHelper::$error = false
SessionHelper::$_userAgent = "f8965a36617fe3ac0216e542c365480d"
SessionHelper::$path = "/"
SessionHelper::$lastError = NULL
SessionHelper::$security = "low"
SessionHelper::$time = 1746764475
SessionHelper::$sessionTime = 1746800475
SessionHelper::$cookieLifeTime = false
SessionHelper::$watchKeys = array
SessionHelper::$id = NULL
SessionHelper::$host = NULL
SessionHelper::$timeout = NULL
SessionHelper::$base = ""
SessionHelper::$webroot = "/"
SessionHelper::$here = "/media-room/youtube-videos"
SessionHelper::$params = array
SessionHelper::$action = "view"
SessionHelper::$data = NULL
SessionHelper::$theme = NULL
SessionHelper::$plugin = NULL
$title_for_layout = "Youtube Videos"
$navigation = array(
array(
"Page" => array(),
"children" => array(),
"active" => false,
"url" => "/"
),
array(
"Page" => array(),
"children" => array(),
"active" => false,
"url" => "/what-s-new/"
),
array(
"Page" => array(),
"children" => array(),
"active" => false,
"url" => "/corporate/leadership-team/"
),
array(
"Page" => array(),
"children" => array(),
"active" => false,
"url" => "/projects/panorama-ridge-gold/overview/"
),
array(
"Page" => array(),
"children" => array(),
"active" => true,
"url" => "/media-room/news/"
),
array(
"Page" => array(),
"children" => array(),
"active" => false,
"url" => "http://www.sedar.com/DisplayCompanyDocuments.do?lang=EN&issuerNo=00005516"
)
)
$main_collection_field = null
$main_collection_group = null
$collection_groups = array(
array(
"Group" => array()
),
array(
"Group" => array()
),
array(
"Group" => array()
),
array(
"Group" => array()
),
array(
"Group" => array()
),
array(
"Group" => array()
),
array(
"Group" => array()
),
array(
"Group" => array()
),
array(
"Group" => array()
),
array(
"Group" => array()
),
array(
"Group" => array()
),
array(
"Group" => array()
)
)
$fieldsRequiredData = array(
"page" => array(
array(),
array()
)
)
$collections = array(
"42-156" => array(
array(),
array(),
array()
),
"45-167" => array(
array()
),
"48-933" => array(
array(),
array()
),
"49-934" => array(
array(),
array(),
array()
),
"55-199" => array(
array(),
array()
),
"58-203" => array(
array()
)
)
$groups_fields = array(
array(
"Group" => array(),
"Condition" => array(),
"Field" => array()
),
array(
"Group" => array(),
"Condition" => array(),
"Field" => array()
),
array(
"Group" => array(),
"Condition" => array(),
"Field" => array()
),
array(
"Group" => array(),
"Condition" => array(),
"Field" => array()
),
array(
"Group" => array(),
"Condition" => array(),
"Field" => array()
),
array(
"Group" => array(),
"Condition" => array(),
"Field" => array()
),
array(
"Group" => array(),
"Condition" => array(),
"Field" => array()
),
array(
"Group" => array(),
"Condition" => array(),
"Field" => array()
)
)
$page = array(
"Page" => array(
"id" => "375",
"title" => "Youtube Videos",
"page_title" => "Youtube Videos",
"sub_title" => "",
"sef_url" => "youtube-videos",
"created" => "2024-08-16 15:34:59",
"modified" => "2024-08-16 23:07:05",
"modified_by" => "2",
"is_visible" => "0",
"parent_id" => "335",
"lft" => "84",
"rght" => "85",
"site_id" => "1",
"layout_id" => "24",
"photo" => null,
"content" => "<p><!--?php
$apiKey = "AIzaSyCDNfbuD8hJ7KzDmbNM2_1AaiCbijQ5KEY";
$channelId = "UC4IPi_z2q5WPedvvADteXPQ";
echo $apiKey;
?-->[youtube_feeds]</p>
",
"external_link" => "",
"locked" => "0",
"external_file" => ""
),
"ParentPage" => array(
"id" => "335",
"title" => "Media Room",
"page_title" => "",
"sub_title" => "",
"sef_url" => "media-room",
"created" => "2015-04-09 23:47:55",
"modified" => "2018-06-07 14:59:55",
"modified_by" => "2",
"is_visible" => "1",
"parent_id" => null,
"lft" => "75",
"rght" => "86",
"site_id" => "1",
"layout_id" => "1",
"photo" => null,
"content" => "",
"external_link" => "/media-room/news/",
"locked" => "0",
"external_file" => ""
),
"Layout" => array(
"id" => "24",
"name" => "youtube_videos",
"label" => "Youtube Video",
"enabled" => "1",
"order" => "20"
)
)
$page_urls_map = array(
"/",
"/page-not-found/",
"/what-s-new/",
"/corporate/leadership-team/",
"/corporate/contact/",
"/corporate/leadership-team/",
"/corporate/share-structure/",
"/corporate/fact-sheet/",
"/projects/panorama-ridge-gold/overview/",
"/projects/ainsworth-silver/overview/",
"/projects/ainsworth-silver/overview/",
"/projects/ainsworth-silver/2024-exploration-results/",
"/projects/tulameen-copper-mountain/overview/",
"/projects/tulameen-copper-mountain/overview/",
"/projects/nevada-rand/overview/",
"/projects/nevada-rand/overview/",
"/projects/nevada-rand/location/",
"/projects/nevada-rand/geographic-setting/",
"/projects/nevada-rand/nevada-rand-shaft/",
"/projects/nevada-rand/drilling/",
"/projects/other-projects/",
"/projects/panorama-ridge-gold/overview/",
"/projects/other-projects/panorama-ridge-gold/overview/",
"/projects/other-projects/panorama-ridge-gold/location/",
"/projects/other-projects/panorama-ridge-gold/property-description-geology/",
"/projects/other-projects/panorama-ridge-gold/trenching/",
"/projects/other-projects/panorama-ridge-gold/drilling/",
"/projects/other-projects/panorama-ridge-gold/nickel-plate-history/",
"http://www.directroyalty.com",
"/projects/pine-grove/overview/",
"/projects/other-projects/pine-grove/overview/",
"/projects/other-projects/pine-grove/drilling/",
"/projects/kettle-valley/overview/",
"/projects/kettle-valley/overview/",
"/projects/kettle-valley/2021-trenching/",
"/projects/kettle-valley/2022-drilling/",
"/projects/aurora-west/overview/",
"/projects/aurora-west/overview/",
"/media-room/news/",
"/media-room/news/",
"/media-room/photo-gallery/",
"/media-room/videos/",
"/media-room/corporate-presentation/",
"/media-room/youtube-videos/",
"http://www.sedar.com/DisplayCompanyDocuments.do?lang=EN&issuerNo=00005516",
"http://www.sedar.com/DisplayCompanyDocuments.do?lang=EN&issuerNo=00005516",
"/regulatory-filings/offering-documents/",
"/regulatory-filings/annual-meeting/2024/",
"/regulatory-filings/annual-meeting/2024/"
)
$site = array(
"Site" => array(
"id" => "1",
"url" => "www.goldcliff.com",
"name" => "Goldcliff Resource Corporation",
"timezone" => "America/Vancouver",
"logo" => "552c4ab7-49a0-45c8-8eb8-503ad8a83529.png",
"status" => "development",
"created" => "2015-04-09 23:41:56",
"modified" => "2015-04-13 23:01:11"
)
)
$apiKey = "AIzaSyCDNfbuD8hJ7KzDmbNM2_1AaiCbijQ5KEY"
$channelId = "UC4IPi_z2q5WPedvvADteXPQ"
$videos = null
$url = "https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UC4IPi_z2q5WPedvvADteXPQ&order=date&type=video&maxResults=8&key=AIzaSyCDNfbuD8hJ7KzDmbNM2_1AaiCbijQ5KEY"
$http_response_header = array(
"HTTP/1.0 403 Forbidden",
"Vary: X-Origin",
"Vary: Referer",
"Content-Type: application/json; charset=UTF-8",
"Date: Fri, 09 May 2025 04:21:15 GMT",
"Server: scaffolding on HTTPServer2",
"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"
) file_get_contents - [internal], line ??
include - APP/views/pages/youtube_videos.ctp, line 94
View::_render() - CORE/cake/libs/view/view.php, line 736
View::render() - CORE/cake/libs/view/view.php, line 431
Controller::render() - CORE/cake/libs/controller/controller.php, line 909
PagesController::view() - APP/controllers/pages_controller.php, line 82
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 86