Project

General

Profile

Actions

Bug #27705

closed

Handle missing options definition in caching configuration

Added by Xavier Perseguers over 13 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2011-06-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #27689: Caching framework: Improve default configuration handlingClosed2011-06-24

Actions
Actions

Also available in: Atom PDF