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