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
and u2.fechafinal is null
order by t3.nombre asc";
$res_pdv = $this->cnn->query('2', $sql_pdv);
foreach ($res_pdv as $row)
array_push($auditores, array("codigo" => $row['COD_PDV'], "nombre" => $row['NAME_PDV']));
return $pdvs;
}
function login_movil(Request $request, JwtAuth $jwt_auth)
and u2.fechafinal is null
order by t3.nombre asc";
$res_pdv = $this->cnn->query('2', $sql_pdv);
foreach ($res_pdv as $row)
array_push($auditores, array("codigo" => $row['COD_PDV'], "nombre" => $row['NAME_PDV']));
return $pdvs;
}
function login_movil(Request $request, JwtAuth $jwt_auth)
}
$tipo_usuario = 0;
if($nivel == "1" || $nivel == "43" || $nivel == "9")
{
$pdv_cofresi = $this->pdv_cofresi();
$tipo_usuario = 1;
}
else if ($nivel == "12" || $nivel == "3" || $nivel == "54" || $nivel == "68" || $nivel == "84") //supervisores y jose ober, coordinador baloto, betplay, supergiros
{
if ($nivel == "54" || $nivel == "68" || $nivel == "84")
$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
|
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)
|
$tipo_usuario = 3;
}
else if ($nivel == "94") //liquidadores cofres inteligentes
{
$pdv_cofresi = $this->pdv_cofresi($usuario);
$liquidadores_cofresi = $this->liquidadores_cofresi(implode(",", $pdv_cofresi));
$tipo_usuario = 4;
}
$datos_viaticos = ["val_sal_min" => 0, "limite_viaticos" => 0];
$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)";
$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: 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)
|