Warning (2): imagecreatefrompng(/home/dimgroup/web/api.dim.vn/public_html/sys/app/webroot//img/logow.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory [APP/controllers/urlshort_controller.php, line 85]Code |
Context if (in_array($file_duoi, array("jpg", "jpeg"))){
// Adding watermarks to images using alpha channels
$stamp = imagecreatefrompng(DIR_ROOT.'/img/logow.png');
$id = "634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c.jpg"
$x1 = array(
"634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c",
"jpg"
)
$x = array(
"634546cf1fbb14c2a8abc986dba3da6e",
"DIM69_30092017_1715_e7d95c"
)
$file_type = "634546cf1fbb14c2a8abc986dba3da6e"
$file_code = "DIM69_30092017_1715_e7d95c"
$file_type_basic = "image/jpeg"
$file_duoi = "jpg"
$check = array(
"Erp_imagedata" => array(
"id" => "356",
"cat_img" => "1",
"name" => "2",
"code" => "DIM69_30092017_1715_e7d95c",
"link" => "/mem/69/file/DIM69_30092017_1715_e7d95c.jpg",
"thums" => "/mem/69/thumbs/DIM69_30092017_1715_e7d95c.jpg",
"size" => "50366",
"type" => "image/jpeg",
"format" => "jpg",
"id_pro" => null,
"id_pro_title" => null,
"created" => "2017-09-30 17:15:04",
"upload_by" => "69",
"clientip" => "116.97.181.183"
)
)
imagecreatefrompng - [internal], line ??
UrlshortController::urlshort2() - APP/controllers/urlshort_controller.php, line 85
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 86
Warning (2): imagesx() expects parameter 1 to be resource, boolean given [APP/controllers/urlshort_controller.php, line 90]Code |
Context $marge_right = 10;
$marge_bottom = 10;
$sx = imagesx($stamp);
$id = "634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c.jpg"
$x1 = array(
"634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c",
"jpg"
)
$x = array(
"634546cf1fbb14c2a8abc986dba3da6e",
"DIM69_30092017_1715_e7d95c"
)
$file_type = "634546cf1fbb14c2a8abc986dba3da6e"
$file_code = "DIM69_30092017_1715_e7d95c"
$file_type_basic = "image/jpeg"
$file_duoi = "jpg"
$check = array(
"Erp_imagedata" => array(
"id" => "356",
"cat_img" => "1",
"name" => "2",
"code" => "DIM69_30092017_1715_e7d95c",
"link" => "/mem/69/file/DIM69_30092017_1715_e7d95c.jpg",
"thums" => "/mem/69/thumbs/DIM69_30092017_1715_e7d95c.jpg",
"size" => "50366",
"type" => "image/jpeg",
"format" => "jpg",
"id_pro" => null,
"id_pro_title" => null,
"created" => "2017-09-30 17:15:04",
"upload_by" => "69",
"clientip" => "116.97.181.183"
)
)
$stamp = false
$im = resource
$marge_right = 10
$marge_bottom = 10
imagesx - [internal], line ??
UrlshortController::urlshort2() - APP/controllers/urlshort_controller.php, line 90
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 86
Warning (2): imagesy() expects parameter 1 to be resource, boolean given [APP/controllers/urlshort_controller.php, line 91]Code |
Context $marge_bottom = 10;
$sx = imagesx($stamp);
$sy = imagesy($stamp);
$id = "634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c.jpg"
$x1 = array(
"634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c",
"jpg"
)
$x = array(
"634546cf1fbb14c2a8abc986dba3da6e",
"DIM69_30092017_1715_e7d95c"
)
$file_type = "634546cf1fbb14c2a8abc986dba3da6e"
$file_code = "DIM69_30092017_1715_e7d95c"
$file_type_basic = "image/jpeg"
$file_duoi = "jpg"
$check = array(
"Erp_imagedata" => array(
"id" => "356",
"cat_img" => "1",
"name" => "2",
"code" => "DIM69_30092017_1715_e7d95c",
"link" => "/mem/69/file/DIM69_30092017_1715_e7d95c.jpg",
"thums" => "/mem/69/thumbs/DIM69_30092017_1715_e7d95c.jpg",
"size" => "50366",
"type" => "image/jpeg",
"format" => "jpg",
"id_pro" => null,
"id_pro_title" => null,
"created" => "2017-09-30 17:15:04",
"upload_by" => "69",
"clientip" => "116.97.181.183"
)
)
$stamp = false
$im = resource
$marge_right = 10
$marge_bottom = 10
$sx = null
imagesy - [internal], line ??
UrlshortController::urlshort2() - APP/controllers/urlshort_controller.php, line 91
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 86
Warning (2): imagesx() expects parameter 1 to be resource, boolean given [APP/controllers/urlshort_controller.php, line 96]Code |
Context // Copy the stamp image onto our photo using the margin offsets and the photo
// width to calculate positioning of the stamp.
imagecopy($im, $stamp, $sx1, $sy1, 0, 0, imagesx($stamp), imagesy($stamp));
$id = "634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c.jpg"
$x1 = array(
"634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c",
"jpg"
)
$x = array(
"634546cf1fbb14c2a8abc986dba3da6e",
"DIM69_30092017_1715_e7d95c"
)
$file_type = "634546cf1fbb14c2a8abc986dba3da6e"
$file_code = "DIM69_30092017_1715_e7d95c"
$file_type_basic = "image/jpeg"
$file_duoi = "jpg"
$check = array(
"Erp_imagedata" => array(
"id" => "356",
"cat_img" => "1",
"name" => "2",
"code" => "DIM69_30092017_1715_e7d95c",
"link" => "/mem/69/file/DIM69_30092017_1715_e7d95c.jpg",
"thums" => "/mem/69/thumbs/DIM69_30092017_1715_e7d95c.jpg",
"size" => "50366",
"type" => "image/jpeg",
"format" => "jpg",
"id_pro" => null,
"id_pro_title" => null,
"created" => "2017-09-30 17:15:04",
"upload_by" => "69",
"clientip" => "116.97.181.183"
)
)
$stamp = false
$im = resource
$marge_right = 10
$marge_bottom = 10
$sx = null
$sy = null
$sx1 = 270
$sy1 = 165
imagesx - [internal], line ??
UrlshortController::urlshort2() - APP/controllers/urlshort_controller.php, line 96
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 86
Warning (2): imagesy() expects parameter 1 to be resource, boolean given [APP/controllers/urlshort_controller.php, line 96]Code |
Context // Copy the stamp image onto our photo using the margin offsets and the photo
// width to calculate positioning of the stamp.
imagecopy($im, $stamp, $sx1, $sy1, 0, 0, imagesx($stamp), imagesy($stamp));
$id = "634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c.jpg"
$x1 = array(
"634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c",
"jpg"
)
$x = array(
"634546cf1fbb14c2a8abc986dba3da6e",
"DIM69_30092017_1715_e7d95c"
)
$file_type = "634546cf1fbb14c2a8abc986dba3da6e"
$file_code = "DIM69_30092017_1715_e7d95c"
$file_type_basic = "image/jpeg"
$file_duoi = "jpg"
$check = array(
"Erp_imagedata" => array(
"id" => "356",
"cat_img" => "1",
"name" => "2",
"code" => "DIM69_30092017_1715_e7d95c",
"link" => "/mem/69/file/DIM69_30092017_1715_e7d95c.jpg",
"thums" => "/mem/69/thumbs/DIM69_30092017_1715_e7d95c.jpg",
"size" => "50366",
"type" => "image/jpeg",
"format" => "jpg",
"id_pro" => null,
"id_pro_title" => null,
"created" => "2017-09-30 17:15:04",
"upload_by" => "69",
"clientip" => "116.97.181.183"
)
)
$stamp = false
$im = resource
$marge_right = 10
$marge_bottom = 10
$sx = null
$sy = null
$sx1 = 270
$sy1 = 165
imagesy - [internal], line ??
UrlshortController::urlshort2() - APP/controllers/urlshort_controller.php, line 96
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 86
Warning (2): imagecopy() expects parameter 2 to be resource, boolean given [APP/controllers/urlshort_controller.php, line 96]Code |
Context // Copy the stamp image onto our photo using the margin offsets and the photo
// width to calculate positioning of the stamp.
imagecopy($im, $stamp, $sx1, $sy1, 0, 0, imagesx($stamp), imagesy($stamp));
$id = "634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c.jpg"
$x1 = array(
"634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c",
"jpg"
)
$x = array(
"634546cf1fbb14c2a8abc986dba3da6e",
"DIM69_30092017_1715_e7d95c"
)
$file_type = "634546cf1fbb14c2a8abc986dba3da6e"
$file_code = "DIM69_30092017_1715_e7d95c"
$file_type_basic = "image/jpeg"
$file_duoi = "jpg"
$check = array(
"Erp_imagedata" => array(
"id" => "356",
"cat_img" => "1",
"name" => "2",
"code" => "DIM69_30092017_1715_e7d95c",
"link" => "/mem/69/file/DIM69_30092017_1715_e7d95c.jpg",
"thums" => "/mem/69/thumbs/DIM69_30092017_1715_e7d95c.jpg",
"size" => "50366",
"type" => "image/jpeg",
"format" => "jpg",
"id_pro" => null,
"id_pro_title" => null,
"created" => "2017-09-30 17:15:04",
"upload_by" => "69",
"clientip" => "116.97.181.183"
)
)
$stamp = false
$im = resource
$marge_right = 10
$marge_bottom = 10
$sx = null
$sy = null
$sx1 = 270
$sy1 = 165
imagecopy - [internal], line ??
UrlshortController::urlshort2() - APP/controllers/urlshort_controller.php, line 96
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 86
Warning (2): Cannot modify header information - headers already sent by (output started at /home/dimgroup/web/api.dim.vn/public_html/sys/cake/libs/debugger.php:686) [APP/controllers/urlshort_controller.php, line 100]Code |
Context //header("Pragma: no-cache");
//header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
header('Content-Type: image/jpeg');
$id = "634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c.jpg"
$x1 = array(
"634546cf1fbb14c2a8abc986dba3da6e-DIM69_30092017_1715_e7d95c",
"jpg"
)
$x = array(
"634546cf1fbb14c2a8abc986dba3da6e",
"DIM69_30092017_1715_e7d95c"
)
$file_type = "634546cf1fbb14c2a8abc986dba3da6e"
$file_code = "DIM69_30092017_1715_e7d95c"
$file_type_basic = "image/jpeg"
$file_duoi = "jpg"
$check = array(
"Erp_imagedata" => array(
"id" => "356",
"cat_img" => "1",
"name" => "2",
"code" => "DIM69_30092017_1715_e7d95c",
"link" => "/mem/69/file/DIM69_30092017_1715_e7d95c.jpg",
"thums" => "/mem/69/thumbs/DIM69_30092017_1715_e7d95c.jpg",
"size" => "50366",
"type" => "image/jpeg",
"format" => "jpg",
"id_pro" => null,
"id_pro_title" => null,
"created" => "2017-09-30 17:15:04",
"upload_by" => "69",
"clientip" => "116.97.181.183"
)
)
$stamp = false
$im = resource
$marge_right = 10
$marge_bottom = 10
$sx = null
$sy = null
$sx1 = 270
$sy1 = 165
header - [internal], line ??
UrlshortController::urlshort2() - APP/controllers/urlshort_controller.php, line 100
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 86