Warning (2): imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x47 0x49 [APP/Controller/ImageController.php, line 15]Code Context $photo = imagecreatefromjpeg("../tmp/photos/{$id}t{$nw}.jpg");
} else {
$source = imagecreatefromjpeg("../tmp/photos/{$id}t.jpg");
$id = '188'
$nw = '100'
imagecreatefromjpeg - [internal], line ??
ImageController::photo() - APP/Controller/ImageController.php, line 15
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
Warning (2): imagecreatefromjpeg() [<a href='http://php.net/function.imagecreatefromjpeg'>function.imagecreatefromjpeg</a>]: '../tmp/photos/188t.jpg' is not a valid JPEG file [APP/Controller/ImageController.php, line 15]Code Context $photo = imagecreatefromjpeg("../tmp/photos/{$id}t{$nw}.jpg");
} else {
$source = imagecreatefromjpeg("../tmp/photos/{$id}t.jpg");
$id = '188'
$nw = '100'
imagecreatefromjpeg - [internal], line ??
ImageController::photo() - APP/Controller/ImageController.php, line 15
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
Warning (2): imagesx() expects parameter 1 to be resource, bool given [APP/Controller/ImageController.php, line 16]Code Context } else {
$source = imagecreatefromjpeg("../tmp/photos/{$id}t.jpg");
$w = imagesx($source);
$id = '188'
$nw = '100'
$source = false
$w = null
imagesx - [internal], line ??
ImageController::photo() - APP/Controller/ImageController.php, line 16
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
Warning (2): imagesy() expects parameter 1 to be resource, bool given [APP/Controller/ImageController.php, line 17]Code Context $source = imagecreatefromjpeg("../tmp/photos/{$id}t.jpg");
$w = imagesx($source);
$h = imagesy($source);
$id = '188'
$nw = '100'
$source = false
$w = null
$h = null
imagesy - [internal], line ??
ImageController::photo() - APP/Controller/ImageController.php, line 17
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
Warning (2): Division by zero [APP/Controller/ImageController.php, line 18]Code Context $w = imagesx($source);
$h = imagesy($source);
$nh = $h * $nw / $w;
$id = '188'
$nw = '100'
$source = false
$w = null
$h = null
ImageController::photo() - APP/Controller/ImageController.php, line 18
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
Warning (2): imagecreatetruecolor() expects parameter 2 to be int, float given [APP/Controller/ImageController.php, line 19]Code Context $h = imagesy($source);
$nh = $h * $nw / $w;
$photo = imagecreatetruecolor($nw, $nh);
$id = '188'
$nw = '100'
$source = false
$w = null
$h = null
$nh = (float) NAN
imagecreatetruecolor - [internal], line ??
ImageController::photo() - APP/Controller/ImageController.php, line 19
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
Warning (2): imagecopyresampled() expects parameter 1 to be resource, null given [APP/Controller/ImageController.php, line 20]Code Context $nh = $h * $nw / $w;
$photo = imagecreatetruecolor($nw, $nh);
imagecopyresampled($photo, $source, 0, 0, 0, 0, $nw, $nh, $w, $h);
$id = '188'
$nw = '100'
$photo = null
$source = false
$w = null
$h = null
$nh = (float) NAN
imagecopyresampled - [internal], line ??
ImageController::photo() - APP/Controller/ImageController.php, line 20
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
Warning (2): imagejpeg() expects parameter 1 to be resource, null given [APP/Controller/ImageController.php, line 23]Code Context $uploaddir = "../tmp/photos/";
$uploadfile = $uploaddir . $id . "t{$nw}.jpg";
imagejpeg($photo, $uploadfile);
$id = '188'
$nw = '100'
$photo = null
$source = false
$w = null
$h = null
$nh = (float) NAN
$uploadfile = '../tmp/photos/188t100.jpg'
imagejpeg - [internal], line ??
ImageController::photo() - APP/Controller/ImageController.php, line 23
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
Warning (2): Cannot modify header information - headers already sent by (output started at /home/www-virtual/daigakushinbun.com/lib/Cake/Utility/Debugger.php:797) [APP/View/Image/photo.ctp, line 2]Code Context<?php
header("Content-type: ". image_type_to_mime_type(IMAGETYPE_JPEG));
$viewFile = '/home/www-virtual/daigakushinbun.com/app/View/Image/photo.ctp'
$dataForView = array(
'photo' => null
)
$photo = null
header - [internal], line ??
include - APP/View/Image/photo.ctp, line 2
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 968
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
Warning (2): imagejpeg() expects parameter 1 to be resource, null given [APP/View/Image/photo.ctp, line 3]Code Context<?php
header("Content-type: ". image_type_to_mime_type(IMAGETYPE_JPEG));
imagejpeg($photo);
$viewFile = '/home/www-virtual/daigakushinbun.com/app/View/Image/photo.ctp'
$dataForView = array(
'photo' => null
)
$photo = null
imagejpeg - [internal], line ??
include - APP/View/Image/photo.ctp, line 3
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 968
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107