Re: [SMARTY] The dreaded 'Fatal error: Call to undefined function: ()' error
| From: | Tim Fountain | Date: | Tue, 30 Jul 2002 12:11:58 +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-5505@lists.php.net to get a copy of this message | ||
On Monday, July 29, 2002, Tim Fountain wrote:
> Fatal error: Call to undefined function: () in
> /home/public_html/classes/smarty/Smarty.class.php on line 998
Okay, after several hours of debugging, I have eventually solved this
problem. The cause was the permissions on the plugins directory (due
to a bizarre server setup), which were evidently preventing Smarty
from reading my fetch-templates-from-the-database plugin.
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.
--
Tim Fountain (tim@tfountain.co.uk)
http://www.tfountain.co.uk/