28 04 2025 17:53:47 El Archivo 2025-04-28 - log_error.txt se ha creado ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1AxMDA2ODIwMjIwIiwiY2xhdmUiOiI0dDdWZnBmUFBRN2huREd6eDJhNWlBPT1cbiIsImV4cCI6MTc0NTg4MDg2NCwiaWF0IjoxNzQ1ODgwODE0fQ.pMaFuetpGVEERgo9G5o2-527qmQ1pM1DoUKJv8x_a2o -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Mon, 28 Apr 2025 22:53: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: syntax%20error%2C%20unexpected%20identifier%20%22asignar%22 X-Debug-Exception-File: %2Fvar%2Fwww%2Fphp81%2Fserversoap%2Frecaudos%2Fsrc%2FController%2FPtatController.php:6872 Connection: close Content-Type: text/html; charset=UTF-8 X-Original-Transfer-Encoding: chunked Content-Length: 216042 syntax error, unexpected identifier "asignar" (500 Internal Server Error)

Symfony Exception

ParseError

HTTP 500 Internal Server Error

syntax error, unexpected identifier "asignar"

Exception

ParseError

  1.       $usu2 substr($usuario2);
  2.       $estado 0;
  3.       $base64 $url;
  4.       $url null;
  5.       falta asignar otro?
  6.       if ($tipo_ticket == "4")//tipo de ticket "otros"
  7.       {
  8.         $id_cargo_permiso 66;
  9.         $sql_limite_presupuesto "SELECT savpj.valor FROM th_cargos tc
  10.         JOIN th_personal_administrativo_asignaciones tpaa ON tpaa.id_per_adm_cargo = tc.id AND tpaa.estado = 0
  1.      */
  2.     public function loadClass($class)
  3.     {
  4.         if ($file $this->findFile($class)) {
  5.             $includeFile self::$includeFile;
  6.             $includeFile($file);
  7.             return true;
  8.         }
  9.         return null;
  1.                     return;
  2.                 } elseif (false === include $file) {
  3.                     return;
  4.                 }
  5.             } else {
  6.                 ($this->classLoader)($class);
  7.                 $file '';
  8.             }
  9.         } finally {
  10.             error_reporting($e);
  11.         }
