23 09 2024 11:49:04 El Archivo 2024-09-23 - log_error.txt se ha creado ************************************************************CP1006820220 -- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1AxMDA2ODIwMjIwIiwiaWF0IjoxNzI3MTA4MDg3LCJleHAiOjE3MjcxMTcwODd9.u-dYvtto1KLBNjckx360UPjc35gmV3wtPmKv5tMYZeQ -- MM-ERROR: HTTP/1.1 500 Internal Server Error Date: Mon, 23 Sep 2024 16:49:04 GMT Server: Apache/2.4.41 (Ubuntu) X-Powered-By: PHP/8.1.27 Access-Control-Allow-Origin: * Access-Control-Allow-Headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization, Authentication Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE Allow: GET, POST, OPTIONS, PUT, DELETE X-Debug-Exception: Warning%3A%20fopen%28%2Fvar%2Fwww%2Fphp81%2Fserversoap%2Frecaudos%2Fpublic%2Fuploads%2Ftalento_humano%2Ffirmas%2F2982_firma.png%29%3A%20Failed%20to%20open%20stream%3A%20No%20such%20file%20or%20directory X-Debug-Exception-File: %2Fvar%2Fwww%2Fphp81%2Fserversoap%2Frecaudos%2Fvendor%2Fsetasign%2Ffpdf%2Ffpdf.php:1275 Cache-Control: no-cache, private X-Robots-Tag: noindex Connection: close Content-Type: text/html; charset=UTF-8 X-Original-Transfer-Encoding: chunked Content-Length: 126410
}
protected function _parsepng($file)
{
// Extract info from a PNG file
$f = fopen($file,'rb');
if(!$f)
$this->Error('Can\'t open image file: '.$file);
$info = $this->_parsepngstream($f,$file);
fclose($f);
return $info;
if($type=='jpeg')
$type = 'jpg';
$mtd = '_parse'.$type;
if(!method_exists($this,$mtd))
$this->Error('Unsupported image type: '.$type);
$info = $this->$mtd($file);
$info['i'] = count($this->images)+1;
$this->images[$file] = $info;
}
else
$info = $this->images[$file];
$pdf->Cell($width, $attr2, "Cordialmente,", 0, 1, 'L');
$currentY = $pdf->GetY();
$imageHeight = 90;
$ruta_firma = "$this->ruta/public/uploads/talento_humano/firmas/$urlFirma";
$pdf->Image($ruta_firma, $marginLeftFirma, $currentY + 30, -60, $imageHeight);
$pdfDestination = $destination.$nArchivo;
$pdf->SetY($currentY + 42 + $imageHeight);
$pdf->Cell($width, $attr2, "$nombre", 0, 1, 'L');
$pdf->Cell($width, $attr2, "C.C. $cedula", 0, 1, 'L');
$nombreGab = $resultDoc[0]['nombre'];
$prefijoRadicado = $resultDoc[0]['prefijo_radicado'];
$destinationPath = $this->ruta . "/public/uploads/talento_humano/soportes/" . $this->env."/";
$pathFirma = $this->ruta . "/public/uploads/talento_humano/firmas/" . $this->env."/";
$nArchivo = "th_vacaciones_$id.pdf";
$this->generarCartasVacaciones($destinationPath, $nArchivo, $id, $cedula, $nombre, $fechaI, $fechaF, $periodoI, $periodoF, $compensadas, $compensadasFechaI, $compensadasFechaF, $urlFirma);
$usuarioRad = "1022346129";
if($compensadasFechaF != null && !empty($compensadasFechaF)) $fechaF = $compensadasFechaF;
$sqlInsert = "INSERT INTO $nombreGab (usuario_rad,id_doc,id_proveedor,fecha_inicio,fecha_final_i,num_folios,estado,fecha_radicado,fecha_digitalizacion,prioridad)
VALUES ('$usuarioRad','$idDoc','$cedula','$fechaI','$fechaF','2','0',now(),now(),'1') returning id";
else $this->guardarCartasSGD($id_sgc, $usu2, $nUsuario, $fecha_solicitud_usuario, $fecha_final, $elements[0], $elements[1], false, $url_firma);
}
else $this->guardarCartasSGD($id_sgc, $usu2, $nUsuario, $fecha_solicitud_usuario, $fecha_final, $elements[0], $elements[1], false, $url_firma);
}
}
else $this->guardarCartasSGD($id_sgc, $usu2, $nUsuario, $fecha_solicitud_usuario, $fecha_final, $elements[0], $elements[1], $elements[6], $url_firma, $elements[2], $elements[3]);
$sqlUpdtFechaF = "UPDATE th_cronograma_vacaciones SET fecha_fin = '$fecha_final' WHERE usuario = '$usu2'";
$this->cnn->query('0', $sqlUpdtFechaF);
$sql_manager_usu = "select VINEMAIL, VINNOMBRE from VINCULADO where VINCEDULA='$usu2'";
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
No log messages
ErrorException
|
---|
ErrorException: Warning: fopen(/var/www/php81/serversoap/recaudos/public/uploads/talento_humano/firmas/2982_firma.png): Failed to open stream: No such file or directory at vendor/setasign/fpdf/fpdf.php:1275 at FPDF->_parsepng() (vendor/setasign/fpdf/fpdf.php:889) at FPDF->Image() (src/Controller/PtatController.php:1460) at App\Controller\PtatController->generarCartasVacaciones() (src/Controller/PtatController.php:1555) at App\Controller\PtatController->guardarCartasSGD() (src/Controller/PtatController.php:3982) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |