Country / region

Business directory

About Zoug

Zoug is a remote rural commune located at the southern tip of Morocco within the Aousserd province. This desert landscape,...
Zoug

School

Discover the places listed by the community.

No place matches these criteria yet.

Loading…
Loading the web debug toolbar…
Attempt #
Warning: require(/var/www/dev.communesmaroc.com/var/cache/dev/ContainerMG0L4sO/getErrorControllerService.php): Failed to open stream: No such file or directory (500 Internal Server Error)

Symfony Exception

ErrorException ErrorException

HTTP 500 Internal Server Error

Warning: require(/var/www/dev.communesmaroc.com/var/cache/dev/ContainerMG0L4sO/getErrorControllerService.php): Failed to open stream: No such file or directory

Exceptions 2

ErrorException

Show exception properties
ErrorException {#25985
  #severity: E_WARNING
}
  1.         $container->loading[$id] = true;
  2.         try {
  3.             if (isset($container->fileMap[$id])) {
  4.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ 4 === $invalidBehavior ? null : $container->load($container->fileMap[$id]);
  5.             } elseif (isset($container->methodMap[$id])) {
  6.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ 4 === $invalidBehavior ? null : $container->{$container->methodMap[$id]}($container);
  7.             }
  8.         } catch (\Exception $e) {
  9.             unset($container->services[$id]);
  1.      */
  2.     public function get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE): ?object
  3.     {
  4.         return $this->services[$id]
  5.             ?? $this->services[$id = $this->aliases[$id] ?? $id]
  6.             ?? ('service_container' === $id ? $this : ($this->factories[$id] ?? self::$make ??= self::make(...))($this, $id, $invalidBehavior));
  7.     }
  8.     /**
  9.      * Creates a service.
  10.      *
  1.     protected function instantiateController(string $class): object
  2.     {
  3.         $class = ltrim($class, '\\');
  4.         if ($this->container->has($class)) {
  5.             return $this->container->get($class);
  6.         }
  7.         try {
  8.             return parent::instantiateController($class);
  9.         } catch (\Error $e) {
  1.  */
  2. class ControllerResolver extends ContainerControllerResolver
  3. {
  4.     protected function instantiateController(string $class): object
  5.     {
  6.         $controller = parent::instantiateController($class);
  7.         if ($controller instanceof AbstractController) {
  8.             if (null === $previousContainer = $controller->setContainer($this->container)) {
  9.                 throw new \LogicException(\sprintf('"%s" has no container set, did you forget to define it as a service subscriber?', $class));
  10.             }
  1.      * @throws \InvalidArgumentException When the controller cannot be created
  2.      */
  3.     protected function createController(string $controller): callable
  4.     {
  5.         if (!str_contains($controller, '::')) {
  6.             $controller = $this->instantiateController($controller);
  7.             if (!\is_callable($controller)) {
  8.                 throw new \InvalidArgumentException($this->getControllerError($controller));
  9.             }
  1.         if (\function_exists($controller)) {
  2.             return $this->checkController($request, $controller);
  3.         }
  4.         try {
  5.             $callable = $this->createController($controller);
  6.         } catch (\InvalidArgumentException $e) {
  7.             throw new \InvalidArgumentException(\sprintf('The controller for URI "%s" is not callable: ', $request->getPathInfo()).$e->getMessage(), 0, $e);
  8.         }
  9.         if (!\is_callable($callable)) {
  1.     public function getController(Request $request): callable|false
  2.     {
  3.         $e = $this->stopwatch->start('controller.get_callable');
  4.         try {
  5.             return $this->resolver->getController($request);
  6.         } finally {
  7.             $e->stop();
  8.         }
  9.     }
  10. }
  1.         if ($event->hasResponse()) {
  2.             return $this->filterResponse($event->getResponse(), $request, $type);
  3.         }
  4.         // load controller
  5.         if (false === $controller = $this->resolver->getController($request)) {
  6.             throw new NotFoundHttpException(\sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
  7.         }
  8.         $event = new ControllerEvent($this, $controller, $request, $type);
  9.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response = null;
  4.         try {
  5.             return $response = $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         }
  2.         $request = $this->duplicateRequest($throwable, $event->getRequest());
  3.         try {
  4.             $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false);
  5.         } catch (\Exception $e) {
  6.             $f = FlattenException::createFromThrowable($e);
  7.             $this->logException($e, \sprintf('Exception thrown when handling an exception (%s: %s at %s line %s)', $f->getClass(), $f->getMessage(), basename($e->getFile()), $e->getLine()));
  1.         $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
  2.         $e = $this->stopwatch->start($this->name, 'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event, $eventName, $this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners = $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners, $eventName, $event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName, $event);
  3.             try {
  4.                 $e = $this->stopwatch->start($eventName, 'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event, $eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * Handles a throwable by trying to convert it to a Response.
  2.      */
  3.     private function handleThrowable(\Throwable $e, Request $request, int $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this, $request, $type, $e, isKernelTerminating: $this->terminating);
  6.         $this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e = $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.         if ($pop = $request !== $this->requestStack->getMainRequest()) {
  2.             $this->requestStack->push($request);
  3.         }
  4.         try {
  5.             $response = $this->handleThrowable($exception, $request, self::MAIN_REQUEST);
  6.         } finally {
  7.             if ($pop) {
  8.                 $this->requestStack->pop();
  9.             }
  10.         }
  1.                         if ($hasRun) {
  2.                             throw $e;
  3.                         }
  4.                         $hasRun = true;
  5.                         $kernel->terminateWithException($e, $request);
  6.                     };
  7.                 }
  8.             } elseif ($event instanceof ConsoleEvent && $app = $event->getCommand()->getApplication()) {
  9.                 $output = $event->getOutput();
  10.                 if ($output instanceof ConsoleOutputInterface) {
in /var/www/dev.communesmaroc.com/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 538)
  1.             $this->exceptionHandler = null;
  2.         }
  3.         try {
  4.             if (null !== $exceptionHandler) {
  5.                 $exceptionHandler($exception);
  6.                 return;
  7.             }
  8.             $handlerException ??= $exception;
  9.         } catch (\Throwable $handlerException) {
ErrorHandler->handleException()

ErrorException

Warning: require(/var/www/dev.communesmaroc.com/var/cache/dev/ContainerMG0L4sO/getDebug_Security_EventDispatcher_LoginService.php): Failed to open stream: No such file or directory

  1.         }
  2.     }
  3.     public function lateCollect(): void
  4.     {
  5.         foreach ($this->dispatchers as $name => $dispatcher) {
  6.             if (!$dispatcher instanceof TraceableEventDispatcher) {
  7.                 continue;
  8.             }
  9.             $this->setCalledListeners($dispatcher->getCalledListeners($this->currentRequest), $name);
  1.     public function saveProfile(Profile $profile): bool
  2.     {
  3.         // late collect
  4.         foreach ($profile->getCollectors() as $collector) {
  5.             if ($collector instanceof LateDataCollectorInterface) {
  6.                 $collector->lateCollect();
  7.             }
  8.         }
  9.         if (!($ret = $this->storage->write($profile)) && null !== $this->logger) {
  10.             $this->logger->warning('Unable to store the profiler information.', ['configured_storage' => $this->storage::class]);
  1.             }
  2.         }
  3.         // save profiles
  4.         foreach ($this->profiles as $request) {
  5.             $this->profiler->saveProfile($this->profiles[$request]);
  6.         }
  7.         $this->reset();
  8.     }
  1.         $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
  2.         $e = $this->stopwatch->start($this->name, 'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event, $eventName, $this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners = $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners, $eventName, $event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName, $event);
  3.             try {
  4.                 $e = $this->stopwatch->start($eventName, 'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event, $eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.     public function terminate(Request $request, Response $response): void
  2.     {
  3.         try {
  4.             $this->terminating = true;
  5.             $this->dispatcher->dispatch(new TerminateEvent($this, $request, $response), KernelEvents::TERMINATE);
  6.         } finally {
  7.             $this->terminating = false;
  8.         }
  9.     }
  1.         if (false === $this->booted) {
  2.             return;
  3.         }
  4.         if ($this->getHttpKernel() instanceof TerminableInterface) {
  5.             $this->getHttpKernel()->terminate($request, $response);
  6.         }
  7.     }
  8.     public function shutdown(): void
  9.     {
  1.         } else {
  2.             $response->send();
  3.         }
  4.         if ($this->kernel instanceof TerminableInterface) {
  5.             $this->kernel->terminate($this->request, $response);
  6.         }
  7.         return 0;
  8.     }
  9. }
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/dev.communesmaroc.com/vendor/autoload_runtime.php') in /var/www/dev.communesmaroc.com/public/index.php (line 133)
  1.     }
  2. }
  3. use App\Kernel;
  4. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  5. return function (array $context) {
  6.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  7. };

Stack Traces 2

[2/2] ErrorException
ErrorException:
Warning: require(/var/www/dev.communesmaroc.com/var/cache/dev/ContainerMG0L4sO/getErrorControllerService.php): Failed to open stream: No such file or directory

  at /var/www/dev.communesmaroc.com/var/cache/dev/ContainerMG0L4sO/App_KernelDevDebugContainer.php:1178
  at require()
     (/var/www/dev.communesmaroc.com/var/cache/dev/ContainerMG0L4sO/App_KernelDevDebugContainer.php:1178)
  at ContainerMG0L4sO\App_KernelDevDebugContainer->load()
     (/var/www/dev.communesmaroc.com/vendor/symfony/dependency-injection/Container.php:221)
  at Symfony\Component\DependencyInjection\Container::make()
     (/var/www/dev.communesmaroc.com/vendor/symfony/dependency-injection/Container.php:203)
  at Symfony\Component\DependencyInjection\Container->get()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php:38)
  at Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->instantiateController()
     (/var/www/dev.communesmaroc.com/vendor/symfony/framework-bundle/Controller/ControllerResolver.php:25)
  at Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver->instantiateController()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/Controller/ControllerResolver.php:115)
  at Symfony\Component\HttpKernel\Controller\ControllerResolver->createController()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/Controller/ControllerResolver.php:95)
  at Symfony\Component\HttpKernel\Controller\ControllerResolver->getController()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/Controller/TraceableControllerResolver.php:33)
  at Symfony\Component\HttpKernel\Controller\TraceableControllerResolver->getController()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/HttpKernel.php:166)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/EventListener/ErrorListener.php:99)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
     (/var/www/dev.communesmaroc.com/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/www/dev.communesmaroc.com/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/www/dev.communesmaroc.com/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/www/dev.communesmaroc.com/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/HttpKernel.php:241)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/HttpKernel.php:134)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php:77)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}()
     (/var/www/dev.communesmaroc.com/vendor/symfony/error-handler/ErrorHandler.php:538)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException()                
