Project

General

Profile

Actions

Bug #21181

closed

Call to getCache() on a non-object

Added by Franz Holzinger over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Must have
Category:
Caching
Target version:
-
Start date:
2009-10-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In some cases, if you call t3lib_div::xml2array out from localconf.php of an extension, then the caching has not been initialized.

Fatal error: Call to a member function getCache() on a non-object in ...../typo3_src-4.3.0beta1/t3lib/class.t3lib_page.php on line 978

$contentHashCache = $GLOBALS['typo3CacheManager']->getCache('cache_hash');

Solution:
It should be checked if the object $GLOBALS['typo3CacheManager'] exists, and if not, the else branch should be called.

(issue imported from #M12109)


Files

0012109.patch (1.64 KB) 0012109.patch Administrator Admin, 2009-10-07 19:25
12109_v2.diff (1.28 KB) 12109_v2.diff Administrator Admin, 2009-10-14 21:44

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #21196: autoloaders registered by extensions slow down the core autoloaderClosedRupert Germann2009-10-06

Actions
Related to TYPO3 Core - Feature #20562: Speed up xml2array by adding a two level cacheClosedRupert Germann2009-06-03

Actions
Related to TYPO3 Core - Bug #21735: Caching error when clearing indexed search elements in info moduleClosedOliver Hader2009-11-29

Actions
Actions

Also available in: Atom PDF