phpBB : Critical Error (resolved)

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
anichronic
Registered User
Posts: 2
Joined: Sat Jul 15, 2006 11:07 pm

phpBB : Critical Error (resolved)

Post by anichronic » Sat Jul 15, 2006 11:18 pm

I can't seem to get past this. I can see our normal template (ezHyperShadow) and forums when I don't log in, but once I've tried to I get the error:
phpBB : Critical Error

Could not open template config file

DEBUG MODE

Line : 503
File : functions.php

The ezHyperShadow folder is in /templates and the .cfg and .css files are correctly named (with proper capitals). I'm at a loss! I've read the script around line 503 and can't find anything...line 503 is bolded. Maybe you can see something I obviously can't?!
}

$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');

if ( !defined('TEMPLATE_CONFIG') )
{
message_die(CRITICAL_ERROR, "Could not open $template_name template config file", '', __LINE__, __FILE__);
}

$img_lang = ( file_exists(@phpbb_realpath($phpbb_root_path . $current_template_path . '/images/lang_' . $board_config['default_lang'])) ) ? $board_config['default_lang'] : 'english';

while( list($key, $value) = @each($images) )
{
if ( !is_array($value) )
{
$images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value);
}
}
}

return $row;
}
Last edited by anichronic on Sun Jul 16, 2006 12:05 am, edited 1 time in total.

ESQARE
Translator
Posts: 180
Joined: Fri Aug 08, 2003 9:49 pm
Location: Turkey
Contact:

Post by ESQARE » Sat Jul 15, 2006 11:45 pm


anichronic
Registered User
Posts: 2
Joined: Sat Jul 15, 2006 11:07 pm

Post by anichronic » Sun Jul 16, 2006 12:05 am

I love you, and whoever created the Autofix. <3

TY. You made my day.

Locked

Return to “2.0.x Support Forum”