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.
{ 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); }
} $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' : '';
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
* @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.
$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'])) {
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]; }
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,
// 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(); });
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(); });
} 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; }
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); } }
*/ 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)) {
} $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' : '';
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
* @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.
$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'])) {
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]; }
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,
// 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(); });
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(); });