Notice (8): Undefined index: Media [APP/Controller/MediaController.php, line 108]Code Context $this->set(compact('width','height','crop','quality'));
switch($this->data['Media']['file_type']) {
$id = '0fa17cfd3073e216d28cb60cfdc8418754e716a9604ee3.30868102'
$width = '697'
$height = '300'
$crop = '1'
$quality = (int) 70
MediaController::preview() - APP/Controller/MediaController.php, line 108
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 108
Notice (8): Undefined index: Media [APP/View/Media/preview.ctp, line 8]Code Context }
$cache = WWW_ROOT."cache/".$this->data['Media']['token'].".".$width."x".$height.".".$crop.".".$quality;
$viewFile = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/View/Media/preview.ctp'
$dataForView = array(
'width' => '697',
'height' => '300',
'crop' => '1',
'quality' => (int) 70,
'isAdd' => false,
'isEdit' => false,
'isView' => false,
'isIndex' => false,
'rules' => array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
),
'template_url' => '/themes/laiterie-de-montbovon',
'device' => 'desktop',
'description' => '',
'menu' => array(
(int) 0 => 'sep'
),
'quickLinks' => array()
)
$width = '697'
$height = '300'
$crop = '1'
$quality = (int) 70
$isAdd = false
$isEdit = false
$isView = false
$isIndex = false
$rules = array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
)
$template_url = '/themes/laiterie-de-montbovon'
$device = 'desktop'
$description = ''
$menu = array(
(int) 0 => 'sep'
)
$quickLinks = array()
include - APP/View/Media/preview.ctp, line 8
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 108
Notice (8): Undefined index: Media [APP/View/Media/preview.ctp, line 12]Code Context echo file_get_contents($cache);
} else {
$file_url = WWW_ROOT."files/".$this->data['Media']['token'];
$viewFile = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/View/Media/preview.ctp'
$dataForView = array(
'width' => '697',
'height' => '300',
'crop' => '1',
'quality' => (int) 70,
'isAdd' => false,
'isEdit' => false,
'isView' => false,
'isIndex' => false,
'rules' => array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
),
'template_url' => '/themes/laiterie-de-montbovon',
'device' => 'desktop',
'description' => '',
'menu' => array(
(int) 0 => 'sep'
),
'quickLinks' => array()
)
$width = '697'
$height = '300'
$crop = '1'
$quality = (int) 70
$isAdd = false
$isEdit = false
$isView = false
$isIndex = false
$rules = array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
)
$template_url = '/themes/laiterie-de-montbovon'
$device = 'desktop'
$description = ''
$menu = array(
(int) 0 => 'sep'
)
$quickLinks = array()
$cache = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/cache/.697x300.1.70'
include - APP/View/Media/preview.ctp, line 12
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 108
Warning (2): finfo_file(/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/files/placeholder.png) [function.finfo-file]: failed to open stream: No such file or directory [APP/View/Media/preview.ctp, line 19]Code Context
$finfo = finfo_open(FILEINFO_MIME_TYPE);
$mime = finfo_file($finfo,$file_url);
$viewFile = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/View/Media/preview.ctp'
$dataForView = array(
'width' => '697',
'height' => '300',
'crop' => '1',
'quality' => (int) 70,
'isAdd' => false,
'isEdit' => false,
'isView' => false,
'isIndex' => false,
'rules' => array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
),
'template_url' => '/themes/laiterie-de-montbovon',
'device' => 'desktop',
'description' => '',
'menu' => array(
(int) 0 => 'sep'
),
'quickLinks' => array()
)
$width = '697'
$height = '300'
$crop = '1'
$quality = (int) 70
$isAdd = false
$isEdit = false
$isView = false
$isIndex = false
$rules = array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
)
$template_url = '/themes/laiterie-de-montbovon'
$device = 'desktop'
$description = ''
$menu = array(
(int) 0 => 'sep'
)
$quickLinks = array()
$cache = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/cache/.697x300.1.70'
$file_url = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/files/placeholder.png'
$finfo = resource
finfo_file - [internal], line ??
include - APP/View/Media/preview.ctp, line 19
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 108
Warning (2): getimagesize(/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/files/placeholder.png) [function.getimagesize]: failed to open stream: No such file or directory [APP/View/Media/preview.ctp, line 31]Code Context
$size = getimagesize($file_url);
$viewFile = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/View/Media/preview.ctp'
$dataForView = array(
'width' => '697',
'height' => '300',
'crop' => '1',
'quality' => (int) 70,
'isAdd' => false,
'isEdit' => false,
'isView' => false,
'isIndex' => false,
'rules' => array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
),
'template_url' => '/themes/laiterie-de-montbovon',
'device' => 'desktop',
'description' => '',
'menu' => array(
(int) 0 => 'sep'
),
'quickLinks' => array()
)
$width = '697'
$height = '300'
$crop = '1'
$quality = (int) 70
$isAdd = false
$isEdit = false
$isView = false
$isIndex = false
$rules = array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
)
$template_url = '/themes/laiterie-de-montbovon'
$device = 'desktop'
$description = ''
$menu = array(
(int) 0 => 'sep'
)
$quickLinks = array()
$cache = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/cache/.697x300.1.70'
$file_url = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/files/placeholder.png'
$finfo = resource
$mime = false
getimagesize - [internal], line ??
include - APP/View/Media/preview.ctp, line 31
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 108
Warning (2): Division by zero [APP/View/Media/preview.ctp, line 32]Code Context
$size = getimagesize($file_url);
$iratio = $size[0]/$size[1];
$viewFile = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/View/Media/preview.ctp'
$dataForView = array(
'width' => '697',
'height' => '300',
'crop' => '1',
'quality' => (int) 70,
'isAdd' => false,
'isEdit' => false,
'isView' => false,
'isIndex' => false,
'rules' => array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
),
'template_url' => '/themes/laiterie-de-montbovon',
'device' => 'desktop',
'description' => '',
'menu' => array(
(int) 0 => 'sep'
),
'quickLinks' => array()
)
$width = '697'
$height = '300'
$crop = '1'
$quality = (int) 70
$isAdd = false
$isEdit = false
$isView = false
$isIndex = false
$rules = array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
)
$template_url = '/themes/laiterie-de-montbovon'
$device = 'desktop'
$description = ''
$menu = array(
(int) 0 => 'sep'
)
$quickLinks = array()
$cache = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/cache/.697x300.1.70'
$file_url = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/files/placeholder.png'
$finfo = resource
$mime = false
$size = false
include - APP/View/Media/preview.ctp, line 32
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 108
Warning (2): Division by zero [APP/View/Media/preview.ctp, line 43]Code Context if(isset($crop) && $crop=true) {
$outputImageWidth = ($iratio<$oratio) ? $outputWidth : $outputHeight*$iratio;
$outputImageHeight = ($iratio<$oratio) ? $outputWidth/$iratio : $outputHeight;
$viewFile = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/View/Media/preview.ctp'
$dataForView = array(
'width' => '697',
'height' => '300',
'crop' => '1',
'quality' => (int) 70,
'isAdd' => false,
'isEdit' => false,
'isView' => false,
'isIndex' => false,
'rules' => array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
),
'template_url' => '/themes/laiterie-de-montbovon',
'device' => 'desktop',
'description' => '',
'menu' => array(
(int) 0 => 'sep'
),
'quickLinks' => array()
)
$width = '697'
$height = '300'
$crop = true
$quality = (int) 70
$isAdd = false
$isEdit = false
$isView = false
$isIndex = false
$rules = array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
)
$template_url = '/themes/laiterie-de-montbovon'
$device = 'desktop'
$description = ''
$menu = array(
(int) 0 => 'sep'
)
$quickLinks = array()
$cache = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/cache/.697x300.1.70'
$file_url = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/files/placeholder.png'
$finfo = resource
$mime = false
$size = false
$iratio = false
$outputWidth = '697'
$outputHeight = '300'
$oratio = (float) 2.3233333333333
$outputImageWidth = '697'
include - APP/View/Media/preview.ctp, line 43
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 108
Notice (8): Undefined variable: image [APP/View/Media/preview.ctp, line 77]Code Context
imagecopyresampled($nimg,$image,(($outputWidth-$outputImageWidth)/2),(($outputHeight-$outputImageHeight)/2),0,0,$outputImageWidth,$outputImageHeight,$size[0],$size[1]);
$viewFile = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/View/Media/preview.ctp'
$dataForView = array(
'width' => '697',
'height' => '300',
'crop' => '1',
'quality' => (int) 70,
'isAdd' => false,
'isEdit' => false,
'isView' => false,
'isIndex' => false,
'rules' => array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
),
'template_url' => '/themes/laiterie-de-montbovon',
'device' => 'desktop',
'description' => '',
'menu' => array(
(int) 0 => 'sep'
),
'quickLinks' => array()
)
$width = '697'
$height = '300'
$crop = true
$quality = (int) 70
$isAdd = false
$isEdit = false
$isView = false
$isIndex = false
$rules = array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
)
$template_url = '/themes/laiterie-de-montbovon'
$device = 'desktop'
$description = ''
$menu = array(
(int) 0 => 'sep'
)
$quickLinks = array()
$cache = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/cache/.697x300.1.70'
$file_url = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/files/placeholder.png'
$finfo = resource
$mime = false
$size = false
$iratio = false
$outputWidth = (float) 697
$outputHeight = (float) 300
$oratio = (float) 2.3233333333333
$outputImageWidth = '697'
$outputImageHeight = false
$nimg = resource
$black = (int) 0
$col = (int) 2147483647
include - APP/View/Media/preview.ctp, line 77
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 108
Warning (2): imagecopyresampled() expects parameter 2 to be resource, null given [APP/View/Media/preview.ctp, line 77]Code Context
imagecopyresampled($nimg,$image,(($outputWidth-$outputImageWidth)/2),(($outputHeight-$outputImageHeight)/2),0,0,$outputImageWidth,$outputImageHeight,$size[0],$size[1]);
$viewFile = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/View/Media/preview.ctp'
$dataForView = array(
'width' => '697',
'height' => '300',
'crop' => '1',
'quality' => (int) 70,
'isAdd' => false,
'isEdit' => false,
'isView' => false,
'isIndex' => false,
'rules' => array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
),
'template_url' => '/themes/laiterie-de-montbovon',
'device' => 'desktop',
'description' => '',
'menu' => array(
(int) 0 => 'sep'
),
'quickLinks' => array()
)
$width = '697'
$height = '300'
$crop = true
$quality = (int) 70
$isAdd = false
$isEdit = false
$isView = false
$isIndex = false
$rules = array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
)
$template_url = '/themes/laiterie-de-montbovon'
$device = 'desktop'
$description = ''
$menu = array(
(int) 0 => 'sep'
)
$quickLinks = array()
$cache = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/cache/.697x300.1.70'
$file_url = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/files/placeholder.png'
$finfo = resource
$mime = false
$size = false
$iratio = false
$outputWidth = (float) 697
$outputHeight = (float) 300
$oratio = (float) 2.3233333333333
$outputImageWidth = '697'
$outputImageHeight = false
$nimg = resource
$black = (int) 0
$col = (int) 2147483647
imagecopyresampled - [internal], line ??
include - APP/View/Media/preview.ctp, line 77
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 108
Notice (8): Undefined index: Media [APP/View/Media/preview.ctp, line 82]Code Context
//imagejpeg($nimg,NULL,$quality);
switch($this->data['Media']['file_type']) {
$viewFile = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/View/Media/preview.ctp'
$dataForView = array(
'width' => '697',
'height' => '300',
'crop' => '1',
'quality' => (int) 70,
'isAdd' => false,
'isEdit' => false,
'isView' => false,
'isIndex' => false,
'rules' => array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
),
'template_url' => '/themes/laiterie-de-montbovon',
'device' => 'desktop',
'description' => '',
'menu' => array(
(int) 0 => 'sep'
),
'quickLinks' => array()
)
$width = '697'
$height = '300'
$crop = true
$quality = (int) 70
$isAdd = false
$isEdit = false
$isView = false
$isIndex = false
$rules = array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
)
$template_url = '/themes/laiterie-de-montbovon'
$device = 'desktop'
$description = ''
$menu = array(
(int) 0 => 'sep'
)
$quickLinks = array()
$cache = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/cache/.697x300.1.70'
$file_url = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/files/placeholder.png'
$finfo = resource
$mime = false
$size = false
$iratio = false
$outputWidth = (float) 697
$outputHeight = (float) 300
$oratio = (float) 2.3233333333333
$outputImageWidth = '697'
$outputImageHeight = false
$nimg = resource
$black = (int) 0
$col = (int) 2147483647
include - APP/View/Media/preview.ctp, line 82
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 108
Warning (2): file_get_contents(/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/cache/.697x300.1.70) [function.file-get-contents]: failed to open stream: No such file or directory [APP/View/Media/preview.ctp, line 86]Code Context case "image/jpeg": imagejpeg($nimg, $cache, $quality); break;
}
echo file_get_contents($cache);
$viewFile = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/View/Media/preview.ctp'
$dataForView = array(
'width' => '697',
'height' => '300',
'crop' => '1',
'quality' => (int) 70,
'isAdd' => false,
'isEdit' => false,
'isView' => false,
'isIndex' => false,
'rules' => array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
),
'template_url' => '/themes/laiterie-de-montbovon',
'device' => 'desktop',
'description' => '',
'menu' => array(
(int) 0 => 'sep'
),
'quickLinks' => array()
)
$width = '697'
$height = '300'
$crop = true
$quality = (int) 70
$isAdd = false
$isEdit = false
$isView = false
$isIndex = false
$rules = array(
(int) 0 => 'media/preview',
(int) 1 => 'menus/build',
(int) 2 => 'pages/home',
(int) 3 => 'posts/display',
(int) 4 => 'posts/home_page',
(int) 5 => 'posts/view',
(int) 6 => 'users/login',
(int) 7 => 'users/logout',
(int) 8 => 'admin',
(int) 9 => 'Users/logout',
(int) 10 => 'Users/login',
(int) 11 => 'Menus/sitemap',
(int) 12 => 'Seo/robots',
(int) 13 => 'Forms/send',
(int) 14 => 'Posts/home_page',
(int) 15 => 'Posts/display',
(int) 16 => 'Media/preview',
(int) 17 => 'Media/p'
)
$template_url = '/themes/laiterie-de-montbovon'
$device = 'desktop'
$description = ''
$menu = array(
(int) 0 => 'sep'
)
$quickLinks = array()
$cache = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/cache/.697x300.1.70'
$file_url = '/home/clients/ee0b6fb8200151e8a0eec79431e728ec/web/app/webroot/files/placeholder.png'
$finfo = resource
$mime = false
$size = false
$iratio = false
$outputWidth = (float) 697
$outputHeight = (float) 300
$oratio = (float) 2.3233333333333
$outputImageWidth = '697'
$outputImageHeight = false
$nimg = resource
$black = (int) 0
$col = (int) 2147483647
file_get_contents - [internal], line ??
include - APP/View/Media/preview.ctp, line 86
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 108