[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:39:00 +0000 (17:39 +0100)
commitef426db6ae4fe824c037c8b7100d4258b030bca5
treec294bfce4ee72cfb12a8bf67ee21e75171bf98de
parentf3fd603cc299cbe54e050dff04d6bc143e9a34cf
[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/16893
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