For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > March 2004 > Re: [SMARTY] misleading error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] misleading error
Monte Ohrt

2004-03-19, 1:29 pm

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

zooming@gamebox.net

2004-03-19, 1:29 pm

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:
instead.[color=darkred]
[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[color=darkred]
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com