logo MINNIS code & consultancy

TEMPLATE phone IS MISSING
Unable to create the storage directory (/home/minniseu/var/cache/prod/profiler/74/67). (500 Internal Server Error)

Symfony Exception

RuntimeException

HTTP 500 Internal Server Error

Unable to create the storage directory (/home/minniseu/var/cache/prod/profiler/74/67).

Exception

RuntimeException

  1.         $profileIndexed is_file($file);
  2.         if (!$profileIndexed) {
  3.             // Create directory
  4.             $dir \dirname($file);
  5.             if (!is_dir($dir) && false === @mkdir($dir0777true) && !is_dir($dir)) {
  6.                 throw new \RuntimeException(sprintf('Unable to create the storage directory (%s).'$dir));
  7.             }
  8.         }
  9.         $profileToken $profile->getToken();
  10.         // when there are errors in sub-requests, the parent and/or children tokens
  1.             if ($collector instanceof LateDataCollectorInterface) {
  2.                 $collector->lateCollect();
  3.             }
  4.         }
  5.         if (!($ret $this->storage->write($profile)) && null !== $this->logger) {
  6.             $this->logger->warning('Unable to store the profiler information.', ['configured_storage' => \get_class($this->storage)]);
  7.         }
  8.         return $ret;
  9.     }
  1.             }
  2.         }
  3.         // save profiles
  4.         foreach ($this->profiles as $request) {
  5.             $this->profiler->saveProfile($this->profiles[$request]);
  6.         }
  7.         $this->profiles = new \SplObjectStorage();
  8.         $this->parents = new \SplObjectStorage();
  9.     }
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         \call_user_func($this->listener$event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             \call_user_func($listener$event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
  1.         if (null === $event) {
  2.             $event = new Event();
  3.         }
  4.         if ($listeners $this->getListeners($eventName)) {
  5.             $this->doDispatch($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->preDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($eventName$event);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
TraceableEventDispatcher->dispatch() in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 88)
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function terminate(Request $requestResponse $response)
  5.     {
  6.         $this->dispatcher->dispatch(KernelEvents::TERMINATE, new PostResponseEvent($this$request$response));
  7.     }
  8.     /**
  9.      * @internal
  10.      */
  1.         if (false === $this->booted) {
  2.             return;
  3.         }
  4.         if ($this->getHttpKernel() instanceof TerminableInterface) {
  5.             $this->getHttpKernel()->terminate($request$response);
  6.         }
  7.     }
  8.     /**
  9.      * {@inheritdoc}
Kernel->terminate() in web/app.php (line 11)
  1. $kernel = new AppKernel('prod'true);
  2. $request Request::createFromGlobals();
  3. $response $kernel->handle($request);
  4. $response->send();
  5. $kernel->terminate($request$response);
require_once('/home/minniseu/web/app.php') in web/index.php (line 7)
  1. if (empty($_SERVER['HTTPS'])) {
  2.     header("Location: https://www.minnis.eu/");
  3. }
  4. require_once "app.php";

Stack Trace

RuntimeException

RuntimeException:
Unable to create the storage directory (/home/minniseu/var/cache/prod/profiler/74/67).

  at vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php:141
  at Symfony\Component\HttpKernel\Profiler\FileProfilerStorage->write()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Profiler/Profiler.php:105)
  at Symfony\Component\HttpKernel\Profiler\Profiler->saveProfile()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php:113)
  at Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelTerminate()
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:214)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:143)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:88)
  at Symfony\Component\HttpKernel\HttpKernel->terminate()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:165)
  at Symfony\Component\HttpKernel\Kernel->terminate()
     (web/app.php:11)
  at require_once('/home/minniseu/web/app.php')
     (web/index.php:7)