Recordad que para pedir soporte alguno, debéis facilitar los datos de soporte oportunos por favor, mirad aquí y leer las Normas generales del foro, esto nos servirá de ayuda para dar el mejor soporte..

Gracias.

La Administración de phpBB España.

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

Guías, manuales, tutoriales, etc. sobre phpBB2 y otros sistemas.
Foro de lectura, las dudas en el Foro oportuno por favor.
Cerrado

0
No hay votos
 
Votos totales: 0

Avatar de Usuario
ThE KuKa
Administrador
Mensajes: 10374
Registrado: 04 Ene 2004, 19:27
Género:
Edad: 49

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

#1

Mensaje 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

📌 Raul [ThE KuKa] en phpBB 📌
✅ Jr. Extension Validator - Jr. Styles Validator - Style Customisations - Translator - International Support Team
✅

Si te gustan mis estilos, traducciones, etc. y quieres mostrar algo de aprecio, no dudes en hacer una donación Imagen
:flag_es: phpBB España - En línea desde 2003 :heart:



Cerrado

Volver a “Guías, manuales, tutoriales, ayuda, sobre phpBB 2 y otros”