aa The autoloader expected class "Plugin\NZCustompg\Controller\Admin\FieldController" to be defined in file "/home/noie373zam/public_html/noiezam-ec/vendor/composer/../../app/Plugin/NZCustompg/Controller/Admin/FieldController.php". The file was found but the class was not in it, the class name or namespace probably has a typo. (500 Internal Server Error)

Symfony Exception

ReflectionException

HTTP 500 Internal Server Error

The autoloader expected class "Plugin\NZCustompg\Controller\Admin\FieldController" to be defined in file "/home/noie373zam/public_html/noiezam-ec/vendor/composer/../../app/Plugin/NZCustompg/Controller/Admin/FieldController.php". The file was found but the class was not in it, the class name or namespace probably has a typo.

Exception

ReflectionException

  1.         if (null !== $exists = &self::$existsCache[$this->resource]) {
  2.             if ($loaded) {
  3.                 $exists = [truenull];
  4.             } elseif (>= $timestamp && !$exists[0] && null !== $exists[1]) {
  5.                 throw new \ReflectionException($exists[1]);
  6.             }
  7.         } elseif ([falsenull] === $exists = [$loadednull]) {
  8.             if (!self::$autoloadLevel++) {
  9.                 spl_autoload_register(__CLASS__.'::throwOnRequiredClass');
  10.             }
  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.                 $class $class ?: $def->getClass();
  2.                 $bindings += $def->getBindings();
  3.             }
  4.             $class $parameterBag->resolveValue($class);
  5.             if (!$r $container->getReflectionClass($class)) {
  6.                 throw new InvalidArgumentException(sprintf('Class "%s" used for service "%s" cannot be found.'$class$id));
  7.             }
  8.             $isContainerAware $r->implementsInterface(ContainerAwareInterface::class) || is_subclass_of($classAbstractController::class);
  9.             // get regular public methods
  1.      */
  2.     public function compile(ContainerBuilder $container)
  3.     {
  4.         try {
  5.             foreach ($this->passConfig->getPasses() as $pass) {
  6.                 $pass->process($container);
  7.             }
  8.         } catch (\Exception $e) {
  9.             $usedEnvs = [];
  10.             $prev $e;
  1.         if ($resolveEnvPlaceholders && $bag instanceof EnvPlaceholderParameterBag) {
  2.             $compiler->addPass(new ResolveEnvPlaceholdersPass(), PassConfig::TYPE_AFTER_REMOVING, -1000);
  3.         }
  4.         $compiler->compile($this);
  5.         foreach ($this->definitions as $id => $definition) {
  6.             if ($this->trackResources && $definition->isLazy()) {
  7.                 $this->getReflectionClass($definition->getClass());
  8.             }
  1.         }
  2.         try {
  3.             $container null;
  4.             $container $this->buildContainer();
  5.             $container->compile();
  6.         } finally {
  7.             if ($collectDeprecations) {
  8.                 restore_error_handler();
  9.                 @file_put_contents($buildDir.'/'.$class.'Deprecations.log'serialize(array_values($collectedLogs)));
  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.      * {@inheritdoc}
  2.      */
  3.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true)
  4.     {
  5.         if (!$this->booted) {
  6.             $container $this->container ?? $this->preBoot();
  7.             if ($container->has('http_cache')) {
  8.                 return $container->get('http_cache')->handle($request$type$catch);
  9.             }
  10.         }
  1.         }
  2.     }
  3. }
  4. $kernel = new Kernel($env$debug);
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Trace

ReflectionException
ReflectionException:
The autoloader expected class "Plugin\NZCustompg\Controller\Admin\FieldController" to be defined in file "/home/noie373zam/public_html/noiezam-ec/vendor/composer/../../app/Plugin/NZCustompg/Controller/Admin/FieldController.php". The file was found but the class was not in it, the class name or namespace probably has a typo.

  at /home/noie373zam/public_html/noiezam-ec/vendor/symfony/config/Resource/ClassExistenceResource.php:68
  at Symfony\Component\Config\Resource\ClassExistenceResource->isFresh()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/ContainerBuilder.php:370)
  at Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/http-kernel/DependencyInjection/RegisterControllerArgumentLocatorsPass.php:85)
  at Symfony\Component\HttpKernel\DependencyInjection\RegisterControllerArgumentLocatorsPass->process()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Compiler/Compiler.php:82)
  at Symfony\Component\DependencyInjection\Compiler\Compiler->compile()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/ContainerBuilder.php:757)
  at Symfony\Component\DependencyInjection\ContainerBuilder->compile()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/http-kernel/Kernel.php:546)
  at Symfony\Component\HttpKernel\Kernel->initializeContainer()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/http-kernel/Kernel.php:787)
  at Symfony\Component\HttpKernel\Kernel->preBoot()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/http-kernel/Kernel.php:190)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/home/noie373zam/public_html/noiezam-ec/index.php:83)