PDA

View Full Version : Help with ssi.php



erbag
February 17, 2005, 12:10 PM
I need help formatting my ssi.php so i can display the latest post from my forum on to my home page...been getting error msgs like this:
Fatal error: Cannot instantiate non-existent class: func in pathtoextensionssi.php on line 101
*I changed the initial msg and added "pathtoextension" for the sake of this post

Line 101 READS:
$std = new FUNC;

Any suggestions?

CKnight
February 18, 2005, 01:55 PM
The class needs to be defined prior to creating an instance of it. Ensure that your class definition is located somewhere above 'line 101'.

If you already have this I'll need to see the code for that and all included files before I can offer any help.

death_knight
February 18, 2005, 02:42 PM
yeah that sound like it yes, try making an external class page and including it at the top of the ssi.php page.