[TYPO3-english] TYPO3 error:
Dennis Vlaar
woooha at live.nl
Tue Aug 10 18:24:37 CEST 2010
Hi David,
Thanks for your help. I was indeed playing with your suggestion while posting the previous message.
So the error dissapeared (yippi!), but now I have 2 layouts under eachother... Any idea how that came? Did that problem also occured to you? Erm, should I open a new thread about it?
> Date: Tue, 10 Aug 2010 18:15:02 +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: 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
> _______________________________________________
> 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