TYPO3 Exception 1232985915¶
Note
Below, the TYPO3 community may have provided additional information or solutions for this exception. However, these may or may not apply to your particular case. If you can provide more information, you should come back here and add your experience and solution steps to this issue once you have resolved it.
General TYPO3 troubleshooting tips can be found in the Troubleshooting section in the menu. You can also ask questions and receive support in the TYPO3 Questions category on talk.typo3.org.
To add your experience, click "Edit on GitHub" above and follow the "Edit on GitHub" workflow. Also check out our tip on Coding Style and reST.
The APCu backend cannot be used because apcu is disabled on CLI¶
[ TYPO3\CMS\Core\Cache\Exception ]
#1232985915: The APCu backend cannot be used because apcu is disabled on CLI.
thrown in file typo3/sysext/core/Classes/Cache/Backend/ApcuBackend.php
in line 84
This error occurs if TYPO3 is executed in command line context. The
reason is, that typo3conf/LocalConfiguration.php
uses
TYPO3\\CMS\\Core\\Cache\\Backend\\ApcuBackend
as caching backend,
which works fine if called using an HTTP-context (e.g. via Apache or
nginx) but does not if invoked via CLI (command line interface).
Solutions¶
- Change Cache Backend: Goto TYPO3 Install Tool --> Configuration Presets and
choose Database cache backend (or: something different then
apcu
) and save. - Adjust PHP CLI configuration to fix this behavior: modify configuration file
/etc/php/7.1/cli/conf.d/20-apcu.ini
(as an example on Ubuntu 17.10) and add new settingapc.enable_cli=on