7
Quote:
string(13) "resource_type"
string(2) "db"
...
["resource"]=>
array(1) {
["db"]=>
NULL
}
...
That's the immediate cause of the error. It's giving $resource_func the value NULL on line 1657:
$resource_func = $this->_plugins['resource'][$resource_type][0][0];
On my 2.0.5.2 install, I get:
string(13) "resource_type"
string(2) "db"
...
["resource"]=>
array(1) {
["db"]=>
array(2) {
[0]=>
array(4) {
[0]=>
string(25) "smarty_resource_db_source"
[1]=>
string(28) "smarty_resource_db_timestamp"
[2]=>
string(25) "smarty_resource_db_secure"
[3]=>
string(26) "smarty_resource_db_trusted"
}
[1]=>
bool(true)
}
}
...
So $resource_func gets the value "smarty_resource_db_source".
The next step is to backtrack and figure out why that variable isn't getting initialized. Or you could downgrade to 2.0.5.2.