Issue Bug Closed

#27705Handle missing options definition in caching configuration

Xavier Perseguers 06/26/11, 09:54 updated 06/01/13, 14:43

Description

Since #27543, caching tables do not need to be defined anymore. This leads to an empty ‘options’ configuration array in localconf.php. However, trying to remove it altogether leads to a fatal error:

PHP Catchable Fatal Error: Argument 4 passed to t3lib_cache_Factory::create() must be an array, null given, called in /path/to/t3lib/cache/class.t3lib_cache_manager.php on line 252 and defined in /path/to/t3lib/cache/class.t3lib_cache_factory.php line 83 (More information)

Proposal:

Check that $backendOptions is really an array (and not NULL) in t3lib_cache_Manager::createCache() and if NULL, change it to an empty array.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.