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 Warning: fopen(/var/www/php81/serversoap/recaudos/public/uploads/talento_humano/firmas/2982_firma.png): Failed to open stream: No such file or directory (500 Internal Server Error)

Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Warning: fopen(/var/www/php81/serversoap/recaudos/public/uploads/talento_humano/firmas/2982_firma.png): Failed to open stream: No such file or directory

Exception

ErrorException

  1. }
  2. protected function _parsepng($file)
  3. {
  4.     // Extract info from a PNG file
  5.     $f fopen($file,'rb');
  6.     if(!$f)
  7.         $this->Error('Can\'t open image file: '.$file);
  8.     $info $this->_parsepngstream($f,$file);
  9.     fclose($f);
  10.     return $info;
in vendor/setasign/fpdf/fpdf.php -> _parsepng (line 889)
  1.         if($type=='jpeg')
  2.             $type 'jpg';
  3.         $mtd '_parse'.$type;
  4.         if(!method_exists($this,$mtd))
  5.             $this->Error('Unsupported image type: '.$type);
  6.         $info $this->$mtd($file);
  7.         $info['i'] = count($this->images)+1;
  8.         $this->images[$file] = $info;
  9.     }
  10.     else
  11.         $info $this->images[$file];
FPDF->Image() in src/Controller/PtatController.php (line 1460)
  1.     $pdf->Cell($width$attr2"Cordialmente,"01'L');
  2.     $currentY $pdf->GetY();
  3.     $imageHeight 90;
  4.     $ruta_firma "$this->ruta/public/uploads/talento_humano/firmas/$urlFirma";
  5.     $pdf->Image($ruta_firma$marginLeftFirma$currentY 30, -60$imageHeight);
  6.     $pdfDestination $destination.$nArchivo;
  7.     $pdf->SetY($currentY 42 $imageHeight);
  8.     $pdf->Cell($width$attr2"$nombre"01'L');
  9.     $pdf->Cell($width$attr2"C.C. $cedula"01'L');
PtatController->generarCartasVacaciones() in src/Controller/PtatController.php (line 1555)
  1.     $nombreGab $resultDoc[0]['nombre'];
  2.     $prefijoRadicado $resultDoc[0]['prefijo_radicado'];
  3.     $destinationPath $this->ruta "/public/uploads/talento_humano/soportes/" $this->env."/";
  4.     $pathFirma $this->ruta "/public/uploads/talento_humano/firmas/" $this->env."/";
  5.     $nArchivo "th_vacaciones_$id.pdf";
  6.     $this->generarCartasVacaciones($destinationPath$nArchivo$id$cedula$nombre$fechaI$fechaF$periodoI$periodoF$compensadas$compensadasFechaI$compensadasFechaF$urlFirma);
  7.     $usuarioRad "1022346129";
  8.     if($compensadasFechaF != null && !empty($compensadasFechaF)) $fechaF $compensadasFechaF;
  9.     $sqlInsert "INSERT INTO $nombreGab (usuario_rad,id_doc,id_proveedor,fecha_inicio,fecha_final_i,num_folios,estado,fecha_radicado,fecha_digitalizacion,prioridad)
  10.     VALUES ('$usuarioRad','$idDoc','$cedula','$fechaI','$fechaF','2','0',now(),now(),'1') returning id";
PtatController->guardarCartasSGD() in src/Controller/PtatController.php (line 3982)
  1.                         else $this->guardarCartasSGD($id_sgc$usu2$nUsuario$fecha_solicitud_usuario$fecha_final$elements[0], $elements[1], false$url_firma);
  2.                       }
  3.                       else $this->guardarCartasSGD($id_sgc$usu2$nUsuario$fecha_solicitud_usuario$fecha_final$elements[0], $elements[1], false$url_firma);
  4.                     }
  5.                   }
  6.                   else $this->guardarCartasSGD($id_sgc$usu2$nUsuario$fecha_solicitud_usuario$fecha_final$elements[0], $elements[1], $elements[6], $url_firma$elements[2], $elements[3]);
  7.                   $sqlUpdtFechaF "UPDATE th_cronograma_vacaciones SET fecha_fin = '$fecha_final' WHERE usuario = '$usu2'";
  8.                   $this->cnn->query('0'$sqlUpdtFechaF);
  9.                   $sql_manager_usu "select VINEMAIL, VINNOMBRE from VINCULADO where VINCEDULA='$usu2'";
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Trace

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)