Warning (2): file_get_contents(http://172.16.1.116/anexos/imagens/rapida/uems_imagens_2023-01-10_11-53-16.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
[APP/Controller/AnexosController.php, line 60]Code Context
$file = file_get_contents($url);
$temp = sys_get_temp_dir().'/'.$name[count($name)-1];
$folder = 'rapida'
$name = [
(int) 0 => 'http:',
(int) 1 => '',
(int) 2 => '172.16.1.116',
(int) 3 => 'anexos',
(int) 4 => 'imagens',
(int) 5 => 'rapida',
(int) 6 => 'uems_imagens_2023-01-10_11-53-16.png'
]
$url = 'http://172.16.1.116/anexos/imagens/rapida/uems_imagens_2023-01-10_11-53-16.png'
$http_response_header = [
(int) 0 => 'HTTP/1.1 404 Not Found',
(int) 1 => 'Date: Sun, 05 May 2024 08:22:38 GMT',
(int) 2 => 'Server: Apache/2.4.38 (Debian)',
(int) 3 => 'Connection: close',
(int) 4 => 'Content-Type: text/html; charset=UTF-8'
]
file_get_contents - [internal], line ??
App\Controller\AnexosController::imagens() - APP/Controller/AnexosController.php, line 60
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 524
Cake\Controller\ControllerFactory::invoke() - CORE/src/Controller/ControllerFactory.php, line 79
Cake\Http\BaseApplication::handle() - CORE/src/Http/BaseApplication.php, line 229
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 77
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 77
Cake\Http\Middleware\CsrfProtectionMiddleware::process() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 122
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 58
Cake\Routing\Middleware\RoutingMiddleware::process() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 162
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Routing\Middleware\AssetMiddleware::process() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 77
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Error\Middleware\ErrorHandlerMiddleware::process() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 118
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 58
Warning (512): Unable to emit headers. Headers sent in file=/var/www/html/portal-cake/vendor/cakephp/cakephp/src/Error/Debugger.php line=831 [CORE/src/Http/ResponseEmitter.php, line 72]Code Context $message = "Unable to emit headers. Headers sent in file=$file line=$line";
trigger_error($message, E_USER_WARNING);
}
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'image/png',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Accept-Ranges' => [
[maximum depth reached]
],
'Content-Length' => [
[maximum depth reached]
]
],
'file' => object(SplFileInfo) {},
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$file = '/var/www/html/portal-cake/vendor/cakephp/cakephp/src/Error/Debugger.php'
$line = (int) 831
$message = 'Unable to emit headers. Headers sent in file=/var/www/html/portal-cake/vendor/cakephp/cakephp/src/Error/Debugger.php line=831'
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 72
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 130
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/portal-cake/vendor/cakephp/cakephp/src/Error/Debugger.php:831) [CORE/src/Http/ResponseEmitter.php, line 169]Code Context $response->getStatusCode(),
($reasonPhrase ? ' ' . $reasonPhrase : '')
));
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'image/png',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Accept-Ranges' => [
[maximum depth reached]
],
'Content-Length' => [
[maximum depth reached]
]
],
'file' => object(SplFileInfo) {},
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$reasonPhrase = 'OK'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitStatusLine() - CORE/src/Http/ResponseEmitter.php, line 169
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 75
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 130
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/portal-cake/vendor/cakephp/cakephp/src/Error/Debugger.php:831) [CORE/src/Http/ResponseEmitter.php, line 198]Code Context foreach ($values as $value) {
header(sprintf(
'%s: %s',
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'image/png',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Accept-Ranges' => [
[maximum depth reached]
],
'Content-Length' => [
[maximum depth reached]
]
],
'file' => object(SplFileInfo) {},
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = [
'csrfToken;;/' => object(Cake\Http\Cookie\Cookie) {
[protected] name => 'csrfToken'
[protected] value => 'd369b0f0d4efa7e816780421e401539e1494178fb3cb96fd52cc9e6789370b97fa6ae5042b2567f57fdd7ffaa653147d84e9665d0a2d00a093b4846720b4d165'
[protected] isExpanded => false
[protected] expiresAt => null
[protected] path => '/'
[protected] domain => ''
[protected] secure => false
[protected] httpOnly => true
[protected] sameSite => null
[protected] defaults => [
[maximum depth reached]
]
}
]
$values = [
(int) 0 => 'image/png'
]
$name = 'Content-Type'
$first = true
$value = 'image/png'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 198
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 76
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 130
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/portal-cake/vendor/cakephp/cakephp/src/Error/Debugger.php:831) [CORE/src/Http/ResponseEmitter.php, line 198]Code Context foreach ($values as $value) {
header(sprintf(
'%s: %s',
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'image/png',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Accept-Ranges' => [
[maximum depth reached]
],
'Content-Length' => [
[maximum depth reached]
]
],
'file' => object(SplFileInfo) {},
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = [
'csrfToken;;/' => object(Cake\Http\Cookie\Cookie) {
[protected] name => 'csrfToken'
[protected] value => 'd369b0f0d4efa7e816780421e401539e1494178fb3cb96fd52cc9e6789370b97fa6ae5042b2567f57fdd7ffaa653147d84e9665d0a2d00a093b4846720b4d165'
[protected] isExpanded => false
[protected] expiresAt => null
[protected] path => '/'
[protected] domain => ''
[protected] secure => false
[protected] httpOnly => true
[protected] sameSite => null
[protected] defaults => [
[maximum depth reached]
]
}
]
$values = [
(int) 0 => 'bytes'
]
$name = 'Accept-Ranges'
$first = true
$value = 'bytes'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 198
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 76
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 130
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/portal-cake/vendor/cakephp/cakephp/src/Error/Debugger.php:831) [CORE/src/Http/ResponseEmitter.php, line 198]Code Context foreach ($values as $value) {
header(sprintf(
'%s: %s',
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'image/png',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Accept-Ranges' => [
[maximum depth reached]
],
'Content-Length' => [
[maximum depth reached]
]
],
'file' => object(SplFileInfo) {},
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = [
'csrfToken;;/' => object(Cake\Http\Cookie\Cookie) {
[protected] name => 'csrfToken'
[protected] value => 'd369b0f0d4efa7e816780421e401539e1494178fb3cb96fd52cc9e6789370b97fa6ae5042b2567f57fdd7ffaa653147d84e9665d0a2d00a093b4846720b4d165'
[protected] isExpanded => false
[protected] expiresAt => null
[protected] path => '/'
[protected] domain => ''
[protected] secure => false
[protected] httpOnly => true
[protected] sameSite => null
[protected] defaults => [
[maximum depth reached]
]
}
]
$values = [
(int) 0 => '0'
]
$name = 'Content-Length'
$first = true
$value = '0'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 198
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 76
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 130
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/portal-cake/vendor/cakephp/cakephp/src/Error/Debugger.php:831) [CORE/src/Http/ResponseEmitter.php, line 236]Code Context if (PHP_VERSION_ID >= 70300) {
return setcookie($cookie->getName(), $cookie->getScalarValue(), $cookie->getOptions());
}
$cookie = object(Cake\Http\Cookie\Cookie) {
[protected] name => 'csrfToken'
[protected] value => 'd369b0f0d4efa7e816780421e401539e1494178fb3cb96fd52cc9e6789370b97fa6ae5042b2567f57fdd7ffaa653147d84e9665d0a2d00a093b4846720b4d165'
[protected] isExpanded => false
[protected] expiresAt => null
[protected] path => '/'
[protected] domain => ''
[protected] secure => false
[protected] httpOnly => true
[protected] sameSite => null
[protected] defaults => [
'expires' => null,
'path' => '/',
'domain' => '',
'secure' => false,
'httponly' => false,
'samesite' => null
]
}
setcookie - [internal], line ??
Cake\Http\ResponseEmitter::setCookie() - CORE/src/Http/ResponseEmitter.php, line 236
Cake\Http\ResponseEmitter::emitCookies() - CORE/src/Http/ResponseEmitter.php, line 219
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 207
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 76
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 130
[main] - ROOT/webroot/index.php, line 40