a Expected to find class "Plugin\NZCustompg\Controller\Admin\FieldController" in file "/home/noie373zam/public_html/noiezam-ec/app/Plugin/NZCustompg/Controller/Admin/FieldController.php" while importing services from resource "../../../app/Plugin/*", but it was not found! Check the namespace prefix used with the resource in /home/noie373zam/public_html/noiezam-ec/app/config/eccube/services.yaml (which is loaded in resource "/home/noie373zam/public_html/noiezam-ec/app/config/eccube/services.yaml"). (500 Internal Server Error)

Symfony Exception

InvalidArgumentException LoaderLoadException

HTTP 500 Internal Server Error

Expected to find class "Plugin\NZCustompg\Controller\Admin\FieldController" in file "/home/noie373zam/public_html/noiezam-ec/app/Plugin/NZCustompg/Controller/Admin/FieldController.php" while importing services from resource "../../../app/Plugin/*", but it was not found! Check the namespace prefix used with the resource in /home/noie373zam/public_html/noiezam-ec/app/config/eccube/services.yaml (which is loaded in resource "/home/noie373zam/public_html/noiezam-ec/app/config/eccube/services.yaml").

Exceptions 2

Symfony\Component\Config\Exception\ LoaderLoadException

  1.                 // prevent embedded imports from nesting multiple exceptions
  2.                 if ($e instanceof LoaderLoadException) {
  3.                     throw $e;
  4.                 }
  5.                 throw new LoaderLoadException($resource$sourceResource0$e$type);
  6.             }
  7.         }
  8.         return null;
  9.     }
  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.      * {@inheritdoc}
  2.      */
  3.     public function load($resourcestring $type null)
  4.     {
  5.         foreach ($this->glob($resourcefalse$globResource) as $path => $info) {
  6.             $this->import($path);
  7.         }
  8.         $this->container->addResource($globResource);
  9.         return null;
  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.     /**
  8.      * {@inheritdoc}
  9.      */
  1.     }
  2.     protected function configureContainer(ContainerBuilder $containerLoaderInterface $loader)
  3.     {
  4.         $confDir $this->getProjectDir().'/app/config/eccube';
  5.         $loader->load($confDir.'/services'.self::CONFIG_EXTS'glob');
  6.         $loader->load($confDir.'/packages/*'.self::CONFIG_EXTS'glob');
  7.         if (is_dir($confDir.'/packages/'.$this->environment)) {
  8.             $loader->load($confDir.'/packages/'.$this->environment.'/**/*'.self::CONFIG_EXTS'glob');
  9.         }
  10.         $loader->load($confDir.'/services_'.$this->environment.self::CONFIG_EXTS'glob');
  1.             $configureContainer = new \ReflectionMethod($this'configureContainer');
  2.             $configuratorClass $configureContainer->getNumberOfParameters() > && ($type $configureContainer->getParameters()[0]->getType()) instanceof \ReflectionNamedType && !$type->isBuiltin() ? $type->getName() : null;
  3.             if ($configuratorClass && !is_a(ContainerConfigurator::class, $configuratorClasstrue)) {
  4.                 $configureContainer->getClosure($this)($container$loader);
  5.                 return;
  6.             }
  7.             $file = (new \ReflectionObject($this))->getFileName();
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function load($resourcestring $type null)
  5.     {
  6.         return $resource($this->container$this->env);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  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.     /**
  8.      * {@inheritdoc}
  9.      */
  1.                 $kernelLoader->registerAliasesForSinglyImplementedInterfaces();
  2.                 AbstractConfigurator::$valuePreProcessor $valuePreProcessor;
  3.             }
  4.             $container->setAlias($kernelClass'kernel')->setPublic(true);
  5.         });
  6.     }
  7.     /**
  8.      * @internal
  9.      */
  1.         $container $this->getContainerBuilder();
  2.         $container->addObjectResource($this);
  3.         $this->prepareContainer($container);
  4.         if (null !== $cont $this->registerContainerConfiguration($this->getContainerLoader($container))) {
  5.             trigger_deprecation('symfony/http-kernel''5.3''Returning a ContainerBuilder from "%s::registerContainerConfiguration()" is deprecated.'get_debug_type($this));
  6.             $container->merge($cont);
  7.         }
  8.         $container->addCompilerPass(new AddAnnotatedClassesToCachePass($this));
  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.      * {@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);

