[BUGFIX] ClassLoader error after installing extension
authorOliver Hader <oliver@typo3.org>
Wed, 28 Nov 2012 10:42:33 +0000 (11:42 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 30 Nov 2012 16:35:28 +0000 (17:35 +0100)
commitea8e74d8fbda1768c385bbcf48f8e73fecfde7ae
tree978e8b0268f534762520fcca5dad139539e650e3
parent78d98f093e7697d3146f897e27250e551748a4df
[BUGFIX] ClassLoader error after installing extension

When e.g. installing tt_news version 3.4.0 (compatible to
TYPO3 CMS 6.0.0) a fatal error will be shown since tt_news
uses a class in ext_tables.php that requires the autoloader's
registry information.

The following happens on installing an extension:
* flushing the caches (including the class loader cache)
* redirecting to list view of extension manager
* triggering shutdown method in ClassLoader
* updating cache if $cacheUpdateRequired is set

This updates the autoloader registry with old data since
the extension's ext_autoload.php has not been considered at
that time.

The issue is fixed by explicitly reloading the ClassLoader
cache after TYPO3_LOADED_EXT has been reloaded.

Change-Id: Ifd2240bf004dbdfd34ded76618a5650f7af08d0e
Fixes: #43381
Releases: 6.0, 6.1
Reviewed-on: http://review.typo3.org/16832
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Classes/Core/ClassLoader.php
typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php