[TYPO3-english] TYPO3 error:

David Bruchmann typo3-en at bruchmann-web.de
Tue Aug 10 18:15:02 CEST 2010


----- Ursprüngliche Nachricht -----
Von:        Dennis Vlaar <woooha at live.nl>
Gesendet:   Dienstag, 10. August 2010 18:04:43
An:         typo3-english at lists.typo3.org
CC:
Betreff:    Re: [TYPO3-english] TYPO3 error:
>
> 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.
>
>


Hey Dennis,

I suggested that because there are several functions noted in that script.

You can repeat the step for each function just by replacing the name in 
the inquiry, but an easier way is just to replace the last bracket you 
set recently for the one inquiry after the last function you find in the 
script.
So it will be like that:

if (!function_exists('xdebug')) {
	[ ALL THE FUNCTIONS ]
}

Greets,
David


More information about the TYPO3-english mailing list