Symfony\Component\DependencyInjection\Exception\ InvalidArgumentException

Expected to find class "Plugin\NZCustompg\Controller\Admin\FieldController" in file "/home/noie373zam/public_html/noiezam-ec/app/Plugin/NZCustompg/Controller/Admin/FieldController.php" while importing services from resource "../../../app/Plugin/*", but it was not found! Check the namespace prefix used with the resource.

  1.                 $classes[$class] = $e->getMessage();
  2.                 continue;
  3.             }
  4.             // check to make sure the expected class exists
  5.             if (!$r) {
  6.                 throw new InvalidArgumentException(sprintf('Expected to find class "%s" in file "%s" while importing services from resource "%s", but it was not found! Check the namespace prefix used with the resource.'$class$path$pattern));
  7.             }
  8.             if ($r->isInstantiable() || $r->isInterface()) {
  9.                 $classes[$class] = null;
  10.             }
  1.             throw new InvalidArgumentException(sprintf('Namespace is not a valid PSR-4 prefix: "%s".'$namespace));
  2.         }
  3.         $autoconfigureAttributes = new RegisterAutoconfigureAttributesPass();
  4.         $autoconfigureAttributes $autoconfigureAttributes->accept($prototype) ? $autoconfigureAttributes null;
  5.         $classes $this->findClasses($namespace$resource, (array) $exclude$autoconfigureAttributes);
  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);
  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.      * {@inheritdoc}
  2.      */
  3.     public function load($resourcestring $type null)
  4.     {
  5.         foreach ($this->glob($resourcefalse$globResource) as $path => $info) {
  6.             $this->import($path);
  7.         }
  8.         $this->container->addResource($globResource);
  9.         return null;
  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.     /**
  8.      * {@inheritdoc}
  9.      */
  1.     }
  2.     protected function configureContainer(ContainerBuilder $containerLoaderInterface $loader)
  3.     {
  4.         $confDir $this->getProjectDir().'/app/config/eccube';
  5.         $loader->load($confDir.'/services'.self::CONFIG_EXTS'glob');
  6.         $loader->load($confDir.'/packages/*'.self::CONFIG_EXTS'glob');
  7.         if (is_dir($confDir.'/packages/'.$this->environment)) {
  8.             $loader->load($confDir.'/packages/'.$this->environment.'/**/*'.self::CONFIG_EXTS'glob');
  9.         }
  10.         $loader->load($confDir.'/services_'.$this->environment.self::CONFIG_EXTS'glob');
  1.             $configureContainer = new \ReflectionMethod($this'configureContainer');
  2.             $configuratorClass $configureContainer->getNumberOfParameters() > && ($type $configureContainer->getParameters()[0]->getType()) instanceof \ReflectionNamedType && !$type->isBuiltin() ? $type->getName() : null;
  3.             if ($configuratorClass && !is_a(ContainerConfigurator::class, $configuratorClasstrue)) {
  4.                 $configureContainer->getClosure($this)($container$loader);
  5.                 return;
  6.             }
  7.             $file = (new \ReflectionObject($this))->getFileName();
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function load($resourcestring $type null)
  5.     {
  6.         return $resource($this->container$this->env);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  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.     /**
  8.      * {@inheritdoc}
  9.      */
  1.                 $kernelLoader->registerAliasesForSinglyImplementedInterfaces();
  2.                 AbstractConfigurator::$valuePreProcessor $valuePreProcessor;
  3.             }
  4.             $container->setAlias($kernelClass'kernel')->setPublic(true);
  5.         });
  6.     }
  7.     /**
  8.      * @internal
  9.      */
  1.         $container $this->getContainerBuilder();
  2.         $container->addObjectResource($this);
  3.         $this->prepareContainer($container);
  4.         if (null !== $cont $this->registerContainerConfiguration($this->getContainerLoader($container))) {
  5.             trigger_deprecation('symfony/http-kernel''5.3''Returning a ContainerBuilder from "%s::registerContainerConfiguration()" is deprecated.'get_debug_type($this));
  6.             $container->merge($cont);
  7.         }
  8.         $container->addCompilerPass(new AddAnnotatedClassesToCachePass($this));
  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.      * {@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 Traces 2

[2/2] LoaderLoadException
Symfony\Component\Config\Exception\LoaderLoadException:
Expected to find class "Plugin\NZCustompg\Controller\Admin\FieldController" in file "/home/noie373zam/public_html/noiezam-ec/app/Plugin/NZCustompg/Controller/Admin/FieldController.php" while importing services from resource "../../../app/Plugin/*", but it was not found! Check the namespace prefix used with the resource in /home/noie373zam/public_html/noiezam-ec/app/config/eccube/services.yaml (which is loaded in resource "/home/noie373zam/public_html/noiezam-ec/app/config/eccube/services.yaml").

  at /home/noie373zam/public_html/noiezam-ec/vendor/symfony/config/Loader/FileLoader.php:174
  at Symfony\Component\Config\Loader\FileLoader->doImport()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/config/Loader/FileLoader.php:98)
  at Symfony\Component\Config\Loader\FileLoader->import()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Loader/FileLoader.php:66)
  at Symfony\Component\DependencyInjection\Loader\FileLoader->import()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Loader/GlobFileLoader.php:27)
  at Symfony\Component\DependencyInjection\Loader\GlobFileLoader->load()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/config/Loader/DelegatingLoader.php:40)
  at Symfony\Component\Config\Loader\DelegatingLoader->load()
     (/home/noie373zam/public_html/noiezam-ec/src/Eccube/Kernel.php:150)
  at Eccube\Kernel->configureContainer()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php:171)
  at Eccube\Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Loader/ClosureLoader.php:39)
  at Symfony\Component\DependencyInjection\Loader\ClosureLoader->load()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/config/Loader/DelegatingLoader.php:40)
  at Symfony\Component\Config\Loader\DelegatingLoader->load()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php:196)
  at Eccube\Kernel->registerContainerConfiguration()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/http-kernel/Kernel.php:649)
  at Symfony\Component\HttpKernel\Kernel->buildContainer()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/http-kernel/Kernel.php:545)
  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)                
