05 05 2023 10:18:43 El Archivo 2023-05-05 - log.txt se ha creado 05 05 2023 10:18:43 ###############Datos recibidos -- 05 05 2023 10:18:43 Envio Login Movil: 05 05 2023 10:18:43 Url=http://10.1.1.11:8094/ptat/login/login_movil 05 05 2023 10:18:43 Contenido:POST http://10.1.1.11:8094/ptat/login/login_movil HTTP/1.1 AUTHENTICATION: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1AxMDA2ODIwMjIwIiwiY2xhdmUiOiJpdVNoZDFFK1Q3alIrVHlTOWh4TzRnPT1cbiIsImV4cCI6MTY4MzI5OTk0MCwiaWF0IjoxNjgzMjk5OTEwfQ.9BQbQ5mMSr6s5_Zxv2u3lwYc0f_HhkYNsDHydqFQm_Q Content-Length: 272 Content-Type: multipart/form-data; boundary="e2e050a0.3fd6b0db" --e2e050a0.3fd6b0db Content-Disposition: form-data; name="json" [{"imeis":"emBk5x0OtuE,ffffffff-b4a3-188c-0000-0000714a4f37,325b515bd0a8284e","ip":"10.0.2.15","name_device":"Google sdk_gphone_x86_64","operador":"T-Mobile","version_app":"8.2"}] --e2e050a0.3fd6b0db-- 05 05 2023 10:18:47 HTTP/1.1 500 Internal Server Error Date: Fri, 05 May 2023 15:18:47 GMT Server: Apache/2.4.41 (Ubuntu) X-Powered-By: PHP/8.1.18 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: An%20exception%20occurred%20while%20executing%20a%20query%3A%20SQLSTATE%5B42703%5D%3A%20Undefined%20column%3A%207%20ERROR%3A%20%20column%20a.id_per_adm_area%20does%20not%20exist%0ALINE%203%3A%20%20%20%20%20AND%20aa.estado%3D%270%27%20AND%20aa.id%3Da.id_per_adm_area%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5E%0AHINT%3A%20%20Perhaps%20you%20meant%20to%20reference%20the%20column%20%22a.id_per_adm_cargo%22. X-Debug-Exception-File: %2Fwww%2Fphp81%2Fserversoap%2Frecaudos%2Fvendor%2Fdoctrine%2Fdbal%2Fsrc%2FDriver%2FAPI%2FPostgreSQL%2FExceptionConverter.php:68 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: 304226
case '42702':
return new NonUniqueFieldNameException($exception, $query);
case '42703':
return new InvalidFieldNameException($exception, $query);
case '42P01':
return new TableNotFoundException($exception, $query);
case '42P07':
private function handleDriverException(
Driver\Exception $driverException,
?Query $query
): DriverException {
$this->exceptionConverter ??= $this->_driver->getExceptionConverter();
$exception = $this->exceptionConverter->convert($driverException, $query);
if ($exception instanceof ConnectionLost) {
$this->close();
}
Driver\Exception $e,
string $sql,
array $params = [],
array $types = []
): DriverException {
return $this->handleDriverException($e, new Query($sql, $params, $types));
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($logger !== null) {
$logger->stopQuery();
}
}
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
//$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
$this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
//$sql = "SELECT * FROM articles";
$stmt = $this->cnn->prepare($sql);
$resultSet = $stmt->executeQuery()->fetchAllAssociative();//execute();
/* var_dump($resultSet);
die(); */
/* $resultSet->toArray();
$area_pertenece_jefe = "";
$sql_val_jefe_area = "SELECT aa.id,aa.nombre FROM th_personal_administrativo_asignaciones a, th_personal_administrativo_areas aa
WHERE a.id_per_adm_usuario_encargado=(SELECT id FROM th_personal_administrativo WHERE cedula='$usu2' AND estado='0')
AND aa.estado='0' AND aa.id=a.id_per_adm_area";
$result_val_jefe_area = $this->cnn->query('0', $sql_val_jefe_area);
if ((count($result_val_jefe_area) > 0))
{
$filtro = $result_val_jefe_area[0]['id'];
$area_pertenece_jefe = $result_val_jefe_area[0]['nombre'];
$consultar = 1;
$año = date("Y");
$fechai="01-01-".$año;
$fechaf="31-12-".$año;
$cant_1 = 0;
$cant_2 = 0;
$r_validar_jefe_supervisor_th = $this->validar_jefe_supervisor_th($usuario,$usu2);
$consultar = $r_validar_jefe_supervisor_th["consultar"];
$area_pertenece_jefe = $r_validar_jefe_supervisor_th["area_pertenece_jefe"];
$filtro = $r_validar_jefe_supervisor_th["filtro"];
if($consultar > 0)
}
$time_expire = $result_time_expire[0]['tiempo_sesion']/1000;
$notificaciones = "0";
if($tipo_usu == "CP")
$notificaciones = $this->validar_notificaciones($usuario,$usu2,$result[0]['nombre'],$correo,$this->email);
foreach ($result as $row)
{
$nivel = $row['nivel'];
// array_push($datos, array("loginusr" => $row['loginusr'], "password" => $row['password'], "nivel" => $row['nivel'], "nombre" => $row['nombre'], "zona" => $zona));
$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']);
};
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
}
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
//$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
$this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
//$sql = "SELECT * FROM articles";
$stmt = $this->cnn->prepare($sql);
$resultSet = $stmt->executeQuery()->fetchAllAssociative();//execute();
/* var_dump($resultSet);
die(); */
/* $resultSet->toArray();
$area_pertenece_jefe = "";
$sql_val_jefe_area = "SELECT aa.id,aa.nombre FROM th_personal_administrativo_asignaciones a, th_personal_administrativo_areas aa
WHERE a.id_per_adm_usuario_encargado=(SELECT id FROM th_personal_administrativo WHERE cedula='$usu2' AND estado='0')
AND aa.estado='0' AND aa.id=a.id_per_adm_area";
$result_val_jefe_area = $this->cnn->query('0', $sql_val_jefe_area);
if ((count($result_val_jefe_area) > 0))
{
$filtro = $result_val_jefe_area[0]['id'];
$area_pertenece_jefe = $result_val_jefe_area[0]['nombre'];
$consultar = 1;
$año = date("Y");
$fechai="01-01-".$año;
$fechaf="31-12-".$año;
$cant_1 = 0;
$cant_2 = 0;
$r_validar_jefe_supervisor_th = $this->validar_jefe_supervisor_th($usuario,$usu2);
$consultar = $r_validar_jefe_supervisor_th["consultar"];
$area_pertenece_jefe = $r_validar_jefe_supervisor_th["area_pertenece_jefe"];
$filtro = $r_validar_jefe_supervisor_th["filtro"];
if($consultar > 0)
}
$time_expire = $result_time_expire[0]['tiempo_sesion']/1000;
$notificaciones = "0";
if($tipo_usu == "CP")
$notificaciones = $this->validar_notificaciones($usuario,$usu2,$result[0]['nombre'],$correo,$this->email);
foreach ($result as $row)
{
$nivel = $row['nivel'];
// array_push($datos, array("loginusr" => $row['loginusr'], "password" => $row['password'], "nivel" => $row['nivel'], "nombre" => $row['nombre'], "zona" => $zona));
$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']);
};
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
//$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
$this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
//$sql = "SELECT * FROM articles";
$stmt = $this->cnn->prepare($sql);
$resultSet = $stmt->executeQuery()->fetchAllAssociative();//execute();
/* var_dump($resultSet);
die(); */
/* $resultSet->toArray();
$area_pertenece_jefe = "";
$sql_val_jefe_area = "SELECT aa.id,aa.nombre FROM th_personal_administrativo_asignaciones a, th_personal_administrativo_areas aa
WHERE a.id_per_adm_usuario_encargado=(SELECT id FROM th_personal_administrativo WHERE cedula='$usu2' AND estado='0')
AND aa.estado='0' AND aa.id=a.id_per_adm_area";
$result_val_jefe_area = $this->cnn->query('0', $sql_val_jefe_area);
if ((count($result_val_jefe_area) > 0))
{
$filtro = $result_val_jefe_area[0]['id'];
$area_pertenece_jefe = $result_val_jefe_area[0]['nombre'];
$consultar = 1;
$año = date("Y");
$fechai="01-01-".$año;
$fechaf="31-12-".$año;
$cant_1 = 0;
$cant_2 = 0;
$r_validar_jefe_supervisor_th = $this->validar_jefe_supervisor_th($usuario,$usu2);
$consultar = $r_validar_jefe_supervisor_th["consultar"];
$area_pertenece_jefe = $r_validar_jefe_supervisor_th["area_pertenece_jefe"];
$filtro = $r_validar_jefe_supervisor_th["filtro"];
if($consultar > 0)
}
$time_expire = $result_time_expire[0]['tiempo_sesion']/1000;
$notificaciones = "0";
if($tipo_usu == "CP")
$notificaciones = $this->validar_notificaciones($usuario,$usu2,$result[0]['nombre'],$correo,$this->email);
foreach ($result as $row)
{
$nivel = $row['nivel'];
// array_push($datos, array("loginusr" => $row['loginusr'], "password" => $row['password'], "nivel" => $row['nivel'], "nombre" => $row['nombre'], "zona" => $zona));
$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
[3/3]
InvalidFieldNameException
|
---|
Doctrine\DBAL\Exception\InvalidFieldNameException: An exception occurred while executing a query: SQLSTATE[42703]: Undefined column: 7 ERROR: column a.id_per_adm_area does not exist LINE 3: AND aa.estado='0' AND aa.id=a.id_per_adm_area ^ HINT: Perhaps you meant to reference the column "a.id_per_adm_cargo". at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:68 at Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1908) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1851) at Doctrine\DBAL\Connection->convertExceptionDuringQuery() (vendor/doctrine/dbal/src/Statement.php:194) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:154) at App\Services\Conexion->query() (src/Controller/PtatController.php:762) at App\Controller\PtatController->validar_jefe_supervisor_th() (src/Controller/PtatController.php:798) at App\Controller\PtatController->validar_notificaciones() (src/Controller/PtatController.php:1359) 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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[42703]: Undefined column: 7 ERROR: column a.id_per_adm_area does not exist LINE 3: AND aa.estado='0' AND aa.id=a.id_per_adm_area ^ HINT: Perhaps you meant to reference the column "a.id_per_adm_cargo". at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:136) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:154) at App\Services\Conexion->query() (src/Controller/PtatController.php:762) at App\Controller\PtatController->validar_jefe_supervisor_th() (src/Controller/PtatController.php:798) at App\Controller\PtatController->validar_notificaciones() (src/Controller/PtatController.php:1359) 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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[42703]: Undefined column: 7 ERROR: column a.id_per_adm_area does not exist LINE 3: AND aa.estado='0' AND aa.id=a.id_per_adm_area ^ HINT: Perhaps you meant to reference the column "a.id_per_adm_cargo". at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134 at PDOStatement->execute() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:154) at App\Services\Conexion->query() (src/Controller/PtatController.php:762) at App\Controller\PtatController->validar_jefe_supervisor_th() (src/Controller/PtatController.php:798) at App\Controller\PtatController->validar_notificaciones() (src/Controller/PtatController.php:1359) 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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
case '42702':
return new NonUniqueFieldNameException($exception, $query);
case '42703':
return new InvalidFieldNameException($exception, $query);
case '42P01':
return new TableNotFoundException($exception, $query);
case '42P07':
private function handleDriverException(
Driver\Exception $driverException,
?Query $query
): DriverException {
$this->exceptionConverter ??= $this->_driver->getExceptionConverter();
$exception = $this->exceptionConverter->convert($driverException, $query);
if ($exception instanceof ConnectionLost) {
$this->close();
}
Driver\Exception $e,
string $sql,
array $params = [],
array $types = []
): DriverException {
return $this->handleDriverException($e, new Query($sql, $params, $types));
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($logger !== null) {
$logger->stopQuery();
}
}
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
//$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
$this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
//$sql = "SELECT * FROM articles";
$stmt = $this->cnn->prepare($sql);
$resultSet = $stmt->executeQuery()->fetchAllAssociative();//execute();
/* var_dump($resultSet);
die(); */
/* $resultSet->toArray();
$area_pertenece_jefe = "";
$sql_val_jefe_area = "SELECT aa.id,aa.nombre FROM th_personal_administrativo_asignaciones a, th_personal_administrativo_areas aa
WHERE a.id_per_adm_usuario_encargado=(SELECT id FROM th_personal_administrativo WHERE cedula='$usu2' AND estado='0')
AND aa.estado='0' AND aa.id=a.id_per_adm_area";
$result_val_jefe_area = $this->cnn->query('0', $sql_val_jefe_area);
if ((count($result_val_jefe_area) > 0))
{
$filtro = $result_val_jefe_area[0]['id'];
$area_pertenece_jefe = $result_val_jefe_area[0]['nombre'];
$consultar = 1;
$año = date("Y");
$fechai="01-01-".$año;
$fechaf="31-12-".$año;
$cant_1 = 0;
$cant_2 = 0;
$r_validar_jefe_supervisor_th = $this->validar_jefe_supervisor_th($usuario,$usu2);
$consultar = $r_validar_jefe_supervisor_th["consultar"];
$area_pertenece_jefe = $r_validar_jefe_supervisor_th["area_pertenece_jefe"];
$filtro = $r_validar_jefe_supervisor_th["filtro"];
if($consultar > 0)
}
$time_expire = $result_time_expire[0]['tiempo_sesion']/1000;
$notificaciones = "0";
if($tipo_usu == "CP")
$notificaciones = $this->validar_notificaciones($usuario,$usu2,$result[0]['nombre'],$correo,$this->email);
foreach ($result as $row)
{
$nivel = $row['nivel'];
// array_push($datos, array("loginusr" => $row['loginusr'], "password" => $row['password'], "nivel" => $row['nivel'], "nombre" => $row['nombre'], "zona" => $zona));
$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']);
};
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
}
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
//$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
$this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
//$sql = "SELECT * FROM articles";
$stmt = $this->cnn->prepare($sql);
$resultSet = $stmt->executeQuery()->fetchAllAssociative();//execute();
/* var_dump($resultSet);
die(); */
/* $resultSet->toArray();
$area_pertenece_jefe = "";
$sql_val_jefe_area = "SELECT aa.id,aa.nombre FROM th_personal_administrativo_asignaciones a, th_personal_administrativo_areas aa
WHERE a.id_per_adm_usuario_encargado=(SELECT id FROM th_personal_administrativo WHERE cedula='$usu2' AND estado='0')
AND aa.estado='0' AND aa.id=a.id_per_adm_area";
$result_val_jefe_area = $this->cnn->query('0', $sql_val_jefe_area);
if ((count($result_val_jefe_area) > 0))
{
$filtro = $result_val_jefe_area[0]['id'];
$area_pertenece_jefe = $result_val_jefe_area[0]['nombre'];
$consultar = 1;
$año = date("Y");
$fechai="01-01-".$año;
$fechaf="31-12-".$año;
$cant_1 = 0;
$cant_2 = 0;
$r_validar_jefe_supervisor_th = $this->validar_jefe_supervisor_th($usuario,$usu2);
$consultar = $r_validar_jefe_supervisor_th["consultar"];
$area_pertenece_jefe = $r_validar_jefe_supervisor_th["area_pertenece_jefe"];
$filtro = $r_validar_jefe_supervisor_th["filtro"];
if($consultar > 0)
}
$time_expire = $result_time_expire[0]['tiempo_sesion']/1000;
$notificaciones = "0";
if($tipo_usu == "CP")
$notificaciones = $this->validar_notificaciones($usuario,$usu2,$result[0]['nombre'],$correo,$this->email);
foreach ($result as $row)
{
$nivel = $row['nivel'];
// array_push($datos, array("loginusr" => $row['loginusr'], "password" => $row['password'], "nivel" => $row['nivel'], "nombre" => $row['nombre'], "zona" => $zona));
$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']);
};
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
//$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
$this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
//$sql = "SELECT * FROM articles";
$stmt = $this->cnn->prepare($sql);
$resultSet = $stmt->executeQuery()->fetchAllAssociative();//execute();
/* var_dump($resultSet);
die(); */
/* $resultSet->toArray();
$area_pertenece_jefe = "";
$sql_val_jefe_area = "SELECT aa.id,aa.nombre FROM th_personal_administrativo_asignaciones a, th_personal_administrativo_areas aa
WHERE a.id_per_adm_usuario_encargado=(SELECT id FROM th_personal_administrativo WHERE cedula='$usu2' AND estado='0')
AND aa.estado='0' AND aa.id=a.id_per_adm_area";
$result_val_jefe_area = $this->cnn->query('0', $sql_val_jefe_area);
if ((count($result_val_jefe_area) > 0))
{
$filtro = $result_val_jefe_area[0]['id'];
$area_pertenece_jefe = $result_val_jefe_area[0]['nombre'];
$consultar = 1;
$año = date("Y");
$fechai="01-01-".$año;
$fechaf="31-12-".$año;
$cant_1 = 0;
$cant_2 = 0;
$r_validar_jefe_supervisor_th = $this->validar_jefe_supervisor_th($usuario,$usu2);
$consultar = $r_validar_jefe_supervisor_th["consultar"];
$area_pertenece_jefe = $r_validar_jefe_supervisor_th["area_pertenece_jefe"];
$filtro = $r_validar_jefe_supervisor_th["filtro"];
if($consultar > 0)
}
$time_expire = $result_time_expire[0]['tiempo_sesion']/1000;
$notificaciones = "0";
if($tipo_usu == "CP")
$notificaciones = $this->validar_notificaciones($usuario,$usu2,$result[0]['nombre'],$correo,$this->email);
foreach ($result as $row)
{
$nivel = $row['nivel'];
// array_push($datos, array("loginusr" => $row['loginusr'], "password" => $row['password'], "nivel" => $row['nivel'], "nombre" => $row['nombre'], "zona" => $zona));
$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
[3/3]
InvalidFieldNameException
|
---|
Doctrine\DBAL\Exception\InvalidFieldNameException: An exception occurred while executing a query: SQLSTATE[42703]: Undefined column: 7 ERROR: column a.id_per_adm_area does not exist LINE 3: AND aa.estado='0' AND aa.id=a.id_per_adm_area ^ HINT: Perhaps you meant to reference the column "a.id_per_adm_cargo". at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:68 at Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1908) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1851) at Doctrine\DBAL\Connection->convertExceptionDuringQuery() (vendor/doctrine/dbal/src/Statement.php:194) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:154) at App\Services\Conexion->query() (src/Controller/PtatController.php:762) at App\Controller\PtatController->validar_jefe_supervisor_th() (src/Controller/PtatController.php:798) at App\Controller\PtatController->validar_notificaciones() (src/Controller/PtatController.php:1359) 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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[42703]: Undefined column: 7 ERROR: column a.id_per_adm_area does not exist LINE 3: AND aa.estado='0' AND aa.id=a.id_per_adm_area ^ HINT: Perhaps you meant to reference the column "a.id_per_adm_cargo". at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:136) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:154) at App\Services\Conexion->query() (src/Controller/PtatController.php:762) at App\Controller\PtatController->validar_jefe_supervisor_th() (src/Controller/PtatController.php:798) at App\Controller\PtatController->validar_notificaciones() (src/Controller/PtatController.php:1359) 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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[42703]: Undefined column: 7 ERROR: column a.id_per_adm_area does not exist LINE 3: AND aa.estado='0' AND aa.id=a.id_per_adm_area ^ HINT: Perhaps you meant to reference the column "a.id_per_adm_cargo". at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134 at PDOStatement->execute() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:154) at App\Services\Conexion->query() (src/Controller/PtatController.php:762) at App\Controller\PtatController->validar_jefe_supervisor_th() (src/Controller/PtatController.php:798) at App\Controller\PtatController->validar_notificaciones() (src/Controller/PtatController.php:1359) 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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |