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 section "Troubleshooting" of the menu, and live support is available in the TYPO3 Slack channel #typo3-cms. (See How to get your TYPO3 Slack account.)

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

  1. Change Cache Backend: Goto TYPO3 Install Tool --> Configuration Presets and choose Database cache backend (or: something different then apcu) and save.

  2. 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 setting apc.enable_cli=on