Página 1 de 1

Muchos errores al activar DEBUG  Tema Solucionado

Publicado: 12 Mar 2011, 01:28
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?

Re: Muchos errores al activar DEBUG

Publicado: 12 Mar 2011, 01:48
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',

Muchos errores al activar DEBUG

Publicado: 12 Mar 2011, 06:50
por Elpingo
Gracias angelismo, soluciono esto y despues te cuento de los otros, por que todavia hay mas. :ops

Muchos errores al activar DEBUG

Publicado: 12 Mar 2011, 15:12
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)

Muchos errores al activar DEBUG

Publicado: 12 Mar 2011, 16:06
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:

Muchos errores al activar DEBUG

Publicado: 12 Mar 2011, 16:41
por Elpingo
Aqui va el functions_display.php
functions_display.rar
(10.14 KiB) Descargado 47 veces

Re: Muchos errores al activar DEBUG

Publicado: 12 Mar 2011, 17:18
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; 

Muchos errores al activar DEBUG

Publicado: 12 Mar 2011, 18:48
por Elpingo
Gracias angelismo y Leviatan21, solucionado y sin errores. :cerveza: