Warning (2): imagecreatefromjpeg(/home/gemexi/public_html/app/webroot/img/barcode.jpg): failed to open stream: No such file or directory [APP/Controller/Component/CaptchaComponent.php, line 52]Code Context //Create the image resource
//$image = ImageCreate($width, $height);
$image = imagecreatefromjpeg( WWW_ROOT.'img/barcode.jpg');
$from = 'login'
$md5_hash = 'ba3866600c3540f67c1e9575e213be0a'
$security_code = '67c1e'
$width = (int) 305
$height = (int) 60
imagecreatefromjpeg - [internal], line ??
CaptchaComponent::create_image() - APP/Controller/Component/CaptchaComponent.php, line 52
UsersController::captcha() - APP/Controller/UsersController.php, line 740
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 140
Warning (2): imagecolorallocate() expects parameter 1 to be resource, boolean given [APP/Controller/Component/CaptchaComponent.php, line 67]Code Context //We are making three colors, white, black and gray
$white = ImageColorAllocate($image, 255, 255, 255);
$from = 'login'
$md5_hash = 'ba3866600c3540f67c1e9575e213be0a'
$security_code = '67c1e'
$width = (int) 305
$height = (int) 60
$image = false
imagecolorallocate - [internal], line ??
CaptchaComponent::create_image() - APP/Controller/Component/CaptchaComponent.php, line 67
UsersController::captcha() - APP/Controller/UsersController.php, line 740
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 140
Warning (2): imagecolorallocate() expects parameter 1 to be resource, boolean given [APP/Controller/Component/CaptchaComponent.php, line 68]Code Context
$white = ImageColorAllocate($image, 255, 255, 255);
$black = ImageColorAllocate($image, 0, 0, 0);
$from = 'login'
$md5_hash = 'ba3866600c3540f67c1e9575e213be0a'
$security_code = '67c1e'
$width = (int) 305
$height = (int) 60
$image = false
$white = null
imagecolorallocate - [internal], line ??
CaptchaComponent::create_image() - APP/Controller/Component/CaptchaComponent.php, line 68
UsersController::captcha() - APP/Controller/UsersController.php, line 740
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 140
Warning (2): imagecolorallocate() expects parameter 1 to be resource, boolean given [APP/Controller/Component/CaptchaComponent.php, line 69]Code Context $white = ImageColorAllocate($image, 255, 255, 255);
$black = ImageColorAllocate($image, 0, 0, 0);
$grey = ImageColorAllocate($image, 204, 204, 204);
$from = 'login'
$md5_hash = 'ba3866600c3540f67c1e9575e213be0a'
$security_code = '67c1e'
$width = (int) 305
$height = (int) 60
$image = false
$white = null
$black = null
imagecolorallocate - [internal], line ??
CaptchaComponent::create_image() - APP/Controller/Component/CaptchaComponent.php, line 69
UsersController::captcha() - APP/Controller/UsersController.php, line 740
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 140
Warning (2): imagefill() expects parameter 1 to be resource, boolean given [APP/Controller/Component/CaptchaComponent.php, line 72]Code Context
//Make the background black
ImageFill($image, 0, 0, $white);
$from = 'login'
$md5_hash = 'ba3866600c3540f67c1e9575e213be0a'
$security_code = '67c1e'
$width = (int) 305
$height = (int) 60
$image = false
$white = null
$black = null
$grey = null
imagefill - [internal], line ??
CaptchaComponent::create_image() - APP/Controller/Component/CaptchaComponent.php, line 72
UsersController::captcha() - APP/Controller/UsersController.php, line 740
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 140
Warning (2): imagestring() expects parameter 1 to be resource, boolean given [APP/Controller/Component/CaptchaComponent.php, line 75]Code Context
$font = imageloadfont('fonts/bubblebath.gdf');
imagestring($image, $font, 60, 10, $security_code, $black);
$from = 'login'
$md5_hash = 'ba3866600c3540f67c1e9575e213be0a'
$security_code = '67c1e'
$width = (int) 305
$height = (int) 60
$image = false
$white = null
$black = null
$grey = null
$font = (int) 107
imagestring - [internal], line ??
CaptchaComponent::create_image() - APP/Controller/Component/CaptchaComponent.php, line 75
UsersController::captcha() - APP/Controller/UsersController.php, line 740
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 140
Warning (2): Cannot modify header information - headers already sent by (output started at /home/gemexi/public_html/lib/Cake/Utility/Debugger.php:802) [APP/Controller/Component/CaptchaComponent.php, line 78]Code Context
//Tell the browser what kind of file is come in
header("Content-Type: image/jpeg");
$from = 'login'
$md5_hash = 'ba3866600c3540f67c1e9575e213be0a'
$security_code = '67c1e'
$width = (int) 305
$height = (int) 60
$image = false
$white = null
$black = null
$grey = null
$font = (int) 107
header - [internal], line ??
CaptchaComponent::create_image() - APP/Controller/Component/CaptchaComponent.php, line 78
UsersController::captcha() - APP/Controller/UsersController.php, line 740
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 140
Warning (2): imagejpeg() expects parameter 1 to be resource, boolean given [APP/Controller/Component/CaptchaComponent.php, line 81]Code Context
//Output the newly created image in jpeg format
ImageJpeg($image);
$from = 'login'
$md5_hash = 'ba3866600c3540f67c1e9575e213be0a'
$security_code = '67c1e'
$width = (int) 305
$height = (int) 60
$image = false
$white = null
$black = null
$grey = null
$font = (int) 107
imagejpeg - [internal], line ??
CaptchaComponent::create_image() - APP/Controller/Component/CaptchaComponent.php, line 81
UsersController::captcha() - APP/Controller/UsersController.php, line 740
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 140
Warning (2): imagedestroy() expects parameter 1 to be resource, boolean given [APP/Controller/Component/CaptchaComponent.php, line 84]Code Context
//Free up resources
ImageDestroy($image);
$from = 'login'
$md5_hash = 'ba3866600c3540f67c1e9575e213be0a'
$security_code = '67c1e'
$width = (int) 305
$height = (int) 60
$image = false
$white = null
$black = null
$grey = null
$font = (int) 107
imagedestroy - [internal], line ??
CaptchaComponent::create_image() - APP/Controller/Component/CaptchaComponent.php, line 84
UsersController::captcha() - APP/Controller/UsersController.php, line 740
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 140