[1/2] ErrorException
ErrorException:
Warning: require(/var/www/dev.communesmaroc.com/var/cache/dev/ContainerMG0L4sO/getDebug_Security_EventDispatcher_LoginService.php): Failed to open stream: No such file or directory

  at /var/www/dev.communesmaroc.com/var/cache/dev/ContainerMG0L4sO/App_KernelDevDebugContainer.php:1178
  at require()
     (/var/www/dev.communesmaroc.com/var/cache/dev/ContainerMG0L4sO/App_KernelDevDebugContainer.php:1178)
  at ContainerMG0L4sO\App_KernelDevDebugContainer->load()
     (/var/www/dev.communesmaroc.com/var/cache/dev/ContainerMG0L4sO/App_KernelDevDebugContainer.php:1228)
  at ContainerMG0L4sO\App_KernelDevDebugContainer::ContainerMG0L4sO\{closure}()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/DataCollector/EventDataCollector.php:68)
  at Symfony\Component\HttpKernel\DataCollector\EventDataCollector->lateCollect()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/Profiler/Profiler.php:93)
  at Symfony\Component\HttpKernel\Profiler\Profiler->saveProfile()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/EventListener/ProfilerListener.php:129)
  at Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelTerminate()
     (/var/www/dev.communesmaroc.com/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (/var/www/dev.communesmaroc.com/vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/www/dev.communesmaroc.com/vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/www/dev.communesmaroc.com/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/HttpKernel.php:114)
  at Symfony\Component\HttpKernel\HttpKernel->terminate()
     (/var/www/dev.communesmaroc.com/vendor/symfony/http-kernel/Kernel.php:147)
  at Symfony\Component\HttpKernel\Kernel->terminate()
     (/var/www/dev.communesmaroc.com/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:53)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (/var/www/dev.communesmaroc.com/vendor/autoload_runtime.php:32)
  at require_once('/var/www/dev.communesmaroc.com/vendor/autoload_runtime.php')
     (/var/www/dev.communesmaroc.com/public/index.php:133)