[TYPO3-dev] Problems with TYPO3_mainDir constant.
Björn Pedersen
pedersen at frm2.tum.de
Fri Jul 16 11:32:11 CEST 2010
Am 16.07.2010 10:54, schrieb Stig Nørgaard Færch:
> I recently upgraded a site to 4.3.
> Then I started to experience a unfrequently problem which makes the
> backend go down with this error:
>
> Warning: require_once(/home/site1/www/TYPO3_mainDirsysext/lang/lang.php)
> [function.require-once]: failed to open stream: No such file or
> directory in /var/lib/typo3/typo3_src-4.4.0/t3lib/config_default.php on
> line 593
>
> Fatal error: require_once() [function.require]: Failed opening required
> '/home/site1/www/TYPO3_mainDirsysext/lang/lang.php'
> (include_path='.:/usr/share/php5:/usr/share/php') in
> /var/lib/typo3/typo3_src-4.4.0/t3lib/config_default.php on line 593
>
> What seems to happens is that the value of the constant TYPO3_mainDir
> becomes 'TYPO3_mainDirsysext' instead of just 'sysext'.
no, that should become 'typo3/sysext' (in a typical setup, unless you
renamed the typo3 directory). Normally it is set in init.php (and
thumbs.php).
So my guess, something bypasses the loading of init.php. That should not
happen.
Björn
More information about the TYPO3-dev
mailing list