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/1) #1476107295 TYPO3\CMS\Core\Error\Exception

PHP Warning: file_put_contents(/data/html/typo3temp/var/cache/code/di/6606dd53cb45d685210923.temp): Failed to open stream: No such file or directory in /data/html/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php line 229

in /data/html/typo3/sysext/core/Classes/Error/ErrorHandler.php line 137
        }

        $message = self::ERROR_LEVEL_LABELS[$errorLevel] . ': ' . $errorMessage . ' in ' . $errorFile . ' line ' . $errorLine;
        if ($errorLevel & $this->exceptionalErrors) {
            throw new Exception($message, 1476107295);
        }

        $message = $this->getFormattedLogMessage($message);

at TYPO3\CMS\Core\Error\ErrorHandler->handleError()
at file_put_contents()
in /data/html/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php line 229
        if ($entryIdentifier === '') {
            throw new \InvalidArgumentException('The specified entry identifier must not be empty.', 1334756736);
        }
        $temporaryCacheEntryPathAndFilename = $this->cacheDirectory . StringUtility::getUniqueId() . '.temp';
        $result = file_put_contents($temporaryCacheEntryPathAndFilename, $data);
        GeneralUtility::fixPermissions($temporaryCacheEntryPathAndFilename);
        if ($result === false) {
            throw new Exception('The temporary cache file "' . $temporaryCacheEntryPathAndFilename . '" could not be written.', 1334756737);
        }
at TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend->set()
in /data/html/typo3/sysext/core/Classes/DependencyInjection/Cache/ContainerBackend.php line 36
    public function set($entryIdentifier, $data, array $tags = [], $lifetime = null)
    {
        // Remove stale cache files, once a new DI container was built
        parent::flush();
        parent::set($entryIdentifier, $data, $tags, $lifetime);
    }

    public function forceFlush(): void
    {
at TYPO3\CMS\Core\DependencyInjection\Cache\ContainerBackend->set()
in /data/html/typo3/sysext/core/Classes/Cache/Frontend/PhpFrontend.php line 61
                throw new \InvalidArgumentException('"' . $tag . '" is not a valid tag for a cache entry.', 1264023825);
            }
        }
        $sourceCode = '<?php' . LF . $sourceCode . LF . '#';
        $this->backend->set($entryIdentifier, $sourceCode, $tags, $lifetime);
    }

    /**
     * Finds and returns a variable value from the cache.
at TYPO3\CMS\Core\Cache\Frontend\PhpFrontend->set()
in /data/html/typo3/sysext/core/Classes/DependencyInjection/ContainerBuilder.php line 172
            throw new \RuntimeException('Could not generate container code', 1599767133);
        }
        $code = str_replace(', )', ')', $code);

        $cache->set($cacheIdentifier, $code);

        return $code;
    }

at TYPO3\CMS\Core\DependencyInjection\ContainerBuilder->dumpContainer()
in /data/html/typo3/sysext/core/Classes/DependencyInjection/ContainerBuilder.php line 95

        $hasCache = $cache->requireOnce($cacheIdentifier) !== false;
        if (!$hasCache) {
            $containerBuilder = $this->buildContainer($packageManager, $serviceProviderRegistry);
            $this->dumpContainer($containerBuilder, $cache, $cacheIdentifier);
            $cache->requireOnce($cacheIdentifier);
        }
        $container = new $containerClassName();

at TYPO3\CMS\Core\DependencyInjection\ContainerBuilder->createDependencyInjectionContainer()
in /data/html/typo3/sysext/core/Classes/Core/Bootstrap.php line 142
            // @internal
            'boot.state' => $bootState,
        ]);

        $container = $builder->createDependencyInjectionContainer($packageManager, $dependencyInjectionContainerCache, $failsafe);

        // Push the container to GeneralUtility as we want to make sure its
        // makeInstance() method creates classes using the container from now on.
        GeneralUtility::setContainer($container);
at TYPO3\CMS\Core\Core\Bootstrap::init()
in /data/html/index.php line 20
// Set up the application for the frontend
call_user_func(static function () {
    $classLoader = require __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 /data/html/index.php line 21
call_user_func(static function () {
    $classLoader = require __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();
});