[TYPO3-english] TYPO3 error:
Dennis Vlaar
woooha at live.nl
Tue Aug 10 18:04:43 CEST 2010
Hi David,
I've done what you have suggested. So it looks like:
if (!function_exists('xdebug')) {
// simple debug function which prints output immediately
function xdebug($var = '', $debugTitle = 'xdebug') {
// If you wish to use the debug()-function, and it does not output something, please edit the IP mask in TYPO3_CONF_VARS
if (!t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'])) return;
t3lib_div::debug($var, $debugTitle);
}
}
But this causes the same error, only on a different line:
Fatal error: Cannot redeclare debug() (previously declared in /***/t3lib/config_default.php:496) in /***/t3lib/config_default.php on line 507
Lol, first it were lines 489 - 493 and now it's 496 - 507.
> Date: Tue, 10 Aug 2010 17:48:07 +0200
> From: typo3-en at bruchmann-web.de
> To: typo3-english at lists.typo3.org
> Subject: Re: [TYPO3-english] TYPO3 error:
>
> ----- Ursprüngliche Nachricht -----
> Von: wooha . <woooha at live.nl>
> Gesendet: Dienstag, 10. August 2010 10:52:49
> An: typo3-english at lists.typo3.org
> CC:
> Betreff: [TYPO3-english] TYPO3 error:
> >
> > Hello everyone,
> >
> > I was hoping to get some help from you. Because this is my first TYPO3 4.4.2 installation.
> >
> > I'm getting this error:
> >
> > Fatal error: Cannot redeclare xdebug() (previously declared in /***/t3lib/config_default.php:489) in /***/config_default.php on line 493
> >
> > How to fix this??
> >
>
>
> Hi,
>
> I had this message too once and it seems that the script
> config_default.php is called twice in some cases - in most installations
> I can't reproduce the message or fault.
>
> For a quick fix just note the following inquiry around the function:
>
> if (!function_exists('xdebug')) {
>
> [ HERE THE FUNCTION ]
>
> }
>
>
> Regards,
> David
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list