Re: [SMARTY] The dreaded 'Fatal error: Call to undefined function: ()' error
| From: | Ferdinand Beyer | Date: | Tue, 30 Jul 2002 12:52:21 +0000 |
| Subject: | Re: [SMARTY] The dreaded 'Fatal error: Call to undefined function: ()' error | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5506@lists.php.net to get a copy of this message | ||
On 30 Jul 2002 at 13:11, Tim Fountain wrote:
> As the _get_plugins_filepath() function appears to check whether the
> plugins path is readable before it returns the path, it would be
> useful if Smarty could be changed in future versions so that if this
> function returns false an error message is displayed. At the moment
> Smarty just goes ahead with processing anyway, and will then fall down
> when it comes across some plugin-related code.
I'm not sure on this. In my Smarty experience, it always toggles a
warning if it cannot load a function. Check your error_reporting setup
and make sure that it includes warnings (e.g. E_ALL ^ E_NOTICE).
But you're right: Smarty should suppress a undefined-function fatal
error - ie. by checking if a plugin is loaded before calling it in the
compiled template. Monte, what's your opinion on this?
--
Ferdinand Beyer
<fbeyer@clickhand.de>