Re: [SMARTY] Fatal error: undefined function ()

From: Date: Wed, 05 Feb 2003 13:25:33 +0000
Subject: Re: [SMARTY] Fatal error: undefined function ()
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7524@lists.php.net to get a copy of this message
Hi, on Windows, you must explicitly prepend file paths with the resource type "file:" to avoid the drive letter being used as resource, see http://smarty.php.net/manual/en/templates.from.any.dir.php#AEN3214 ----- Original Message ----- From: "anew" <anew123@volja.net> To: <smarty-general@lists.php.net> Sent: Wednesday, February 05, 2003 2:05 AM Subject: [SMARTY] Fatal error: undefined function () > Hi! > > Today I moved (well, tried to move) my application to a new server > with CGI IIS 5.0 but there seems to be a problem with Smarty. Whenever the > application calls fetch(), I get an error: > > Fatal error: Call to undefined function: () in ...Smarty.class.php on line > 1525 > > If I look at the lines 1524 and 1525 they read: > > $resource_func = $this->_plugins['resource'][$resource_type][0][0]; > $_source_return = $resource_func($resource_name,$template_source, $this); > > If I do a vardump($this->_plugins) I get: > > array(9) { > ["modifier"]=> > array(0) { > } > ["function"]=> > array(0) { > } > ["block"]=> > array(0) { > } > ["compiler"]=> > array(0) { > } > ["prefilter"]=> > array(0) { > } > ["postfilter"]=> > array(0) { > } > ["outputfilter"]=> > array(0) { > } > ["resource"]=> > array(1) { > ["e"]=> > NULL > } > ["insert"]=> > array(0) { > } > } > > The problem lies in ["resource"]=>array(1) { ["e"]=>NULL }... Anyone > had > the same problem? Do you know what causes it? Given the fact that I don't > know Smarty internals I have spent hours debugging it and still couldn't > find where this var is set... > > I would really appreciate any help... > > Thank you! > > Anze > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.smarty.general (#7524) next »