[TYPO3-core] RFC: Bug #8260: Update Wizard in install tool force temp-configuration files and load configuration twice
Oliver Hader
oliver at typo3.org
Sun Sep 19 16:05:33 CEST 2010
FYI: Committed to SVN:
* TYPO3_4-2 (rev. 8815)
* TYPO3_4-3 (rev. 8816)
* TYPO3_4-4 (rev. 8817)
* Trunk (rev. 8818)
olly
Am 03.09.10 15:56, schrieb Oliver Hader:
> This is a SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=8260
>
> Branches: TYPO3_4-2, TYPO3_4-3, TYPO3_4-4, Trunk
>
> Problem:
> Imagine the situation that you have an extension installed that defines
> PHP classes or includes class files in ext_localconf.php or ext_tables.php.
> If you now try to update a TYPO3 installation by running the update
> wizard in the install tool, you'll run into a PHP fatal error like:
> "PHP Fatal error: Cannot redeclare class tx_whatever_xyz"
> The reason is that the update wizard removes existing temp_CACHED_*.php
> files, regenerates them and loads them another time just to make sure
> that the uncached versions of ext_localconf.php and ext_tables.php are
> used. The result is, that PHP classes will be defined twice with causes
> the accordant PHP fatal error.
>
> Solution:
> Whenever the install tool is used, the ext_localconf.php and
> ext_tables.php files must not be taken from the cached files - this is
> done by listening for the constant "TYPO3_enterInstallScript".
> Besides that the cached files still must be removed when using the
> update wizard since it could happen that new extensions will be
> installed and caches need to be cleared.
>
> Notes:
> You can test the behaviour the attached extension that includes a PHP
> class file in ext_localconf.php. Add the following to your localconf.php
> file (or set it by using the install tool):
> $TYPO3_CONF_VARS['EXT']['extCache'] = 0;
>
> Without having the patches applied, you should get the PHP fatal error
> when using the update wizard in the install tool.
>
> olly
--
Oliver Hader
TYPO3 v4 Core Team Leader
More information about the TYPO3-team-core
mailing list