Warning: mkdir(): Permission denied in /mnt/web201/a0/78/57812878/htdocs/libraries/vendor/joomla/session/src/Handler/FilesystemHandler.php on line 61 Could not create session directory "/temp" (500 Whoops, looks like something went wrong.)

RuntimeException

HTTP 500 Whoops, looks like something went wrong.

Could not create session directory "/temp"

Exception

RuntimeException

  1. }
  2. // Create the directory if it doesn't exist
  3. if (!is_dir($baseDir)) {
  4. if (!mkdir($baseDir, 0755)) {
  5. throw new \RuntimeException(sprintf('Could not create session directory "%s"', $baseDir));
  6. }
  7. }
  8. if (!headers_sent()) {
  9. ini_set('session.save_path', $path);
  1. // If we still have no path, as a last resort fall back to the system's temporary directory
  2. if (empty($path)) {
  3. $path = sys_get_temp_dir();
  4. }
  5. return new Handler\FilesystemHandler($path);
  6. case 'memcached':
  7. if (!Handler\MemcachedHandler::isSupported()) {
  8. throw new \RuntimeException('Memcached is not supported on this system.');
  9. }
SessionFactory->createSessionHandler() in /mnt/web201/a0/78/57812878/htdocs/libraries/src/Service/Provider/Session.php (line 167)
  1. if ($config->get('force_ssl') == 2) {
  2. $options['force_ssl'] = true;
  3. }
  4. $handler = $container->get('session.factory')->createSessionHandler($options);
  5. if (!$container->has('session.handler')) {
  6. $this->registerSessionHandlerAsService($container, $handler);
  7. }
in /mnt/web201/a0/78/57812878/htdocs/libraries/vendor/joomla/di/src/ContainerResource.php -> {closure:Joomla\CMS\Service\Provider\Session::register():146} (line 162)
  1. {
  2. $callable = $this->factory;
  3. if ($this->isShared()) {
  4. if ($this->instance === null) {
  5. $this->instance = $callable($this->container);
  6. }
  7. return $this->instance;
  8. }
  1. }
  2. throw new KeyNotFoundException(sprintf("Resource '%s' has not been registered with the container.", $resourceName));
  3. }
  4. return $this->resources[$key]->getInstance();
  5. }
  6. /**
  7. * Check if specified resource exists.
  8. *
  1. 'JApplicationSite',
  2. function (Container $container) {
  3. $app = new SiteApplication($container->get(CMSInput::class), $container->get('config'), null, $container);
  4. $app->setDispatcher($container->get(DispatcherInterface::class));
  5. $app->setLogger($container->get(LoggerInterface::class));
  6. $app->setSession($container->get(SessionInterface::class));
  7. $app->setUserFactory($container->get(UserFactoryInterface::class));
  8. $app->setCacheControllerFactory($container->get(CacheControllerFactoryInterface::class));
  9. $app->setMenuFactory($container->get(MenuFactoryInterface::class));
  10. // Ensure that session purging is configured now we have a dispatcher
in /mnt/web201/a0/78/57812878/htdocs/libraries/vendor/joomla/di/src/ContainerResource.php -> {closure:Joomla\CMS\Service\Provider\Application::register():100} (line 162)
  1. {
  2. $callable = $this->factory;
  3. if ($this->isShared()) {
  4. if ($this->instance === null) {
  5. $this->instance = $callable($this->container);
  6. }
  7. return $this->instance;
  8. }
  1. }
  2. throw new KeyNotFoundException(sprintf("Resource '%s' has not been registered with the container.", $resourceName));
  3. }
  4. return $this->resources[$key]->getInstance();
  5. }
  6. /**
  7. * Check if specified resource exists.
  8. *
  1. ->alias(\Joomla\CMS\Session\Session::class, 'session.web.site')
  2. ->alias(\Joomla\Session\Session::class, 'session.web.site')
  3. ->alias(\Joomla\Session\SessionInterface::class, 'session.web.site');
  4. // Instantiate the application.
  5. $app = $container->get(\Joomla\CMS\Application\SiteApplication::class);
  6. // Set the application as global app
  7. \Joomla\CMS\Factory::$application = $app;
  8. // Execute the application.
require_once('/mnt/web201/a0/78/57812878/htdocs/includes/app.php') in /mnt/web201/a0/78/57812878/htdocs/index.php (line 51)
  1. // ... die
  2. die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ . '/includes/app.php';

Stack Trace

RuntimeException
RuntimeException:
Could not create session directory "/temp"

  at /mnt/web201/a0/78/57812878/htdocs/libraries/vendor/joomla/session/src/Handler/FilesystemHandler.php:62
  at Joomla\Session\Handler\FilesystemHandler->__construct()
     (/mnt/web201/a0/78/57812878/htdocs/libraries/src/Session/SessionFactory.php:75)
  at Joomla\CMS\Session\SessionFactory->createSessionHandler()
     (/mnt/web201/a0/78/57812878/htdocs/libraries/src/Service/Provider/Session.php:167)
  at Joomla\CMS\Service\Provider\Session->{closure:Joomla\CMS\Service\Provider\Session::register():146}()
     (/mnt/web201/a0/78/57812878/htdocs/libraries/vendor/joomla/di/src/ContainerResource.php:162)
  at Joomla\DI\ContainerResource->getInstance()
     (/mnt/web201/a0/78/57812878/htdocs/libraries/vendor/joomla/di/src/Container.php:95)
  at Joomla\DI\Container->get()
     (/mnt/web201/a0/78/57812878/htdocs/libraries/src/Service/Provider/Application.php:104)
  at Joomla\CMS\Service\Provider\Application->{closure:Joomla\CMS\Service\Provider\Application::register():100}()
     (/mnt/web201/a0/78/57812878/htdocs/libraries/vendor/joomla/di/src/ContainerResource.php:162)
  at Joomla\DI\ContainerResource->getInstance()
     (/mnt/web201/a0/78/57812878/htdocs/libraries/vendor/joomla/di/src/Container.php:95)
  at Joomla\DI\Container->get()
     (/mnt/web201/a0/78/57812878/htdocs/includes/app.php:52)
  at require_once('/mnt/web201/a0/78/57812878/htdocs/includes/app.php')
     (/mnt/web201/a0/78/57812878/htdocs/index.php:51)