Template->make_filename(): Error - file does not exist
Publicado: 29 Oct 2005, 18:43
Si se visiona un error como este...
phpBB escribió:Template->make_filename(): Error - file does not exist[/quoteicy]
Esta es la solución para fijar el error, abre el archivo /includes/template.php y haz lo siguiente:
BUSCAR:REEMPLAZAR POR:Código: Seleccionar todo
function make_filename($filename) { // Check if it's an absolute or relative path. if (substr($filename, 0, 1) != '/') { $filename = phpbb_realpath($this->root . '/' . $filename); } if (!file_exists($filename)) { die("Template->make_filename(): Error - file $filename does not exist"); } return $filename; }
Antes haz un backup del archivoCódigo: Seleccionar todo
function make_filename($filename) { $old_filename = $filename; // Check if it's an absolute or relative path. if (substr($filename, 0, 1) != '/') { $old_filename = $this->root . '/' . $old_filename; $filename = phpbb_realpath($this->root . '/' . $filename); } if (!file_exists($filename)) { if ( !$filename ) { $filename = $old_filename; } die("Template->make_filename(): Error - file $filename does not exist"); } return $filename; }
S@lu2