Página 1 de 1

Template->make_filename(): Error - file does not exist

Publicado: 29 Oct 2005, 18:43
por ThE KuKa
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:

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;
   }
REEMPLAZAR POR:

Có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;
   }
Antes haz un backup del archivo

S@lu2