Fatal error: undefined function ()

From: Date: Wed, 05 Feb 2003 01:05:23 +0000
Subject: Fatal error: undefined function ()
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7520@lists.php.net to get a copy of this message
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

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