[TYPO3-core] RFC: Bug #8260: Update Wizard in install tool force temp-configuration files and load configuration twice

Ernesto Baschny [cron IT] ernst at cron-it.de
Tue Sep 7 08:29:00 CEST 2010


Hi Oli,

I tried my best, but was not able to reproduce the error. I have:

$TYPO3_CONF_VARS['EXT']['extCache'] = '0';

and I installed your test ext. I go to the Upgrade Wizard, and it works.
Shouldn't it?

Any futher hints?

Cheers,
Ernesto

Oliver Hader schrieb am 03.09.2010 15:56:
> 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
> 


More information about the TYPO3-team-core mailing list