RE: custom error handler w/ Smarty
| From: | Monte Ohrt | Date: | Fri, 09 Mar 2001 22:38:47 +0000 |
| Subject: | RE: custom error handler w/ Smarty | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-363@lists.php.net to get a copy of this message | ||
This will be fixed in the next release. Here's the code we actually used
to fix it.
Change line 466 to this:
$output .= "if(isset(\$_sections[$section_name])) {
unset(\$_sections[$section_name]); }\n";
"Alexander, Jason" wrote:
>
> Well, I found it:
>
> In Smarty_Compiler.class.php, line 466 you attempt to unset a variable
> that's never defined. Which, normally, it's not a big deal, until I
> attempted to implement my own error handler. In which case, it caught this.
>
> Add this line before it:
>
> $output .= "\$_sections = \"\";";
>
> And, all is well.
>
> -Jason
>
> -----Original Message-----
> From: Alexander, Jason [mailto:jalexander@aivia.net]
> Sent: Friday, March 09, 2001 2:01 PM
> To: 'smarty@lists.ispi.net'
> Subject: [smarty] custom error handler w/ Smarty
>
> Hey all,
>
> I'm having issues implementing my own customer error handler with Smarty.
>
> I'm finding that if I try to handle it, it catches a ton of errors that
> (originally) aren't there. Comment out the error handler file include, and
> all works fine (as before). Is there an issue with Smarty that it suppresses
> errors and handles errors on it's own? I'm guessing I'm overriding the
> internal error handling of Smarty, and that's what is causing issues.
>
> Thanks,
> -Jason
>
> ---
> You are currently subscribed to smarty as: jalexander@aivia.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/