Whoops, looks like something went wrong.

Get help in the TYPO3 Documentation

If you need help solving this exception, you can have a look at the TYPO3 Documentation. There you can find solutions provided by the TYPO3 community. Once you have found a solution to the problem, help others by contributing to the documentation page.

Find a solution for this exception in the TYPO3 Documentation.

(1/2) #1303669848 TYPO3\CMS\Core\Cache\Exception

The directory "/home/ccpgatine/repository/var/cache/code/cache_core/" can not be created.

in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php line 188
    {
        try {
            GeneralUtility::mkdir_deep($finalCacheDirectory);
        } catch (\RuntimeException $e) {
            throw new Exception('The directory "' . $finalCacheDirectory . '" can not be created.', 1303669848, $e);
        }
        if (!is_writable($finalCacheDirectory)) {
            throw new Exception('The directory "' . $finalCacheDirectory . '" is not writable.', 1203965200);
        }
at TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend->createFinalCacheDirectory('/home/ccpgatine/repository/var/cache/code/cache_core/')
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php line 91
        }
        $codeOrData = $cache instanceof PhpFrontend ? 'code' : 'data';
        $finalCacheDirectory = $temporaryCacheDirectory . 'cache/' . $codeOrData . '/' . $this->cacheIdentifier . '/';
        if (!is_dir($finalCacheDirectory)) {
            $this->createFinalCacheDirectory($finalCacheDirectory);
        }
        unset($this->temporaryCacheDirectory);
        $this->cacheDirectory = $finalCacheDirectory;
        $this->cacheEntryFileExtension = $cache instanceof PhpFrontend ? '.php' : '';
at TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend->setCache(object(TYPO3\CMS\Core\Cache\Frontend\PhpFrontend))
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Cache/Frontend/AbstractFrontend.php line 53
            throw new \InvalidArgumentException('"' . $identifier . '" is not a valid cache identifier.', 1203584729);
        }
        $this->identifier = $identifier;
        $this->backend = $backend;
        $this->backend->setCache($this);
    }

    /**
     * Returns this cache's identifier
at TYPO3\CMS\Core\Cache\Frontend\AbstractFrontend->__construct('cache_core', object(TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend))
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Cache/Frontend/PhpFrontend.php line 33
     * @param PhpCapableBackendInterface $backend Backend to be used for this cache
     */
    public function __construct($identifier, PhpCapableBackendInterface $backend)
    {
        parent::__construct($identifier, $backend);
    }

    /**
     * Saves the PHP source code in the cache.
at TYPO3\CMS\Core\Cache\Frontend\PhpFrontend->__construct('cache_core', object(TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend))
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Cache/CacheManager.php line 334
            $backendInstance->initializeObject();
        }

        // New used on purpose, see comment above
        $frontendInstance = new $frontend($identifier, $backendInstance);
        if (!$frontendInstance instanceof FrontendInterface) {
            throw new InvalidCacheException('"' . $frontend . '" is not a valid cache frontend object.', 1464550984);
        }
        if (is_callable([$frontendInstance, 'initializeObject'])) {
at TYPO3\CMS\Core\Cache\CacheManager->createCache('cache_core')
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Cache/CacheManager.php line 141
        if ($this->hasCache($identifier) === false) {
            throw new NoSuchCacheException('A cache with identifier "' . $identifier . '" does not exist.', 1203699034);
        }
        if (!isset($this->caches[$identifier])) {
            $this->createCache($identifier);
        }
        return $this->caches[$identifier];
    }

at TYPO3\CMS\Core\Cache\CacheManager->getCache('cache_core')
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Core/Bootstrap.php line 109
        static::initializeErrorHandling();
        static::initializeIO();

        $cacheManager = static::createCacheManager($failsafe ? true : false);
        $coreCache = $cacheManager->getCache('cache_core');
        $assetsCache = $cacheManager->getCache('assets');
        $cacheManager->setLimbo(true);
        $packageManager = static::createPackageManager(
            $failsafe ? FailsafePackageManager::class : PackageManager::class,
at TYPO3\CMS\Core\Core\Bootstrap::init(object(Composer\Autoload\ClassLoader))
in /home/ccpgatine/repository/public/index.php line 24
// Set up the application for the frontend
call_user_func(function () {
    $classLoader = require dirname(__DIR__).'/vendor/autoload.php';
    \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(0, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_FE);
    \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Frontend\Http\Application::class)->run();
});
at {closure}()
in /home/ccpgatine/repository/public/index.php line 25
call_user_func(function () {
    $classLoader = require dirname(__DIR__).'/vendor/autoload.php';
    \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(0, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_FE);
    \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Frontend\Http\Application::class)->run();
});

(2/2) #1170251401 RuntimeException

Could not create directory "/home/ccpgatine/repository/var/cache/code/cache_core/"!

in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Utility/GeneralUtility.php line 2177
            } while (!is_dir($currentPath) && $separatorPosition !== false);
            $result = @mkdir($fullDirectoryPath, $permissionMask, true);
            // Check existence of directory again to avoid race condition. Directory could have get created by another process between previous is_dir() and mkdir()
            if (!$result && !@is_dir($fullDirectoryPath)) {
                throw new \RuntimeException('Could not create directory "' . $fullDirectoryPath . '"!', 1170251401);
            }
        }
        return $firstCreatedPath;
    }
at TYPO3\CMS\Core\Utility\GeneralUtility::createDirectoryPath('/home/ccpgatine/repository/var/cache/code/cache_core/')
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Utility/GeneralUtility.php line 2145
            trigger_error('Second argument $deepDirectory of GeneralUtility::mkdir_deep() will be removed in TYPO3 v10.0, use a combined string as first argument instead.', E_USER_DEPRECATED);
            $fullPath .= ltrim($deepDirectory, '/');
        }
        if ($fullPath !== '/' && !is_dir($fullPath)) {
            $firstCreatedPath = static::createDirectoryPath($fullPath);
            if ($firstCreatedPath !== '') {
                static::fixPermissions($firstCreatedPath, true);
            }
        }
at TYPO3\CMS\Core\Utility\GeneralUtility::mkdir_deep('/home/ccpgatine/repository/var/cache/code/cache_core/')
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php line 186
     */
    protected function createFinalCacheDirectory($finalCacheDirectory)
    {
        try {
            GeneralUtility::mkdir_deep($finalCacheDirectory);
        } catch (\RuntimeException $e) {
            throw new Exception('The directory "' . $finalCacheDirectory . '" can not be created.', 1303669848, $e);
        }
        if (!is_writable($finalCacheDirectory)) {
at TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend->createFinalCacheDirectory('/home/ccpgatine/repository/var/cache/code/cache_core/')
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php line 91
        }
        $codeOrData = $cache instanceof PhpFrontend ? 'code' : 'data';
        $finalCacheDirectory = $temporaryCacheDirectory . 'cache/' . $codeOrData . '/' . $this->cacheIdentifier . '/';
        if (!is_dir($finalCacheDirectory)) {
            $this->createFinalCacheDirectory($finalCacheDirectory);
        }
        unset($this->temporaryCacheDirectory);
        $this->cacheDirectory = $finalCacheDirectory;
        $this->cacheEntryFileExtension = $cache instanceof PhpFrontend ? '.php' : '';
at TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend->setCache(object(TYPO3\CMS\Core\Cache\Frontend\PhpFrontend))
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Cache/Frontend/AbstractFrontend.php line 53
            throw new \InvalidArgumentException('"' . $identifier . '" is not a valid cache identifier.', 1203584729);
        }
        $this->identifier = $identifier;
        $this->backend = $backend;
        $this->backend->setCache($this);
    }

    /**
     * Returns this cache's identifier
at TYPO3\CMS\Core\Cache\Frontend\AbstractFrontend->__construct('cache_core', object(TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend))
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Cache/Frontend/PhpFrontend.php line 33
     * @param PhpCapableBackendInterface $backend Backend to be used for this cache
     */
    public function __construct($identifier, PhpCapableBackendInterface $backend)
    {
        parent::__construct($identifier, $backend);
    }

    /**
     * Saves the PHP source code in the cache.
at TYPO3\CMS\Core\Cache\Frontend\PhpFrontend->__construct('cache_core', object(TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend))
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Cache/CacheManager.php line 334
            $backendInstance->initializeObject();
        }

        // New used on purpose, see comment above
        $frontendInstance = new $frontend($identifier, $backendInstance);
        if (!$frontendInstance instanceof FrontendInterface) {
            throw new InvalidCacheException('"' . $frontend . '" is not a valid cache frontend object.', 1464550984);
        }
        if (is_callable([$frontendInstance, 'initializeObject'])) {
at TYPO3\CMS\Core\Cache\CacheManager->createCache('cache_core')
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Cache/CacheManager.php line 141
        if ($this->hasCache($identifier) === false) {
            throw new NoSuchCacheException('A cache with identifier "' . $identifier . '" does not exist.', 1203699034);
        }
        if (!isset($this->caches[$identifier])) {
            $this->createCache($identifier);
        }
        return $this->caches[$identifier];
    }

at TYPO3\CMS\Core\Cache\CacheManager->getCache('cache_core')
in /home/ccpgatine/repository/public/typo3/sysext/core/Classes/Core/Bootstrap.php line 109
        static::initializeErrorHandling();
        static::initializeIO();

        $cacheManager = static::createCacheManager($failsafe ? true : false);
        $coreCache = $cacheManager->getCache('cache_core');
        $assetsCache = $cacheManager->getCache('assets');
        $cacheManager->setLimbo(true);
        $packageManager = static::createPackageManager(
            $failsafe ? FailsafePackageManager::class : PackageManager::class,
at TYPO3\CMS\Core\Core\Bootstrap::init(object(Composer\Autoload\ClassLoader))
in /home/ccpgatine/repository/public/index.php line 24
// Set up the application for the frontend
call_user_func(function () {
    $classLoader = require dirname(__DIR__).'/vendor/autoload.php';
    \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(0, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_FE);
    \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Frontend\Http\Application::class)->run();
});
at {closure}()
in /home/ccpgatine/repository/public/index.php line 25
call_user_func(function () {
    $classLoader = require dirname(__DIR__).'/vendor/autoload.php';
    \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(0, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_FE);
    \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Frontend\Http\Application::class)->run();
});