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.

Muchos errores al activar DEBUGTema Solucionado

Foros donde podréis dejar vuestras dudas sobre phpBB 3.0.x
Cerrado

0
No hay votos
 
Votos totales: 0

Elpingo
Asiduo/a
Mensajes: 184
Registrado: 04 Nov 2009, 21:03

Muchos errores al activar DEBUG  Tema Solucionado

#1

Mensaje por Elpingo »

Hola a todos,
He activado el modo Debug y me indica todos estos errores:
Spoiler
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: NO_UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: NO_UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: NO_UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: NO_UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: NO_UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: NO_UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: NO_UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: NO_UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: NO_UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 477: Undefined index: UNREAD_POSTS
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4611: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3767)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4613: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3767)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4614: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3767)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4615: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3767)
En la linea 477 de includes/function_display.php tengo este código:

Código: Seleccionar todo

'FORUM_IMAGE'			=> ($row['forum_image']) ? '<img src="' . $phpbb_root_path . $row['forum_image'] . '" alt="' . $user->lang[$folder_alt] . '" />' : '',
En las lineas 4611 al 4615 de includes/function.php tengo este código:

Código: Seleccionar todo

// application/xhtml+xml not used because of IE
	header('Content-type: text/html; charset=UTF-8');

	header('Cache-Control: private, no-cache="set-cookie"');
	header('Expires: 0');
	header('Pragma: no-cache');

	return;
}
Como podría solucionarlos?

Avatar de Usuario
angelismo
Administrador
Mensajes: 5707
Registrado: 20 May 2006, 02:42
Género:
Edad: 36

Re: Muchos errores al activar DEBUG

#2

Mensaje por angelismo »

En el archivo lenguaje/es/common.php ,te faltan variables de traducción ,sigue estos pasos
buscar

Código: Seleccionar todo

'UNREAD_POST'         => 'Mensaje sin leer',
añadir despues

Código: Seleccionar todo

'UNREAD_POSTS'         => 'Mensajes sin leer',
buscar

Código: Seleccionar todo

'NO_UNREAD_PM'	=> '<strong>0</strong> mensajes sin leer',
añadir despues

Código: Seleccionar todo

'NO_UNREAD_POSTS'         => 'No hay mensajes sin leer',
Última edición por angelismo el 12 Mar 2011, 01:48, editado 1 vez en total.

Antes de nada, lee las Normas de phpBB-Es y las Normas de Soporte.

Como corregir el copyright de phpbb3 - Si tu foro no tiene copyright ,lee la guia antes de pedir soporte.
No doy soporte por MP ni por MSN ,solo en los foros.


© angelismo- Webmaster de Webmastercreativo
© angelismo -Administrador de phpBB-es

Elpingo
Asiduo/a
Mensajes: 184
Registrado: 04 Nov 2009, 21:03

Muchos errores al activar DEBUG

#3

Mensaje por Elpingo »

Gracias angelismo, soluciono esto y despues te cuento de los otros, por que todavia hay mas. :ops

Elpingo
Asiduo/a
Mensajes: 184
Registrado: 04 Nov 2009, 21:03

Muchos errores al activar DEBUG

#4

Mensaje por Elpingo »

Ahora al momento de ver un tema tengo estos bugs
Spoiler
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1318: Undefined variable: phpbb_root_path
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1319: Undefined variable: phpbb_root_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4611: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3767)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4613: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3767)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4614: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3767)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4615: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3767)

Avatar de Usuario
leviatan21
Ex Staff
Mensajes: 8279
Registrado: 26 Mar 2008, 20:06
Género:
Edad: 55

Muchos errores al activar DEBUG

#5

Mensaje por leviatan21 »

Elpingo escribió:Ahora al momento de ver un tema tengo estos bugs
Spoiler
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1318: Undefined variable: phpbb_root_path
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1319: Undefined variable: phpbb_root_path
Adjunta tu archivo raíz/includes/functions_display.php ya que el error lo arroja en la linea 1318, pero uno original no contiene tantas lineas :roll:
Normas de phpBB España | Normas de Soporte
No doy soporte por privado : tenga en cuenta que su problema, también puede ser el problema de otro usuario.
Cualquier mensaje privado no solicitado será ignorado :twisted:

"Education is what remains after one has forgotten everything he learned in school" - Albert Einstein

Elpingo
Asiduo/a
Mensajes: 184
Registrado: 04 Nov 2009, 21:03

Muchos errores al activar DEBUG

#6

Mensaje por Elpingo »

Aqui va el functions_display.php
functions_display.rar
(10.14 KiB) Descargado 49 veces

Avatar de Usuario
leviatan21
Ex Staff
Mensajes: 8279
Registrado: 26 Mar 2008, 20:06
Género:
Edad: 55

Re: Muchos errores al activar DEBUG

#7

Mensaje por leviatan21 »

en ese archivo casi al final, en la linea 1305 tienes este código :

Código: Seleccionar todo

    global $flags, $config; 
Reemplazar por :

Código: Seleccionar todo

    global $flags, $config, $phpbb_root_path; 
Normas de phpBB España | Normas de Soporte
No doy soporte por privado : tenga en cuenta que su problema, también puede ser el problema de otro usuario.
Cualquier mensaje privado no solicitado será ignorado :twisted:

"Education is what remains after one has forgotten everything he learned in school" - Albert Einstein

Elpingo
Asiduo/a
Mensajes: 184
Registrado: 04 Nov 2009, 21:03

Muchos errores al activar DEBUG

#8

Mensaje por Elpingo »

Gracias angelismo y Leviatan21, solucionado y sin errores. :cerveza:

Cerrado

Volver a “Foros de Soporte 3.0.x”