[1/2] InvalidArgumentException
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException:
Expected to find class "Plugin\NZCustompg\Controller\Admin\FieldController" in file "/home/noie373zam/public_html/noiezam-ec/app/Plugin/NZCustompg/Controller/Admin/FieldController.php" while importing services from resource "../../../app/Plugin/*", but it was not found! Check the namespace prefix used with the resource.

  at /home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Loader/FileLoader.php:224
  at Symfony\Component\DependencyInjection\Loader\FileLoader->findClasses()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Loader/FileLoader.php:105)
  at Symfony\Component\DependencyInjection\Loader\FileLoader->registerClasses()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php:699)
  at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinition()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php:256)
  at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseDefinitions()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php:176)
  at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadContent()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php:132)
  at Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/config/Loader/FileLoader.php:159)
  at Symfony\Component\Config\Loader\FileLoader->doImport()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/config/Loader/FileLoader.php:98)
  at Symfony\Component\Config\Loader\FileLoader->import()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Loader/FileLoader.php:66)
  at Symfony\Component\DependencyInjection\Loader\FileLoader->import()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Loader/GlobFileLoader.php:27)
  at Symfony\Component\DependencyInjection\Loader\GlobFileLoader->load()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/config/Loader/DelegatingLoader.php:40)
  at Symfony\Component\Config\Loader\DelegatingLoader->load()
     (/home/noie373zam/public_html/noiezam-ec/src/Eccube/Kernel.php:150)
  at Eccube\Kernel->configureContainer()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php:171)
  at Eccube\Kernel->Symfony\Bundle\FrameworkBundle\Kernel\{closure}()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/dependency-injection/Loader/ClosureLoader.php:39)
  at Symfony\Component\DependencyInjection\Loader\ClosureLoader->load()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/config/Loader/DelegatingLoader.php:40)
  at Symfony\Component\Config\Loader\DelegatingLoader->load()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php:196)
  at Eccube\Kernel->registerContainerConfiguration()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/http-kernel/Kernel.php:649)
  at Symfony\Component\HttpKernel\Kernel->buildContainer()
     (/home/noie373zam/public_html/noiezam-ec/vendor/symfony/http-kernel/Kernel.php:545)
  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)