Re: [SMARTY] misleading error
| From: | zooming at gamebox dot net | Date: | Wed, 10 Mar 2004 23:57:16 +0000 |
| Subject: | Re: [SMARTY] misleading error | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11093@lists.php.net to get a copy of this message | ||
Right now smarty stops processing if it hits a non existent function. Can
someone point me where in the code this can be changed and just have it
ignore a regular function or insert function if it can't find it and
continue with the rest of the template.
----- Original Message -----
From: "Monte Ohrt" <monte@ispi.net>
To: "Jeff Orrok" <jeff@rt.com>
Cc: "Smarty General" <smarty-general@lists.php.net>
Sent: Wednesday, March 10, 2004 5:00 PM
Subject: Re: [SMARTY] misleading error
> The error is correct, it couldn't load the plugin file. If the insert
> function doesn't exist then the plugin is attempted. If that doesn't
> work it errors out.
>
> On Wed, 2004-03-10 at 15:48, Jeff Orrok wrote:
> > Hi,
> >
> > When smarty can't find an insert function, it compains about plugins
instead.
> >
> > Fatal error: Smarty error: [in customer/main/buy_now.tpl line 17]:
[plugin] could not load plugin file 'insert.customer_options.php'
(Smarty.class.php, line 2543) in
/var/www/html/xcart/Smarty-2.5.0/Smarty.class.php on line 2652
> >
> > Shouldn't it say something like
> >
> > could not find function insert_customer_options
> >
> > Regards,
> >
> > Jeff
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>