1
Eruvatar
Fatal error: Call to undefined function:
  • 2004/1/29 12:07

  • Eruvatar

  • Just popping in

  • Posts: 7

  • Since: 2004/1/28


After successfully installing XOOPS on my server, i tried clicking the "view your page here" link, and got a blank page. I browsed this site and used info gathered here to get the browser to show error reports.

Quote:
Fatal error: Call to undefined function: () in /home/www/zinevest/dahls/class/smarty/Smarty.class.php on line 1658


Is the message I get, Line 1658 in /home/www/zinevest/dahls/class/smarty/Smarty.class.php

looks like this:Quote:
$_source_return = $resource_func($resource_name, $template_source, $this);


Any ideas?

2
Mithrandir
Re: Fatal error: Call to undefined function:

That sounds like corrupted files.

Out-of-the-box XOOPS should run without such errors. Errors related to URL, paths or database connectivity are common, but not this one.

3
Eruvatar
Re: Fatal error: Call to undefined function:
  • 2004/1/29 12:21

  • Eruvatar

  • Just popping in

  • Posts: 7

  • Since: 2004/1/28


im using XOOPS 2.05, and all the files seem to have the correct size after UL

4
Eruvatar
Re: Fatal error: Call to undefined function:
  • 2004/1/29 16:25

  • Eruvatar

  • Just popping in

  • Posts: 7

  • Since: 2004/1/28


Still not working, using XOOPS.2.0.6RC, get the same error-message! http://zinevest.fanzine.no/dahls/html/index.php

5
Dave_L
Re: Fatal error: Call to undefined function:
  • 2004/1/29 16:35

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


If you want to try to track down the cause, you could add the following immediately before that line:

le="color: #000000"><?php echo "<pre>n"; var_dump('resource_type', $resource_type, 'this->_plugins', $this->_plugins); echo "</pre>n";

6
Eruvatar
Re: Fatal error: Call to undefined function:
  • 2004/1/29 16:52

  • Eruvatar

  • Just popping in

  • Posts: 7

  • Since: 2004/1/28


Quote:
string(13) "resource_type"
string(2) "db"
string(14) "this->_plugins"
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) {
["db"]=>
NULL
}
["insert"]=>
array(0) {
}
}


Fatal error: Call to undefined function: () in /home/www/zinevest/dahls/html/class/smarty/Smarty.class.php on line 1661

7
Dave_L
Re: Fatal error: Call to undefined function:
  • 2004/1/29 17:31

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/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:

le="color: #000000"><?php $resource_func = $this->_plugins['resource'][$resource_type][0][0];


On my 2.0.5.2 install, I get:

le="color: #000000"><?php 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.

8
Eruvatar
Re: Fatal error: Call to undefined function:
  • 2004/1/29 17:48

  • Eruvatar

  • Just popping in

  • Posts: 7

  • Since: 2004/1/28


Maybe im blind, but I can't find 2.0.5.2 on this site.

Do you have a url for me, or maybe you could a-mail me the tar.gz-file ? eru@kjernen.com

9
Dave_L
Re: Fatal error: Call to undefined function:
  • 2004/1/29 17:51

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7



10
Eruvatar
Re: Fatal error: Call to undefined function:
  • 2004/1/29 18:29

  • Eruvatar

  • Just popping in

  • Posts: 7

  • Since: 2004/1/28


Quote:

Warning: Use of undefined constant DIRECTORY_SEPARATOR - assumed 'DIRECTORY_SEPARATOR' in /home/www/zinevest/dahls/html/class/smarty/Smarty.class.php on line 52

Fatal error: Call to undefined function: () in /home/www/zinevest/dahls/html/class/smarty/Smarty.class.php on line 1658


SAme error, plus that top warning after downgrading. Getting desperate here :)

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!