DebugClassLoader->loadClass()
  1.             }
  2.             $autoloadedClass self::$autoloadedClass;
  3.             self::$autoloadedClass ltrim($this->resource'\\');
  4.             try {
  5.                 $exists[0] = class_exists($this->resource) || interface_exists($this->resourcefalse) || trait_exists($this->resourcefalse);
  6.             } catch (\Exception $e) {
  7.                 $exists[1] = $e->getMessage();
  8.                 try {
  9.                     self::throwOnRequiredClass($this->resource$e);
  1.         try {
  2.             if (isset($this->classReflectors[$class])) {
  3.                 $classReflector $this->classReflectors[$class];
  4.             } elseif (class_exists(ClassExistenceResource::class)) {
  5.                 $resource = new ClassExistenceResource($classfalse);
  6.                 $classReflector $resource->isFresh(0) ? false : new \ReflectionClass($class);
  7.             } else {
  8.                 $classReflector class_exists($class) ? new \ReflectionClass($class) : false;
  9.             }
  10.         } catch (\ReflectionException $e) {
  11.             if ($throw) {
  1.             if (!preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+(?:\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+)*+$/'$class)) {
  2.                 continue;
  3.             }
  4.             try {
  5.                 $r $this->container->getReflectionClass($class);
  6.             } catch (\ReflectionException $e) {
  7.                 $classes[$class] = $e->getMessage();
  8.                 continue;
  9.             }
  10.             // check to make sure the expected class exists
  1.         }
  2.         $source \func_num_args() > func_get_arg(4) : null;
  3.         $autoconfigureAttributes = new RegisterAutoconfigureAttributesPass();
  4.         $autoconfigureAttributes $autoconfigureAttributes->accept($prototype) ? $autoconfigureAttributes null;
  5.         $classes $this->findClasses($namespace$resource, (array) $exclude$autoconfigureAttributes$source);
  6.         // prepare for deep cloning
  7.         $serializedPrototype serialize($prototype);
  8.         foreach ($classes as $class => $errorMessage) {
  9.             if (null === $errorMessage && $autoconfigureAttributes && $this->env) {
  1.             if (!\is_string($service['resource'])) {
  2.                 throw new InvalidArgumentException(sprintf('A "resource" attribute must be of type string for service "%s" in "%s". Check your YAML syntax.'$id$file));
  3.             }
  4.             $exclude $service['exclude'] ?? null;
  5.             $namespace $service['namespace'] ?? $id;
  6.             $this->registerClasses($definition$namespace$service['resource'], $exclude$file);
  7.         } else {
  8.             $this->setDefinition($id$definition);
  9.         }
  10.     }
  1.         }
  2.         $this->isLoadingInstanceof false;
  3.         $defaults $this->parseDefaults($content$file);
  4.         foreach ($content['services'] as $id => $service) {
  5.             $this->parseDefinition($id$service$file$defaultsfalse$trackBindings);
  6.         }
  7.     }
  8.     /**
  9.      * @throws InvalidArgumentException
  1.         // services
  2.         $this->anonymousServicesCount 0;
  3.         $this->anonymousServicesSuffix '~'.ContainerBuilder::hash($path);
  4.         $this->setCurrentDir(\dirname($path));
  5.         try {
  6.             $this->parseDefinitions($content$path);
  7.         } finally {
  8.             $this->instanceof = [];
  9.             $this->registerAliasesForSinglyImplementedInterfaces();
  10.         }
  11.     }
  1.         // empty file
  2.         if (null === $content) {
  3.             return null;
  4.         }
  5.         $this->loadContent($content$path);
  6.         // per-env configuration
  7.         if ($this->env && isset($content['when@'.$this->env])) {
  8.             if (!\is_array($content['when@'.$this->env])) {
  9.                 throw new InvalidArgumentException(sprintf('The "when@%s" key should contain an array in "%s". Check your YAML syntax.'$this->env$path));
  1.                 }
  2.             }
  3.             self::$loading[$resource] = true;
  4.             try {
  5.                 $ret $loader->load($resource$type);
  6.             } finally {
  7.                 unset(self::$loading[$resource]);
  8.             }
  9.             return $ret;
  1.             if ($isSubpath) {
  2.                 return isset($ret[1]) ? $ret : ($ret[0] ?? null);
  3.             }
  4.         }
  5.         return $this->doImport($resource$type$ignoreErrors$sourceResource);
  6.     }
  7.     /**
  8.      * @internal
  9.      */
  1.         } elseif (!\is_bool($ignoreErrors)) {
  2.             throw new \TypeError(sprintf('Invalid argument $ignoreErrors provided to "%s::import()": boolean or "not_found" expected, "%s" given.', static::class, get_debug_type($ignoreErrors)));
  3.         }
  4.         try {
  5.             return parent::import(...$args);
  6.         } catch (LoaderLoadException $e) {
  7.             if (!$ignoreNotFound || !($prev $e->getPrevious()) instanceof FileLocatorFileNotFoundException) {
  8.                 throw $e;
  9.             }
  1.     }
  2.     final public function import(string $resourcestring $type nullbool|string $ignoreErrors false)
  3.     {
  4.         $this->loader->setCurrentDir(\dirname($this->path));
  5.         $this->loader->import($resource$type$ignoreErrors$this->file);
  6.     }
  7.     final public function parameters(): ParametersConfigurator
  8.     {
  9.         return new ParametersConfigurator($this->container);
  1.         $container->import($configDir.'/{packages}/*.{php,yaml}');
  2.         $container->import($configDir.'/{packages}/'.$this->environment.'/*.{php,yaml}');
  3.         if (is_file($configDir.'/services.yaml')) {
  4.             $container->import($configDir.'/services.yaml');
  5.             $container->import($configDir.'/{services}_'.$this->environment.'.yaml');
  6.         } else {
  7.             $container->import($configDir.'/{services}.php');
  8.         }
  9.     }
  1.             AbstractConfigurator::$valuePreProcessor = function ($value) {
  2.                 return $this === $value ? new Reference('kernel') : $value;
  3.             };
  4.             try {
  5.                 $configureContainer->getClosure($this)(new ContainerConfigurator($container$kernelLoader$instanceof$file$file$this->getEnvironment()), $loader$container);
  6.             } finally {
  7.                 $instanceof = [];
  8.                 $kernelLoader->registerAliasesForSinglyImplementedInterfaces();
  9.                 AbstractConfigurator::$valuePreProcessor $valuePreProcessor;
  10.             }
  1.         parent::__construct($env);
  2.     }
  3.     public function load(mixed $resourcestring $type null): mixed
  4.     {
  5.         return $resource($this->container$this->env);
  6.     }
  7.     public function supports(mixed $resourcestring $type null): bool
  8.     {
  9.         return $resource instanceof \Closure;
  1.     {
  2.         if (false === $loader $this->resolver->resolve($resource$type)) {
  3.             throw new LoaderLoadException($resourcenull0null$type);
  4.         }
  5.         return $loader->load($resource$type);
  6.     }
  7.     public function supports(mixed $resourcestring $type null): bool
  8.     {
  9.         return false !== $this->resolver->resolve($resource$type);
  1.                 $kernelLoader->registerAliasesForSinglyImplementedInterfaces();
  2.                 AbstractConfigurator::$valuePreProcessor $valuePreProcessor;
  3.             }
  4.             $container->setAlias($kernelClass'kernel')->setPublic(true);
  5.         });
  6.     }
  7.     /**
  8.      * @internal
  9.      */
  1.         }
  2.         $container $this->getContainerBuilder();
  3.         $container->addObjectResource($this);
  4.         $this->prepareContainer($container);
  5.         $this->registerContainerConfiguration($this->getContainerLoader($container));
  6.         $container->addCompilerPass(new AddAnnotatedClassesToCachePass($this));
  7.         return $container;
  8.     }
  1.             });
  2.         }
  3.         try {
  4.             $container null;
  5.             $container $this->buildContainer();
  6.             $container->compile();
  7.         } finally {
  8.             if ($collectDeprecations) {
  9.                 restore_error_handler();
  1.             $_ENV['SHELL_VERBOSITY'] = 3;
  2.             $_SERVER['SHELL_VERBOSITY'] = 3;
  3.         }
  4.         $this->initializeBundles();
  5.         $this->initializeContainer();
  6.         $container $this->container;
  7.         if ($container->hasParameter('kernel.trusted_hosts') && $trustedHosts $container->getParameter('kernel.trusted_hosts')) {
  8.             Request::setTrustedHosts($trustedHosts);
  1.     }
  2.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true): Response
  3.     {
  4.         if (!$this->booted) {
  5.             $container $this->container ?? $this->preBoot();
  6.             if ($container->has('http_cache')) {
  7.                 return $container->get('http_cache')->handle($request$type$catch);
  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.         }
  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 /var/www/php81/serversoap/recaudos/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. };

Stack Trace

ParseError
ParseError:
syntax error, unexpected identifier "asignar"

  at /var/www/php81/serversoap/recaudos/src/Controller/PtatController.php:6872
  at Composer\Autoload\{closure}()
     (/var/www/php81/serversoap/recaudos/vendor/composer/ClassLoader.php:427)
  at Composer\Autoload\ClassLoader->loadClass()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/error-handler/DebugClassLoader.php:300)
  at Symfony\Component\ErrorHandler\DebugClassLoader->loadClass()
  at class_exists()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/config/Resource/ClassExistenceResource.php:76)
  at Symfony\Component\Config\Resource\ClassExistenceResource->isFresh()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/dependency-injection/ContainerBuilder.php:347)
  at Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/dependency-injection/Loader/FileLoader.php:222)
  at Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/dependency-injection/Loader/FileLoader.php:113)
  at Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php:677)
  at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinition()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php:250)
  at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinitions()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php:173)
  at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadContent()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php:129)
  at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/config/Loader/FileLoader.php:163)
  at Symfony\Component\Config\Loader\FileLoader->doImport()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/config/Loader/FileLoader.php:94)
  at Symfony\Component\Config\Loader\FileLoader->import()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/dependency-injection/Loader/FileLoader.php:64)
  at Symfony\Component\DependencyInjection\Loader\FileLoader->import()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/dependency-injection/Loader/Configurator/ContainerConfigurator.php:64)
  at Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator->import()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php:57)
  at App\Kernel->configureContainer()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php:179)
  at App\Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/dependency-injection/Loader/ClosureLoader.php:36)
  at Symfony\Component\DependencyInjection\Loader\ClosureLoader->load()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/config/Loader/DelegatingLoader.php:37)
  at Symfony\Component\Config\Loader\DelegatingLoader->load()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php:187)
  at App\Kernel->registerContainerConfiguration()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/http-kernel/Kernel.php:585)
  at Symfony\Component\HttpKernel\Kernel->buildContainer()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/http-kernel/Kernel.php:486)
  at Symfony\Component\HttpKernel\Kernel->initializeContainer()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/http-kernel/Kernel.php:709)
  at Symfony\Component\HttpKernel\Kernel->preBoot()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/http-kernel/Kernel.php:172)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/var/www/php81/serversoap/recaudos/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php:29)
  at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (/var/www/php81/serversoap/recaudos/public/index.php:16)