crai8088 Posted October 31, 2006 Share Posted October 31, 2006 Hi there, I am not sure as to whether you can help me here but any ideas would be greatly appreciated. I am getting this following error on my phpbb board. [quote]Fatal error: Cannot instantiate non-existent class: template in /hsphere/local/home/fuschia/byb-pokerforum.com/phpBB2/includes/functions.php on line 521[/quote]The snippet of code around this is:[code]$template_path = 'templates/' ; $template_name = $row['template_name'] ; $template = new Template($phpbb_root_path . $template_path . $template_name); if ( $template ) { $current_template_path = $template_path . $template_name; @include($phpbb_root_path . $template_path . $template_name . '/' . $template_name . '.cfg');[/code]Please help me. Link to comment https://forums.phpfreaks.com/topic/25757-template-error/ Share on other sites More sharing options...
trq Posted November 1, 2006 Share Posted November 1, 2006 It apprears that the class [i]Template[/i] does not exist. How have you defined it? Is it in an include somewhere? Link to comment https://forums.phpfreaks.com/topic/25757-template-error/#findComment-117611 Share on other sites More sharing options...
crai8088 Posted November 1, 2006 Author Share Posted November 1, 2006 I truly have not got a clue what you are on about! It is the standard functions.php as supplied with phpbb boards. Link to comment https://forums.phpfreaks.com/topic/25757-template-error/#findComment-117616 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.