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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => '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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => '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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => '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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => '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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => '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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => '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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => '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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => '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
Notice (8): Undefined index: HTTP_ACCEPT_LANGUAGE [APP/View/Layouts/default.ctp, line 170]Code Context}
</style>
<?php $ll = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); ?>
$viewFile = '/var/www/vhosts/lasultanahotels.com/test.lasultanahotels.com/app/View/Layouts/default.ctp' $dataForView = array( 'description_for_layout' => '', 'title_for_layout' => ' Our videos | La sultana Marrakech & La sulana Oualidia - Morocco ', 'videos' => array( (int) 0 => array( 'Video' => array( [maximum depth reached] ) ), (int) 1 => array( 'Video' => array( [maximum depth reached] ) ) ), 'content_for_layout' => ' <div class="pageContent"> <div class="row"> <div class="span2 leftSide"> <div style="padding-top:3px;" > <span style="font-size: 16px; font-family: ArquitectaLight;margin-bottom: 10px; display: block;">PRESS ROOM</span> <ul class="pressRoom"> <li > <a href="/releases">Releases </a></li> <li ><a href="/publications">Publications</a></li> <li > <a href="/galeries">Photo library</a></li> <li ><a href="/brochures">e-Brochures</a></li> <li class="active"><a href="/videos">Video</a></li> </ul> </div> <div style="padding-top:30px; line-height:15px;"> <span class="smallTitre" style="margin-bottom: 11px; display: block;font-family: ArquitectaLight; font-size: 16px;text-transform: uppercase;"> Press Contact : </span> <span class="smallTitre"><a href="mailto:rp@lasultanahotels.com">rp@lasultanahotels.com</a> </span> <br><br> <span class="smallTitre" style="display:block;padding-bottom:2px;"> Paul Charles,<br>The Agency PC </span> <span class="smallTitre" ><a href="mailto:lasultana@pc.agency">lasultana@pc.agency</a> </span> <br> <span class="smallTitre">+44 207 768 0001 </span> <br><br> </div> </div> <style type="text/css"> a.vidthum{ position: relative; width: 240px; height: 180px; display: block; } a.vidthum div.title{ color: white; position: absolute; top: 2px; width: 240px; height: 180px; background: url(img/youtube-icon.png) center no-repeat; } a.vidthum div.title span.title_text{ background-color: #000; display: block; padding-left:2px; } .jcarousel-skin-tango .jcarousel-item-horizontal img{ border:0px !important; } .jcarousel-skin-tango .jcarousel-item{ width:240px !important; } .modal{ width: 853px !important; } </style> <div class="rightSide"> <div class="row"> <div class="selectHotel"> <label>SELECT THE HOTEL</label> <select name="data[hotels_id]" id="filtreHotel"> <option value="0">All</option> <option value="1">La Sultana Marrakech</option> <option value="2">La Sultana Oualidia</option> </select> </div> <ul id="mycarousel" class="jcarousel-skin-tango"> <li data-hotel="1" id="v_1"> <pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88311-trace').style.display = (document.getElementById('cakeErr6766afdf88311-trace').style.display == 'none' ? '' : 'none');"><b>Warning</b> (2)</a>: file_get_contents(https://www.googleapis.com/youtube/v3/videos?part=snippet&amp;id=ipTnnckI2vw&amp;key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request [<b>APP/View/Pages/videos.ctp</b>, line <b>107</b>]<div id="cakeErr6766afdf88311-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88311-code').style.display = (document.getElementById('cakeErr6766afdf88311-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88311-context').style.display = (document.getElementById('cakeErr6766afdf88311-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdf88311-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"> <span style="color: #0000BB"><?php </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $code </span><span style="color: #007700">= </span><span style="color: #0000BB">$v</span><span style="color: #007700">[</span><span style="color: #DD0000">'Video'</span><span style="color: #007700">][</span><span style="color: #DD0000">'code'</span><span style="color: #007700">]; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_feed </span><span style="color: #007700">= </span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://www.googleapis.com/youtube/v3/videos?part=snippet&id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$code</span><span style="color: #007700">.</span><span style="color: #DD0000">"&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8"</span><span style="color: #007700">); </span></span></code></span></pre><pre id="cakeErr6766afdf88311-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf8872b-trace').style.display = (document.getElementById('cakeErr6766afdf8872b-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Trying to get property 'items' of non-object [<b>APP/View/Pages/videos.ctp</b>, line <b>109</b>]<div id="cakeErr6766afdf8872b-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf8872b-code').style.display = (document.getElementById('cakeErr6766afdf8872b-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf8872b-context').style.display = (document.getElementById('cakeErr6766afdf8872b-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdf8872b-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB"> $video_feed </span><span style="color: #007700">= </span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://www.googleapis.com/youtube/v3/videos?part=snippet&id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$code</span><span style="color: #007700">.</span><span style="color: #DD0000">"&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8"</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">json_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">$video_feed</span><span style="color: #007700">); </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">items</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]-></span><span style="color: #0000BB">snippet</span><span style="color: #007700">; </span></span></code></span></pre><pre id="cakeErr6766afdf8872b-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88944-trace').style.display = (document.getElementById('cakeErr6766afdf88944-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Trying to get property 'snippet' of non-object [<b>APP/View/Pages/videos.ctp</b>, line <b>109</b>]<div id="cakeErr6766afdf88944-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88944-code').style.display = (document.getElementById('cakeErr6766afdf88944-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88944-context').style.display = (document.getElementById('cakeErr6766afdf88944-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdf88944-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB"> $video_feed </span><span style="color: #007700">= </span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://www.googleapis.com/youtube/v3/videos?part=snippet&id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$code</span><span style="color: #007700">.</span><span style="color: #DD0000">"&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8"</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">json_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">$video_feed</span><span style="color: #007700">); </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">items</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]-></span><span style="color: #0000BB">snippet</span><span style="color: #007700">; </span></span></code></span></pre><pre id="cakeErr6766afdf88944-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88b53-trace').style.display = (document.getElementById('cakeErr6766afdf88b53-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Trying to get property 'title' of non-object [<b>APP/View/Pages/videos.ctp</b>, line <b>110</b>]<div id="cakeErr6766afdf88b53-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88b53-code').style.display = (document.getElementById('cakeErr6766afdf88b53-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88b53-context').style.display = (document.getElementById('cakeErr6766afdf88b53-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdf88b53-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">json_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">$video_feed</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">items</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]-></span><span style="color: #0000BB">snippet</span><span style="color: #007700">; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_str </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">title</span><span style="color: #007700">; </span></span></code></span></pre><pre id="cakeErr6766afdf88b53-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre> <a href="#" role="button" data-code="ipTnnckI2vw" class="vidthum"><img width="240" src="http://img.youtube.com/vi/ipTnnckI2vw/hqdefault.jpg"> <div class="title"> <span class="title_text"></span> </div></a> </li> <li data-hotel="2" id="v_2"> <pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa74e8-trace').style.display = (document.getElementById('cakeErr6766afdfa74e8-trace').style.display == 'none' ? '' : 'none');"><b>Warning</b> (2)</a>: file_get_contents(https://www.googleapis.com/youtube/v3/videos?part=snippet&amp;id=DMgtD-HFeaA&amp;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 [<b>APP/View/Pages/videos.ctp</b>, line <b>107</b>]<div id="cakeErr6766afdfa74e8-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa74e8-code').style.display = (document.getElementById('cakeErr6766afdfa74e8-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa74e8-context').style.display = (document.getElementById('cakeErr6766afdfa74e8-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdfa74e8-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"> <span style="color: #0000BB"><?php </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $code </span><span style="color: #007700">= </span><span style="color: #0000BB">$v</span><span style="color: #007700">[</span><span style="color: #DD0000">'Video'</span><span style="color: #007700">][</span><span style="color: #DD0000">'code'</span><span style="color: #007700">]; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_feed </span><span style="color: #007700">= </span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://www.googleapis.com/youtube/v3/videos?part=snippet&id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$code</span><span style="color: #007700">.</span><span style="color: #DD0000">"&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8"</span><span style="color: #007700">); </span></span></code></span></pre><pre id="cakeErr6766afdfa74e8-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7722-trace').style.display = (document.getElementById('cakeErr6766afdfa7722-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Trying to get property 'items' of non-object [<b>APP/View/Pages/videos.ctp</b>, line <b>109</b>]<div id="cakeErr6766afdfa7722-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7722-code').style.display = (document.getElementById('cakeErr6766afdfa7722-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7722-context').style.display = (document.getElementById('cakeErr6766afdfa7722-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdfa7722-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB"> $video_feed </span><span style="color: #007700">= </span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://www.googleapis.com/youtube/v3/videos?part=snippet&id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$code</span><span style="color: #007700">.</span><span style="color: #DD0000">"&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8"</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">json_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">$video_feed</span><span style="color: #007700">); </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">items</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]-></span><span style="color: #0000BB">snippet</span><span style="color: #007700">; </span></span></code></span></pre><pre id="cakeErr6766afdfa7722-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7926-trace').style.display = (document.getElementById('cakeErr6766afdfa7926-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Trying to get property 'snippet' of non-object [<b>APP/View/Pages/videos.ctp</b>, line <b>109</b>]<div id="cakeErr6766afdfa7926-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7926-code').style.display = (document.getElementById('cakeErr6766afdfa7926-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7926-context').style.display = (document.getElementById('cakeErr6766afdfa7926-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdfa7926-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB"> $video_feed </span><span style="color: #007700">= </span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://www.googleapis.com/youtube/v3/videos?part=snippet&id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$code</span><span style="color: #007700">.</span><span style="color: #DD0000">"&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8"</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">json_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">$video_feed</span><span style="color: #007700">); </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">items</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]-></span><span style="color: #0000BB">snippet</span><span style="color: #007700">; </span></span></code></span></pre><pre id="cakeErr6766afdfa7926-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7b16-trace').style.display = (document.getElementById('cakeErr6766afdfa7b16-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Trying to get property 'title' of non-object [<b>APP/View/Pages/videos.ctp</b>, line <b>110</b>]<div id="cakeErr6766afdfa7b16-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7b16-code').style.display = (document.getElementById('cakeErr6766afdfa7b16-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7b16-context').style.display = (document.getElementById('cakeErr6766afdfa7b16-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdfa7b16-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">json_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">$video_feed</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">items</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]-></span><span style="color: #0000BB">snippet</span><span style="color: #007700">; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_str </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">title</span><span style="color: #007700">; </span></span></code></span></pre><pre id="cakeErr6766afdfa7b16-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre> <a href="#" role="button" data-code="DMgtD-HFeaA" class="vidthum"><img width="240" src="http://img.youtube.com/vi/DMgtD-HFeaA/hqdefault.jpg"> <div class="title"> <span class="title_text"></span> </div></a> </li> </ul> </div> </div> </div> </div> <div class="clearfix"> </div> <div class="clearfix"> </div> <div id="modal_video" class="modal hide fade" style="z-index: 100000; position:fixed;left: 50%; transform: translateX(-50%);"> <iframe id="player" width="853" height="480" src="https://www.youtube.com/embed/DMgtD-HFeaA?version=3&enablejsapi=1" frameborder="0" allowfullscreen></iframe> </div> ', 'scripts_for_layout' => '<link rel="stylesheet" type="text/css" href="/skins/tango/skin.css"/><link rel="stylesheet" type="text/css" href="/css/jquery.lightbox-0.5.css"/><script type="text/javascript" src="/js/jquery.jcarousel.js"></script><script type="text/javascript" src="/js/jquery.lightbox-0.5.js"></script><script type="text/javascript"> //<![CDATA[ jQuery(document).ready(function() { jQuery('#mycarousel').jcarousel({ scroll: 1, }); $("#filtreHotel").change(function(){ var hotel_id = $(this).val(); if(hotel_id==0){ $("ul#mycarousel li").show(); }else{ $("ul#mycarousel li").each(function(i,ele){ if($(ele).attr('data-hotel')!=hotel_id){ $(ele).hide(); } else{ $(ele).show(); } }) } }); $("a.vidthum").on('click',function(e){ var videocode = $(this).attr('data-code'); var iframe = '<iframe id="player" width="853" height="480" src="https://www.youtube.com/embed/'+videocode+'?version=3&enablejsapi=1" frameborder="0" allowfullscreen></iframe> '; $("#modal_video").html(iframe); $("#modal_video").modal('show'); e.preventDefault(); }) $('#modal_video').on('hidden', function () { $("#modal_video").html(''); }) }); //]]> </script>' ) $description_for_layout = '' $title_for_layout = ' Our videos | La sultana Marrakech & La sulana Oualidia - Morocco ' $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 ) ) ) $content_for_layout = ' <div class="pageContent"> <div class="row"> <div class="span2 leftSide"> <div style="padding-top:3px;" > <span style="font-size: 16px; font-family: ArquitectaLight;margin-bottom: 10px; display: block;">PRESS ROOM</span> <ul class="pressRoom"> <li > <a href="/releases">Releases </a></li> <li ><a href="/publications">Publications</a></li> <li > <a href="/galeries">Photo library</a></li> <li ><a href="/brochures">e-Brochures</a></li> <li class="active"><a href="/videos">Video</a></li> </ul> </div> <div style="padding-top:30px; line-height:15px;"> <span class="smallTitre" style="margin-bottom: 11px; display: block;font-family: ArquitectaLight; font-size: 16px;text-transform: uppercase;"> Press Contact : </span> <span class="smallTitre"><a href="mailto:rp@lasultanahotels.com">rp@lasultanahotels.com</a> </span> <br><br> <span class="smallTitre" style="display:block;padding-bottom:2px;"> Paul Charles,<br>The Agency PC </span> <span class="smallTitre" ><a href="mailto:lasultana@pc.agency">lasultana@pc.agency</a> </span> <br> <span class="smallTitre">+44 207 768 0001 </span> <br><br> </div> </div> <style type="text/css"> a.vidthum{ position: relative; width: 240px; height: 180px; display: block; } a.vidthum div.title{ color: white; position: absolute; top: 2px; width: 240px; height: 180px; background: url(img/youtube-icon.png) center no-repeat; } a.vidthum div.title span.title_text{ background-color: #000; display: block; padding-left:2px; } .jcarousel-skin-tango .jcarousel-item-horizontal img{ border:0px !important; } .jcarousel-skin-tango .jcarousel-item{ width:240px !important; } .modal{ width: 853px !important; } </style> <div class="rightSide"> <div class="row"> <div class="selectHotel"> <label>SELECT THE HOTEL</label> <select name="data[hotels_id]" id="filtreHotel"> <option value="0">All</option> <option value="1">La Sultana Marrakech</option> <option value="2">La Sultana Oualidia</option> </select> </div> <ul id="mycarousel" class="jcarousel-skin-tango"> <li data-hotel="1" id="v_1"> <pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88311-trace').style.display = (document.getElementById('cakeErr6766afdf88311-trace').style.display == 'none' ? '' : 'none');"><b>Warning</b> (2)</a>: file_get_contents(https://www.googleapis.com/youtube/v3/videos?part=snippet&amp;id=ipTnnckI2vw&amp;key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request [<b>APP/View/Pages/videos.ctp</b>, line <b>107</b>]<div id="cakeErr6766afdf88311-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88311-code').style.display = (document.getElementById('cakeErr6766afdf88311-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88311-context').style.display = (document.getElementById('cakeErr6766afdf88311-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdf88311-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"> <span style="color: #0000BB"><?php </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $code </span><span style="color: #007700">= </span><span style="color: #0000BB">$v</span><span style="color: #007700">[</span><span style="color: #DD0000">'Video'</span><span style="color: #007700">][</span><span style="color: #DD0000">'code'</span><span style="color: #007700">]; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_feed </span><span style="color: #007700">= </span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://www.googleapis.com/youtube/v3/videos?part=snippet&id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$code</span><span style="color: #007700">.</span><span style="color: #DD0000">"&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8"</span><span style="color: #007700">); </span></span></code></span></pre><pre id="cakeErr6766afdf88311-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf8872b-trace').style.display = (document.getElementById('cakeErr6766afdf8872b-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Trying to get property 'items' of non-object [<b>APP/View/Pages/videos.ctp</b>, line <b>109</b>]<div id="cakeErr6766afdf8872b-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf8872b-code').style.display = (document.getElementById('cakeErr6766afdf8872b-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf8872b-context').style.display = (document.getElementById('cakeErr6766afdf8872b-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdf8872b-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB"> $video_feed </span><span style="color: #007700">= </span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://www.googleapis.com/youtube/v3/videos?part=snippet&id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$code</span><span style="color: #007700">.</span><span style="color: #DD0000">"&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8"</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">json_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">$video_feed</span><span style="color: #007700">); </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">items</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]-></span><span style="color: #0000BB">snippet</span><span style="color: #007700">; </span></span></code></span></pre><pre id="cakeErr6766afdf8872b-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88944-trace').style.display = (document.getElementById('cakeErr6766afdf88944-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Trying to get property 'snippet' of non-object [<b>APP/View/Pages/videos.ctp</b>, line <b>109</b>]<div id="cakeErr6766afdf88944-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88944-code').style.display = (document.getElementById('cakeErr6766afdf88944-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88944-context').style.display = (document.getElementById('cakeErr6766afdf88944-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdf88944-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB"> $video_feed </span><span style="color: #007700">= </span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://www.googleapis.com/youtube/v3/videos?part=snippet&id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$code</span><span style="color: #007700">.</span><span style="color: #DD0000">"&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8"</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">json_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">$video_feed</span><span style="color: #007700">); </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">items</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]-></span><span style="color: #0000BB">snippet</span><span style="color: #007700">; </span></span></code></span></pre><pre id="cakeErr6766afdf88944-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88b53-trace').style.display = (document.getElementById('cakeErr6766afdf88b53-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Trying to get property 'title' of non-object [<b>APP/View/Pages/videos.ctp</b>, line <b>110</b>]<div id="cakeErr6766afdf88b53-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88b53-code').style.display = (document.getElementById('cakeErr6766afdf88b53-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdf88b53-context').style.display = (document.getElementById('cakeErr6766afdf88b53-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdf88b53-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">json_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">$video_feed</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">items</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]-></span><span style="color: #0000BB">snippet</span><span style="color: #007700">; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_str </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">title</span><span style="color: #007700">; </span></span></code></span></pre><pre id="cakeErr6766afdf88b53-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre> <a href="#" role="button" data-code="ipTnnckI2vw" class="vidthum"><img width="240" src="http://img.youtube.com/vi/ipTnnckI2vw/hqdefault.jpg"> <div class="title"> <span class="title_text"></span> </div></a> </li> <li data-hotel="2" id="v_2"> <pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa74e8-trace').style.display = (document.getElementById('cakeErr6766afdfa74e8-trace').style.display == 'none' ? '' : 'none');"><b>Warning</b> (2)</a>: file_get_contents(https://www.googleapis.com/youtube/v3/videos?part=snippet&amp;id=DMgtD-HFeaA&amp;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 [<b>APP/View/Pages/videos.ctp</b>, line <b>107</b>]<div id="cakeErr6766afdfa74e8-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa74e8-code').style.display = (document.getElementById('cakeErr6766afdfa74e8-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa74e8-context').style.display = (document.getElementById('cakeErr6766afdfa74e8-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdfa74e8-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"> <span style="color: #0000BB"><?php </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $code </span><span style="color: #007700">= </span><span style="color: #0000BB">$v</span><span style="color: #007700">[</span><span style="color: #DD0000">'Video'</span><span style="color: #007700">][</span><span style="color: #DD0000">'code'</span><span style="color: #007700">]; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_feed </span><span style="color: #007700">= </span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://www.googleapis.com/youtube/v3/videos?part=snippet&id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$code</span><span style="color: #007700">.</span><span style="color: #DD0000">"&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8"</span><span style="color: #007700">); </span></span></code></span></pre><pre id="cakeErr6766afdfa74e8-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7722-trace').style.display = (document.getElementById('cakeErr6766afdfa7722-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Trying to get property 'items' of non-object [<b>APP/View/Pages/videos.ctp</b>, line <b>109</b>]<div id="cakeErr6766afdfa7722-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7722-code').style.display = (document.getElementById('cakeErr6766afdfa7722-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7722-context').style.display = (document.getElementById('cakeErr6766afdfa7722-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdfa7722-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB"> $video_feed </span><span style="color: #007700">= </span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://www.googleapis.com/youtube/v3/videos?part=snippet&id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$code</span><span style="color: #007700">.</span><span style="color: #DD0000">"&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8"</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">json_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">$video_feed</span><span style="color: #007700">); </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">items</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]-></span><span style="color: #0000BB">snippet</span><span style="color: #007700">; </span></span></code></span></pre><pre id="cakeErr6766afdfa7722-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7926-trace').style.display = (document.getElementById('cakeErr6766afdfa7926-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Trying to get property 'snippet' of non-object [<b>APP/View/Pages/videos.ctp</b>, line <b>109</b>]<div id="cakeErr6766afdfa7926-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7926-code').style.display = (document.getElementById('cakeErr6766afdfa7926-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7926-context').style.display = (document.getElementById('cakeErr6766afdfa7926-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdfa7926-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB"> $video_feed </span><span style="color: #007700">= </span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://www.googleapis.com/youtube/v3/videos?part=snippet&id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$code</span><span style="color: #007700">.</span><span style="color: #DD0000">"&key=AIzaSyCZ2q51cEyOygealvJb_-A0DTtkb3vNWc8"</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">json_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">$video_feed</span><span style="color: #007700">); </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">items</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]-></span><span style="color: #0000BB">snippet</span><span style="color: #007700">; </span></span></code></span></pre><pre id="cakeErr6766afdfa7926-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre><pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7b16-trace').style.display = (document.getElementById('cakeErr6766afdfa7b16-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Trying to get property 'title' of non-object [<b>APP/View/Pages/videos.ctp</b>, line <b>110</b>]<div id="cakeErr6766afdfa7b16-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7b16-code').style.display = (document.getElementById('cakeErr6766afdfa7b16-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr6766afdfa7b16-context').style.display = (document.getElementById('cakeErr6766afdfa7b16-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr6766afdfa7b16-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">json_decode</span><span style="color: #007700">(</span><span style="color: #0000BB">$video_feed</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $video_obj </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">items</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]-></span><span style="color: #0000BB">snippet</span><span style="color: #007700">; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $video_str </span><span style="color: #007700">= </span><span style="color: #0000BB">$video_obj</span><span style="color: #007700">-></span><span style="color: #0000BB">title</span><span style="color: #007700">; </span></span></code></span></pre><pre id="cakeErr6766afdfa7b16-context" class="cake-context" style="display: none;">$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: Sat, 21 Dec 2024 12:09:04 GMT', (int) 5 => 'Server: scaffolding on HTTPServer2', (int) 6 => 'X-XSS-Protection: 0', (int) 7 => 'X-Frame-Options: SAMEORIGIN', (int) 8 => 'X-Content-Type-Options: nosniff', (int) 9 => 'Accept-Ranges: none', (int) 10 => 'Vary: Origin,Accept-Encoding', (int) 11 => 'Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' )</pre><pre class="stack-trace">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</pre></div></pre> <a href="#" role="button" data-code="DMgtD-HFeaA" class="vidthum"><img width="240" src="http://img.youtube.com/vi/DMgtD-HFeaA/hqdefault.jpg"> <div class="title"> <span class="title_text"></span> </div></a> </li> </ul> </div> </div> </div> </div> <div class="clearfix"> </div> <div class="clearfix"> </div> <div id="modal_video" class="modal hide fade" style="z-index: 100000; position:fixed;left: 50%; transform: translateX(-50%);"> <iframe id="player" width="853" height="480" src="https://www.youtube.com/embed/DMgtD-HFeaA?version=3&enablejsapi=1" frameborder="0" allowfullscreen></iframe> </div> ' $scripts_for_layout = '<link rel="stylesheet" type="text/css" href="/skins/tango/skin.css"/><link rel="stylesheet" type="text/css" href="/css/jquery.lightbox-0.5.css"/><script type="text/javascript" src="/js/jquery.jcarousel.js"></script><script type="text/javascript" src="/js/jquery.lightbox-0.5.js"></script><script type="text/javascript"> //<![CDATA[ jQuery(document).ready(function() { jQuery('#mycarousel').jcarousel({ scroll: 1, }); $("#filtreHotel").change(function(){ var hotel_id = $(this).val(); if(hotel_id==0){ $("ul#mycarousel li").show(); }else{ $("ul#mycarousel li").each(function(i,ele){ if($(ele).attr('data-hotel')!=hotel_id){ $(ele).hide(); } else{ $(ele).show(); } }) } }); $("a.vidthum").on('click',function(e){ var videocode = $(this).attr('data-code'); var iframe = '<iframe id="player" width="853" height="480" src="https://www.youtube.com/embed/'+videocode+'?version=3&enablejsapi=1" frameborder="0" allowfullscreen></iframe> '; $("#modal_video").html(iframe); $("#modal_video").modal('show'); e.preventDefault(); }) $('#modal_video').on('hidden', function () { $("#modal_video").html(''); }) }); //]]> </script>' $logo = 'logo.png' $linkfr = '' $linken = 'active'include - APP/View/Layouts/default.ctp, line 170 View::_evaluate() - CORE/Cake/View/View.php, line 971 View::_render() - CORE/Cake/View/View.php, line 933 View::renderLayout() - CORE/Cake/View/View.php, line 546 View::render() - CORE/Cake/View/View.php, line 481 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
Vaccine passport : Vaccine certificate grants free circulation beyond curfew hours. All passengers, upon their arrival at a Moroccan airport, are required to present the duly completed " “Health Passenger Form” you can download here.
Status : State of emergency until August 10th 2021. Curfew from 11pm until 4.30am.
Tel: +212 5 24 38 80 08 - WhatsApp: +212 6 62 04 01 17 - reservation@lasultanahotels.com
Information provided above are for general informational purposes only and can quickly evolve.
Our team or your travel agent are able to guide you at the planning stage and again closer to your departure date for up to date information.