Click to enlarge image
Notice (8): getimagesize(): Read error! [APP/View/Helper/ImageHelper.php, line 53]Code Context
if (file_exists($cachefile)) {
$csize = getimagesize($cachefile);
$path = '/products/2175.jpg'
$width = (int) 231
$height = (int) 231
$aspect = true
$htmlAttributes = array(
'style' => ''
)
$return = false
$outofdomain = false
$crop = true
$fullpath = '/var/www/vhosts/ppgrefinishdistribution.co.uk/httpdocs/app/webroot/img/'
$url = '/var/www/vhosts/ppgrefinishdistribution.co.uk/httpdocs/app/webroot/img//products/2175.jpg'
$size = array(
(int) 0 => (int) 1195,
(int) 1 => (int) 1194,
(int) 2 => (int) 3,
(int) 3 => 'width="1195" height="1194"',
'bits' => (int) 8,
'mime' => 'image/png'
)
$relfile = '/img/imagecache/231x231_2175.jpg'
$cachefile = '/var/www/vhosts/ppgrefinishdistribution.co.uk/httpdocs/app/webroot/img/imagecache/231x231_2175.jpg'
getimagesize - [internal], line ??
ImageHelper::resize() - APP/View/Helper/ImageHelper.php, line 53
include - APP/View/Products/viewbyslug.ctp, line 250
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 92
Notice (8): Trying to access array offset on value of type bool [APP/View/Helper/ImageHelper.php, line 54]Code Context if (file_exists($cachefile)) {
$csize = getimagesize($cachefile);
$cached = ($csize[0] == $width && $csize[1] == $height); // image is cached
$path = '/products/2175.jpg'
$width = (int) 231
$height = (int) 231
$aspect = true
$htmlAttributes = array(
'style' => ''
)
$return = false
$outofdomain = false
$crop = true
$fullpath = '/var/www/vhosts/ppgrefinishdistribution.co.uk/httpdocs/app/webroot/img/'
$url = '/var/www/vhosts/ppgrefinishdistribution.co.uk/httpdocs/app/webroot/img//products/2175.jpg'
$size = array(
(int) 0 => (int) 1195,
(int) 1 => (int) 1194,
(int) 2 => (int) 3,
(int) 3 => 'width="1195" height="1194"',
'bits' => (int) 8,
'mime' => 'image/png'
)
$relfile = '/img/imagecache/231x231_2175.jpg'
$cachefile = '/var/www/vhosts/ppgrefinishdistribution.co.uk/httpdocs/app/webroot/img/imagecache/231x231_2175.jpg'
$csize = false
ImageHelper::resize() - APP/View/Helper/ImageHelper.php, line 54
include - APP/View/Products/viewbyslug.ctp, line 250
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 92
Warning (2): imagepng() [<a href='http://php.net/function.imagepng'>function.imagepng</a>]: gd-png error: compression level must be 0 through 9 [APP/View/Helper/ImageHelper.php, line 98]Code Context }
call_user_func("image".$types[$size[2]], $temp, $cachefile, 99);
$path = '/products/2175.jpg'
$width = (float) 231
$height = (int) 231
$aspect = true
$htmlAttributes = array(
'style' => ''
)
$return = false
$outofdomain = false
$crop = true
$fullpath = '/var/www/vhosts/ppgrefinishdistribution.co.uk/httpdocs/app/webroot/img/'
$url = '/var/www/vhosts/ppgrefinishdistribution.co.uk/httpdocs/app/webroot/img//products/2175.jpg'
$size = array(
(int) 0 => (int) 1195,
(int) 1 => (int) 1194,
(int) 2 => (int) 3,
(int) 3 => 'width="1195" height="1194"',
'bits' => (int) 8,
'mime' => 'image/png'
)
$relfile = '/img/imagecache/231x231_2175.jpg'
$cachefile = '/var/www/vhosts/ppgrefinishdistribution.co.uk/httpdocs/app/webroot/img/imagecache/231x231_2175.jpg'
$csize = false
$cached = false
$resize = true
$image = resource
$temp = resource
$xx = (float) 0
$yy = (int) 0
$o_width = (int) 231
imagepng - [internal], line ??
ImageHelper::resize() - APP/View/Helper/ImageHelper.php, line 98
include - APP/View/Products/viewbyslug.ctp, line 250
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 92