16 06 2025 12:15:19 El Archivo 2025-06-16 - log_error.txt se ha creado ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1AxMDA2ODIwMjIwIiwiY2xhdmUiOiI0dDdWZnBmUFBRN2huREd6eDJhNWlBPT1cbiIsImV4cCI6MTc1MDA5NDE1MCwiaWF0IjoxNzUwMDk0MTAwfQ.AdF_v-eWsLIM_Im2T50vOMMAFD3GEH7W2yT9I32tDJA -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Mon, 16 Jun 2025 17:15:19 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: array_push%28%29%3A%20Argument%20%231%20%28%24array%29%20must%20be%20of%20type%20array%2C%20null%20given X-Debug-Exception-File: %2Fvar%2Fwww%2Fphp81%2Fserversoap%2Frecaudos%2Fsrc%2FController%2FPtatController.php:2778 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: 101237 array_push(): Argument #1 ($array) must be of type array, null given (500 Internal Server Error)

Symfony Exception

TypeError

HTTP 500 Internal Server Error

array_push(): Argument #1 ($array) must be of type array, null given

Exception

TypeError

  1.     and u2.fechafinal is null
  2.     order by t3.nombre asc";
  3.     $res_pdv $this->cnn->query('2'$sql_pdv);
  4.     foreach ($res_pdv as $row)
  5.       array_push($auditores, array("codigo" => $row['COD_PDV'], "nombre" => $row['NAME_PDV']));
  6.     return $pdvs;
  7.   }
  8.   function login_movil(Request $requestJwtAuth $jwt_auth)
array_push() in src/Controller/PtatController.php (line 2778)
  1.     and u2.fechafinal is null
  2.     order by t3.nombre asc";
  3.     $res_pdv $this->cnn->query('2'$sql_pdv);
  4.     foreach ($res_pdv as $row)
  5.       array_push($auditores, array("codigo" => $row['COD_PDV'], "nombre" => $row['NAME_PDV']));
  6.     return $pdvs;
  7.   }
  8.   function login_movil(Request $requestJwtAuth $jwt_auth)
PtatController->pdv_cofresi() in src/Controller/PtatController.php (line 3083)
  1.     }
  2.     $tipo_usuario 0;
  3.     if($nivel == "1" || $nivel == "43" || $nivel == "9")
  4.     {
  5.       $pdv_cofresi $this->pdv_cofresi();
  6.       $tipo_usuario 1;
  7.     }
  8.     else if ($nivel == "12" || $nivel == "3" || $nivel == "54" || $nivel == "68" || $nivel == "84"//supervisores y jose ober, coordinador baloto, betplay, supergiros
  9.     {
  10.       if ($nivel == "54" || $nivel == "68" || $nivel == "84")
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  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

TypeError
TypeError:
array_push(): Argument #1 ($array) must be of type array, null given

  at src/Controller/PtatController.php:2778
  at array_push()
     (src/Controller/PtatController.php:2778)
  at App\Controller\PtatController->pdv_cofresi()
     (src/Controller/PtatController.php:3083)
  at App\Controller\PtatController->login_movil()
     (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)                
16 06 2025 15:26:46 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1AxMDA2ODIwMjIwIiwiY2xhdmUiOiI0dDdWZnBmUFBRN2huREd6eDJhNWlBPT1cbiIsImV4cCI6MTc1MDEwNTY0MSwiaWF0IjoxNzUwMTA1NTkxfQ.gZT6OcmkhorxiWoZ8tq6PTSvfLNTdelyr2-uBCfixSM -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Mon, 16 Jun 2025 20:26:46 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%20Array%20to%20string%20conversion X-Debug-Exception-File: %2Fvar%2Fwww%2Fphp81%2Fserversoap%2Frecaudos%2Fsrc%2FController%2FPtatController.php:3133 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: 89168 Warning: Array to string conversion (500 Internal Server Error)

Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Warning: Array to string conversion

Exception

ErrorException

  1.       $tipo_usuario 3;
  2.     }
  3.     else if ($nivel == "94")  //liquidadores cofres inteligentes
  4.     {
  5.       $pdv_cofresi $this->pdv_cofresi($usuario);
  6.       $liquidadores_cofresi $this->liquidadores_cofresi(implode(","$pdv_cofresi));
  7.       $tipo_usuario 4;
  8.     }
  9.     $datos_viaticos = ["val_sal_min" => 0"limite_viaticos" => 0];
  10.     $sql_sal_min "SELECT valor ,valor * 6 AS limite FROM produccion.salario_minimo sm WHERE EXTRACT(YEAR FROM fecha_ini) <= EXTRACT(YEAR FROM CURRENT_DATE) AND EXTRACT(YEAR FROM fecha_fin) >= EXTRACT(YEAR FROM CURRENT_DATE)";
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  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: Array to string conversion

  at src/Controller/PtatController.php:3133
  at App\Controller\PtatController->login_movil()
     (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)