Project

General

Profile

Actions

Bug #28266

closed

When an extension is installed or removed, the autoloader cache must be flushed

Added by Helmut Hummel over 13 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2011-07-17
Due date:
% Done:

0%

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

Description

Problem:
If an extension is installed during a request, the autoloader cache must be removed.
If not, it may be that classes are not found because they are missing in the autoloader registry

Solution:
Remove the autoloader cache if t3lib_extmgm::removeCacheFiles() is called

Steps to reproduce:
Use a plain dummy package.
Call the 123 install wizard.
You'll get "PHP Fatal error: Class 'tx_dbal_querycache' not found", because dbal activates itself, but the caches are not flushed and 'tx_dbal_querycache' is not present in the autoloader registry.


Files

clearautoloadcache.diff (700 Bytes) clearautoloadcache.diff Helmut Hummel, 2011-07-17 16:48

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Task #28219: Invalidate autoloader cache in emClosedChristian Kuhn2011-07-14

Actions
Related to TYPO3 Core - Bug #28589: Autoloader Cache is not updatedClosed2011-07-30

Actions
Is duplicate of TYPO3 Core - Bug #28187: Clear autoloader cache if dbal is loaded in 1-2-3ClosedChristian Kuhn2011-07-13

Actions
Has duplicate TYPO3 Core - Bug #28324: Autoloader cache is not clearedRejected2011-07-19

Actions
Actions #1

Updated by Helmut Hummel over 13 years ago

My solution is a bit ugly, because I add a dependency to the cache identifier of the autoloader to another class, but at least it fixes the issue for now.
Probably Christian has a better idea how this can be solved.

Actions #2

Updated by Marc Bastian Heinrichs over 13 years ago

Can confirm this issue - had this just a minute before.

Actions #3

Updated by Christian Kuhn over 13 years ago

@Helmut: The issue was not solved for you with https://review.typo3.org/#change,3319 ? This is issue #28187

Same has been done for em with issue #28219

Actions #4

Updated by Christian Kuhn over 13 years ago

If testing again make sure to checkout master of the dbal submodule, since submodule pointers currently point to a version where the patch is not applied, yet.

Actions #5

Updated by Helmut Hummel over 13 years ago

  • Status changed from New to Closed

Thanks Christian. After updating DBAL like you suggested, this is of course solved.

Actions #6

Updated by Marc Bastian Heinrichs over 13 years ago

After checking the used dbal branch and checkout master I can confirm that its solved.

Actions #7

Updated by Ernesto Baschny over 11 years ago

  • Target version deleted (4.6.0-beta1)
Actions

Also available in: Atom PDF