Warning (2): file_get_contents(https://www.googleapis.com/youtube/v3/videos?part=snippet&id=ipTnnckI2vw&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request
[APP/View/Pages/videos.ctp, line 107]Code Context <?php
$code = $v['Video']['code'];
$video_feed = file_get_contents("https://www.googleapis.com/youtube/v3/videos?part=snippet&id=".$code."&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8");
$viewFile = '/var/www/vhosts/lasultanahotels.com/test.lasultanahotels.com/app/View/Pages/videos.ctp'
$dataForView = array(
'videos' => array(
(int) 0 => array(
'Video' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'Video' => array(
[maximum depth reached]
)
)
)
)
$videos = array(
(int) 0 => array(
'Video' => array(
'id' => '2',
'hotels_id' => '1',
'code' => 'ipTnnckI2vw',
'enligne' => true
)
),
(int) 1 => array(
'Video' => array(
'id' => '3',
'hotels_id' => '2',
'code' => 'DMgtD-HFeaA',
'enligne' => true
)
)
)
$v = array(
'Video' => array(
'id' => '2',
'hotels_id' => '1',
'code' => 'ipTnnckI2vw',
'enligne' => true
)
)
$k = (int) 0
$code = 'ipTnnckI2vw'
$http_response_header = array(
(int) 0 => 'HTTP/1.0 400 Bad Request',
(int) 1 => 'Vary: X-Origin',
(int) 2 => 'Vary: Referer',
(int) 3 => 'Content-Type: application/json; charset=UTF-8',
(int) 4 => 'Date: Tue, 05 Dec 2023 02:59:53 GMT',
(int) 5 => 'Server: scaffolding on HTTPServer2',
(int) 6 => 'Cache-Control: private',
(int) 7 => 'X-XSS-Protection: 0',
(int) 8 => 'X-Frame-Options: SAMEORIGIN',
(int) 9 => 'X-Content-Type-Options: nosniff',
(int) 10 => 'Accept-Ranges: none',
(int) 11 => 'Vary: Origin,Accept-Encoding',
(int) 12 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
)
file_get_contents - [internal], line ??
include - APP/View/Pages/videos.ctp, line 107
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 963
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 49
Notice (8): Trying to get property 'items' of non-object [APP/View/Pages/videos.ctp, line 109]Code Context $video_feed = file_get_contents("https://www.googleapis.com/youtube/v3/videos?part=snippet&id=".$code."&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8");
$video_obj = json_decode($video_feed);
$video_obj = $video_obj->items[0]->snippet;
$viewFile = '/var/www/vhosts/lasultanahotels.com/test.lasultanahotels.com/app/View/Pages/videos.ctp'
$dataForView = array(
'videos' => array(
(int) 0 => array(
'Video' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'Video' => array(
[maximum depth reached]
)
)
)
)
$videos = array(
(int) 0 => array(
'Video' => array(
'id' => '2',
'hotels_id' => '1',
'code' => 'ipTnnckI2vw',
'enligne' => true
)
),
(int) 1 => array(
'Video' => array(
'id' => '3',
'hotels_id' => '2',
'code' => 'DMgtD-HFeaA',
'enligne' => true
)
)
)
$v = array(
'Video' => array(
'id' => '2',
'hotels_id' => '1',
'code' => 'ipTnnckI2vw',
'enligne' => true
)
)
$k = (int) 0
$code = 'ipTnnckI2vw'
$video_feed = false
$video_obj = null
$http_response_header = array(
(int) 0 => 'HTTP/1.0 400 Bad Request',
(int) 1 => 'Vary: X-Origin',
(int) 2 => 'Vary: Referer',
(int) 3 => 'Content-Type: application/json; charset=UTF-8',
(int) 4 => 'Date: Tue, 05 Dec 2023 02:59:53 GMT',
(int) 5 => 'Server: scaffolding on HTTPServer2',
(int) 6 => 'Cache-Control: private',
(int) 7 => 'X-XSS-Protection: 0',
(int) 8 => 'X-Frame-Options: SAMEORIGIN',
(int) 9 => 'X-Content-Type-Options: nosniff',
(int) 10 => 'Accept-Ranges: none',
(int) 11 => 'Vary: Origin,Accept-Encoding',
(int) 12 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
)
include - APP/View/Pages/videos.ctp, line 109
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 963
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 49
Notice (8): Trying to get property 'snippet' of non-object [APP/View/Pages/videos.ctp, line 109]Code Context $video_feed = file_get_contents("https://www.googleapis.com/youtube/v3/videos?part=snippet&id=".$code."&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8");
$video_obj = json_decode($video_feed);
$video_obj = $video_obj->items[0]->snippet;
$viewFile = '/var/www/vhosts/lasultanahotels.com/test.lasultanahotels.com/app/View/Pages/videos.ctp'
$dataForView = array(
'videos' => array(
(int) 0 => array(
'Video' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'Video' => array(
[maximum depth reached]
)
)
)
)
$videos = array(
(int) 0 => array(
'Video' => array(
'id' => '2',
'hotels_id' => '1',
'code' => 'ipTnnckI2vw',
'enligne' => true
)
),
(int) 1 => array(
'Video' => array(
'id' => '3',
'hotels_id' => '2',
'code' => 'DMgtD-HFeaA',
'enligne' => true
)
)
)
$v = array(
'Video' => array(
'id' => '2',
'hotels_id' => '1',
'code' => 'ipTnnckI2vw',
'enligne' => true
)
)
$k = (int) 0
$code = 'ipTnnckI2vw'
$video_feed = false
$video_obj = null
$http_response_header = array(
(int) 0 => 'HTTP/1.0 400 Bad Request',
(int) 1 => 'Vary: X-Origin',
(int) 2 => 'Vary: Referer',
(int) 3 => 'Content-Type: application/json; charset=UTF-8',
(int) 4 => 'Date: Tue, 05 Dec 2023 02:59:53 GMT',
(int) 5 => 'Server: scaffolding on HTTPServer2',
(int) 6 => 'Cache-Control: private',
(int) 7 => 'X-XSS-Protection: 0',
(int) 8 => 'X-Frame-Options: SAMEORIGIN',
(int) 9 => 'X-Content-Type-Options: nosniff',
(int) 10 => 'Accept-Ranges: none',
(int) 11 => 'Vary: Origin,Accept-Encoding',
(int) 12 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
)
include - APP/View/Pages/videos.ctp, line 109
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 963
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 49
Notice (8): Trying to get property 'title' of non-object [APP/View/Pages/videos.ctp, line 110]Code Context $video_obj = json_decode($video_feed);
$video_obj = $video_obj->items[0]->snippet;
$video_str = $video_obj->title;
$viewFile = '/var/www/vhosts/lasultanahotels.com/test.lasultanahotels.com/app/View/Pages/videos.ctp'
$dataForView = array(
'videos' => array(
(int) 0 => array(
'Video' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'Video' => array(
[maximum depth reached]
)
)
)
)
$videos = array(
(int) 0 => array(
'Video' => array(
'id' => '2',
'hotels_id' => '1',
'code' => 'ipTnnckI2vw',
'enligne' => true
)
),
(int) 1 => array(
'Video' => array(
'id' => '3',
'hotels_id' => '2',
'code' => 'DMgtD-HFeaA',
'enligne' => true
)
)
)
$v = array(
'Video' => array(
'id' => '2',
'hotels_id' => '1',
'code' => 'ipTnnckI2vw',
'enligne' => true
)
)
$k = (int) 0
$code = 'ipTnnckI2vw'
$video_feed = false
$video_obj = null
$http_response_header = array(
(int) 0 => 'HTTP/1.0 400 Bad Request',
(int) 1 => 'Vary: X-Origin',
(int) 2 => 'Vary: Referer',
(int) 3 => 'Content-Type: application/json; charset=UTF-8',
(int) 4 => 'Date: Tue, 05 Dec 2023 02:59:53 GMT',
(int) 5 => 'Server: scaffolding on HTTPServer2',
(int) 6 => 'Cache-Control: private',
(int) 7 => 'X-XSS-Protection: 0',
(int) 8 => 'X-Frame-Options: SAMEORIGIN',
(int) 9 => 'X-Content-Type-Options: nosniff',
(int) 10 => 'Accept-Ranges: none',
(int) 11 => 'Vary: Origin,Accept-Encoding',
(int) 12 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
)
include - APP/View/Pages/videos.ctp, line 110
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 963
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 49
Warning (2): file_get_contents(https://www.googleapis.com/youtube/v3/videos?part=snippet&id=DMgtD-HFeaA&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8) [<a href='http://php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request
[APP/View/Pages/videos.ctp, line 107]Code Context <?php
$code = $v['Video']['code'];
$video_feed = file_get_contents("https://www.googleapis.com/youtube/v3/videos?part=snippet&id=".$code."&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8");
$viewFile = '/var/www/vhosts/lasultanahotels.com/test.lasultanahotels.com/app/View/Pages/videos.ctp'
$dataForView = array(
'videos' => array(
(int) 0 => array(
'Video' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'Video' => array(
[maximum depth reached]
)
)
)
)
$videos = array(
(int) 0 => array(
'Video' => array(
'id' => '2',
'hotels_id' => '1',
'code' => 'ipTnnckI2vw',
'enligne' => true
)
),
(int) 1 => array(
'Video' => array(
'id' => '3',
'hotels_id' => '2',
'code' => 'DMgtD-HFeaA',
'enligne' => true
)
)
)
$v = array(
'Video' => array(
'id' => '3',
'hotels_id' => '2',
'code' => 'DMgtD-HFeaA',
'enligne' => true
)
)
$k = (int) 1
$code = 'DMgtD-HFeaA'
$video_feed = false
$video_obj = null
$video_str = null
$http_response_header = array(
(int) 0 => 'HTTP/1.0 400 Bad Request',
(int) 1 => 'Vary: X-Origin',
(int) 2 => 'Vary: Referer',
(int) 3 => 'Content-Type: application/json; charset=UTF-8',
(int) 4 => 'Date: Tue, 05 Dec 2023 02:59:53 GMT',
(int) 5 => 'Server: scaffolding on HTTPServer2',
(int) 6 => 'Cache-Control: private',
(int) 7 => 'X-XSS-Protection: 0',
(int) 8 => 'X-Frame-Options: SAMEORIGIN',
(int) 9 => 'X-Content-Type-Options: nosniff',
(int) 10 => 'Accept-Ranges: none',
(int) 11 => 'Vary: Origin,Accept-Encoding',
(int) 12 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
)
file_get_contents - [internal], line ??
include - APP/View/Pages/videos.ctp, line 107
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 963
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 49
Notice (8): Trying to get property 'items' of non-object [APP/View/Pages/videos.ctp, line 109]Code Context $video_feed = file_get_contents("https://www.googleapis.com/youtube/v3/videos?part=snippet&id=".$code."&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8");
$video_obj = json_decode($video_feed);
$video_obj = $video_obj->items[0]->snippet;
$viewFile = '/var/www/vhosts/lasultanahotels.com/test.lasultanahotels.com/app/View/Pages/videos.ctp'
$dataForView = array(
'videos' => array(
(int) 0 => array(
'Video' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'Video' => array(
[maximum depth reached]
)
)
)
)
$videos = array(
(int) 0 => array(
'Video' => array(
'id' => '2',
'hotels_id' => '1',
'code' => 'ipTnnckI2vw',
'enligne' => true
)
),
(int) 1 => array(
'Video' => array(
'id' => '3',
'hotels_id' => '2',
'code' => 'DMgtD-HFeaA',
'enligne' => true
)
)
)
$v = array(
'Video' => array(
'id' => '3',
'hotels_id' => '2',
'code' => 'DMgtD-HFeaA',
'enligne' => true
)
)
$k = (int) 1
$code = 'DMgtD-HFeaA'
$video_feed = false
$video_obj = null
$video_str = null
$http_response_header = array(
(int) 0 => 'HTTP/1.0 400 Bad Request',
(int) 1 => 'Vary: X-Origin',
(int) 2 => 'Vary: Referer',
(int) 3 => 'Content-Type: application/json; charset=UTF-8',
(int) 4 => 'Date: Tue, 05 Dec 2023 02:59:53 GMT',
(int) 5 => 'Server: scaffolding on HTTPServer2',
(int) 6 => 'Cache-Control: private',
(int) 7 => 'X-XSS-Protection: 0',
(int) 8 => 'X-Frame-Options: SAMEORIGIN',
(int) 9 => 'X-Content-Type-Options: nosniff',
(int) 10 => 'Accept-Ranges: none',
(int) 11 => 'Vary: Origin,Accept-Encoding',
(int) 12 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
)
include - APP/View/Pages/videos.ctp, line 109
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 963
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 49
Notice (8): Trying to get property 'snippet' of non-object [APP/View/Pages/videos.ctp, line 109]Code Context $video_feed = file_get_contents("https://www.googleapis.com/youtube/v3/videos?part=snippet&id=".$code."&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8");
$video_obj = json_decode($video_feed);
$video_obj = $video_obj->items[0]->snippet;
$viewFile = '/var/www/vhosts/lasultanahotels.com/test.lasultanahotels.com/app/View/Pages/videos.ctp'
$dataForView = array(
'videos' => array(
(int) 0 => array(
'Video' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'Video' => array(
[maximum depth reached]
)
)
)
)
$videos = array(
(int) 0 => array(
'Video' => array(
'id' => '2',
'hotels_id' => '1',
'code' => 'ipTnnckI2vw',
'enligne' => true
)
),
(int) 1 => array(
'Video' => array(
'id' => '3',
'hotels_id' => '2',
'code' => 'DMgtD-HFeaA',
'enligne' => true
)
)
)
$v = array(
'Video' => array(
'id' => '3',
'hotels_id' => '2',
'code' => 'DMgtD-HFeaA',
'enligne' => true
)
)
$k = (int) 1
$code = 'DMgtD-HFeaA'
$video_feed = false
$video_obj = null
$video_str = null
$http_response_header = array(
(int) 0 => 'HTTP/1.0 400 Bad Request',
(int) 1 => 'Vary: X-Origin',
(int) 2 => 'Vary: Referer',
(int) 3 => 'Content-Type: application/json; charset=UTF-8',
(int) 4 => 'Date: Tue, 05 Dec 2023 02:59:53 GMT',
(int) 5 => 'Server: scaffolding on HTTPServer2',
(int) 6 => 'Cache-Control: private',
(int) 7 => 'X-XSS-Protection: 0',
(int) 8 => 'X-Frame-Options: SAMEORIGIN',
(int) 9 => 'X-Content-Type-Options: nosniff',
(int) 10 => 'Accept-Ranges: none',
(int) 11 => 'Vary: Origin,Accept-Encoding',
(int) 12 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
)
include - APP/View/Pages/videos.ctp, line 109
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 963
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 49
Notice (8): Trying to get property 'title' of non-object [APP/View/Pages/videos.ctp, line 110]Code Context $video_obj = json_decode($video_feed);
$video_obj = $video_obj->items[0]->snippet;
$video_str = $video_obj->title;
$viewFile = '/var/www/vhosts/lasultanahotels.com/test.lasultanahotels.com/app/View/Pages/videos.ctp'
$dataForView = array(
'videos' => array(
(int) 0 => array(
'Video' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'Video' => array(
[maximum depth reached]
)
)
)
)
$videos = array(
(int) 0 => array(
'Video' => array(
'id' => '2',
'hotels_id' => '1',
'code' => 'ipTnnckI2vw',
'enligne' => true
)
),
(int) 1 => array(
'Video' => array(
'id' => '3',
'hotels_id' => '2',
'code' => 'DMgtD-HFeaA',
'enligne' => true
)
)
)
$v = array(
'Video' => array(
'id' => '3',
'hotels_id' => '2',
'code' => 'DMgtD-HFeaA',
'enligne' => true
)
)
$k = (int) 1
$code = 'DMgtD-HFeaA'
$video_feed = false
$video_obj = null
$video_str = null
$http_response_header = array(
(int) 0 => 'HTTP/1.0 400 Bad Request',
(int) 1 => 'Vary: X-Origin',
(int) 2 => 'Vary: Referer',
(int) 3 => 'Content-Type: application/json; charset=UTF-8',
(int) 4 => 'Date: Tue, 05 Dec 2023 02:59:53 GMT',
(int) 5 => 'Server: scaffolding on HTTPServer2',
(int) 6 => 'Cache-Control: private',
(int) 7 => 'X-XSS-Protection: 0',
(int) 8 => 'X-Frame-Options: SAMEORIGIN',
(int) 9 => 'X-Content-Type-Options: nosniff',
(int) 10 => 'Accept-Ranges: none',
(int) 11 => 'Vary: Origin,Accept-Encoding',
(int) 12 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
)
include - APP/View/Pages/videos.ctp, line 110
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 963
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 49