[TYPO3-dev] PHP Fatal error: Cannot redeclare class t3lib_cs
Georg Großberger
georg at grossberger.at
Sat Jan 3 14:46:59 CET 2009
Hi
The dirty way: wrap a
if (!class_exists('t3lib_cs')) {
...
}
around the class definition in t3lib/class.t3lib_cs.php
The Problem seems to be that this file is included more than once. TYPO3
itself uses "require_ONCE" or "include_ONCE" to avoid that. Do you have
a special extension, a core hack or maybe an opcode cache installed
which causes that?
I once had a similar problem with the lib extension on a server that
used the XCache opcode cache.
Regards,
Georg
Дмитрий Сподарец schrieb:
> Hi.
> After installation Typo3 4.2.3 on ALTLinux 4.0 with apache 1.3/php
> 5.2.5/mysql 5.0.67 I have several problems:
>
> [Fri Jan 2 18:56:02 2009] [error] PHP Fatal error: Cannot redeclare class
> t3lib_cs in /www/root.od.ua/html/t3lib/class.t3lib_cs.php on line 136
> [Fri Jan 2 19:00:02 2009] [error] PHP Fatal error: Cannot redeclare class
> t3lib_xml in /var/www/vhosts/typo3_src-4.2.3/t3lib/class.t3lib_xml.php on
> line 86
> [Fri Jan 2 19:03:28 2009] [error] PHP Fatal error: Cannot redeclare class
> t3lib_cs in /www/root.od.ua/html/t3lib/class.t3lib_cs.php on line
> 136
>
> Who knows, as this problem is possible to correct?
>
> --------
> Dima
More information about the TYPO3-dev
mailing list