Página 2 de 2

Pagina en blanco despues de responder mensaje

Publicado: 11 Nov 2010, 23:15
por switch
Pues no se, yo sigo sin ver nada, de todas formas en el archivo a partir de la linea 1581 pone esto:

$template->assign_vars(array(
'TB_AUTH' => $config['tb_auth'],
$tpl_prefix . 'BASE_URL' => $base_url,
'A_' . $tpl_prefix . 'BASE_URL' => addslashes($base_url),
$tpl_prefix . 'PER_PAGE' => $per_page,

$tpl_prefix . 'PREVIOUS_PAGE' => ($on_page == 1) ? '' : $base_url . "{$url_delim}start=" . (($on_page - 2) * $per_page),
$tpl_prefix . 'NEXT_PAGE' => ($on_page == $total_pages) ? '' : $base_url . "{$url_delim}start=" . ($on_page * $per_page),
$tpl_prefix . 'TOTAL_PAGES' => $total_pages,
));

return $page_string;

Y a partir de la linea 1608:

$template->assign_vars(array(
'TB_AUTH' => $config['tb_auth'],
'ON_PAGE' => $on_page)
);

return sprintf($user->lang['PAGE_OF'], $on_page, max(ceil($num_items / $per_page), 1));

Pagina en blanco despues de responder mensaje

Publicado: 11 Nov 2010, 23:38
por switch
Vale ya lo ví, y tambien da mas errores:

Código: Seleccionar todo

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3401: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2930)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3403: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2930)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3404: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2930)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3405: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2930)
a partir de la linea 3400 pone esto, Puede ser un problema de caché??:

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');
Y a partir de la 2930:

Código: Seleccionar todo

echo '<b>[phpBB Debug] PHP Notice</b>: in file <b>' . $errfile . '</b> on line <b>' . $errline . '</b>: <b>' . $msg_text . '</b><br />' . "\n";

Re: Pagina en blanco despues de responder mensaje

Publicado: 12 Nov 2010, 03:49
por leviatan21
Los errores que colocas en el segundo mensaje son a consecuencia del los anteriores, esos siempre aparecen si existe un error en otro código.
Si puedes comprime el archivo raíz/includes/functions.php y adjuntalo en un próximo mensaje que lo revisaré

Pagina en blanco despues de responder mensaje

Publicado: 12 Nov 2010, 08:54
por switch
Aqui tienes el archivo

Pagina en blanco despues de responder mensaje

Publicado: 12 Nov 2010, 14:51
por switch
Hola de nuevo! Los del servidor me han respondido, y me han comentado que revisando los log han encontrado esto:

[Fri Nov 12 11:57:27 2010] [error] [client 88.24.141.159] PHP Parse error: syntax error,
unexpected $end in /home/httpd/virtuals/www.snow-monkeys.net/foro/cache/queue.php
on line 69, referer: http://www.snow-monkeys.net/foro/

Como solución me dicen que pruebe a actualizar el foro, era una cosa que pensabamos hacer inminentemente, asi que si esa es la solución nos pondremos a ello, que opinais.

Pagina en blanco despues de responder mensaje

Publicado: 12 Nov 2010, 17:01
por leviatan21
switch escribió:Hola de nuevo! Los del servidor me han respondido, y me han comentado que revisando los log han encontrado esto:

[Fri Nov 12 11:57:27 2010] [error] [client 88.24.141.159] PHP Parse error: syntax error,
unexpected $end in /home/httpd/virtuals/www.snow-monkeys.net/foro/cache/queue.php
on line 69, referer: http://www.snow-monkeys.net/foro/

Como solución me dicen que pruebe a actualizar el foro, era una cosa que pensabamos hacer inminentemente, asi que si esa es la solución nos pondremos a ello, que opinais.
Actualizar sería bueno, ya que ese foro está bastante viejo, pero te recomiendo que esperes ( a mas tardar ) uno o dos meses, que la version phpbb 3.0.8 está próximo a salir (ya se ha liberado el primer Release Candidate)

En cuanto al error en el archivo raíz/ache/queue.php debes purgar la cache, (mediante tu programa FTP entra a la carpeta raíz/cache y elimina todos los archivos, excepto .htaccess e index.htm) con eso debería resolverse el problema ( pero lamentablemente se perderán los emails en lista de espera )

Re: Pagina en blanco despues de responder mensaje

Publicado: 12 Nov 2010, 17:10
por leviatan21
leviatan21 escribió:No todas las páginas, algunas dan este error :
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 1582: Undefined variable: config
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 1608: Undefined variable: config
Para resolver este error, realiza el siguiente cambio :

Abrir :
raíz/includes/functions.php

Buscar :

Código: Seleccionar todo

    global $template, $user;

    // Make sure $per_page is a valid value
    $per_page = ($per_page <= 0) ? 1 : $per_page;
 
En ese código, la linea que dice :

Código: Seleccionar todo

    global $template, $user; 
Reemplazar por :

Código: Seleccionar todo

    global $template, $user, $config; 
La búsqueda aparece 2 veces, reemplaza las 2
Ahora revisaré el resto del archivo a ver si encuentro algo mal

Pagina en blanco despues de responder mensaje

Publicado: 12 Nov 2010, 17:45
por leviatan21
Mas sobre el mismo error, en el mismo archivo :
Buscar :

Código: Seleccionar todo

function meta_refresh($time, $url)
{
    global $template; 
Reemplazar por :

Código: Seleccionar todo

function meta_refresh($time, $url)
{
    global $template, $config; 
Buscar :

Código: Seleccionar todo

function confirm_box($check, $title = '', $hidden = '', $html_body = 'confirm_body.html', $u_action = '')
{
    global $user, $template, $db;
    global $phpEx, $phpbb_root_path; 
Reemplazar por :

Código: Seleccionar todo

function confirm_box($check, $title = '', $hidden = '', $html_body = 'confirm_body.html', $u_action = '')
{
    global $user, $template, $db;
    global $phpEx, $phpbb_root_path, $config; 
No se cual MOD será, pero el causante es el que agrega esto por todos lados :

Código: Seleccionar todo

'TB_AUTH' => $config['tb_auth'],

Pagina en blanco despues de responder mensaje

Publicado: 13 Nov 2010, 02:04
por switch
Bueno, pues no ha funcionado asi que he decidido actualizar el foro.

he subido el full package, con idioma en español. he sustituido el config.php, he establecido los permisos y he azcualizado las base de datos tal y como dice la guia, pero ahora cuando intento acceder al foro me dice esto:

Código: Seleccionar todo

Error General
SQL ERROR [ mysql4 ]

Unknown column 't.template_inherits_id' in 'field list' [1054]

SQL

SELECT s.style_id, t.template_storedb, t.template_path, t.template_id, t.bbcode_bitfield, t.template_inherits_id, t.template_inherit_path, c.theme_path, c.theme_name, c.theme_storedb, c.theme_id, i.imageset_path, i.imageset_id, i.imageset_name FROM phpbb_styles s, phpbb_styles_template t, phpbb_styles_theme c, phpbb_styles_imageset i WHERE s.style_id = 4 AND t.template_id = s.template_id AND c.theme_id = s.theme_id AND i.imageset_id = s.imageset_id

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()

FILE: includes/session.php
LINE: 1597
CALL: dbal_mysql->sql_query()

FILE: index.php
LINE: 26
CALL: user->setup()
Gracias

Pagina en blanco despues de responder mensaje

Publicado: 13 Nov 2010, 02:23
por switch
Durante el proceso de actualizacion de la base de datos, surgieron los siguientes errores, por si sirve de ayuda:

Código: Seleccionar todo

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_forums'
      SQL :: ALTER TABLE `phpbb_forums` ADD COLUMN `display_subforum_list` tinyint(1) UNSIGNED DEFAULT '1' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_sessions'
      SQL :: ALTER TABLE `phpbb_sessions` ADD COLUMN `session_forum_id` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: Key column 'session_forum_id' doesn't exist in table
      SQL :: CREATE INDEX session_forum_id ON phpbb_sessions(session_forum_id)

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_drafts'
      SQL :: ALTER TABLE `phpbb_drafts` CHANGE `draft_subject` `draft_subject` varchar(255) DEFAULT '' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_forums'
      SQL :: ALTER TABLE `phpbb_forums` CHANGE `forum_last_post_subject` `forum_last_post_subject` varchar(255) DEFAULT '' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_posts'
      SQL :: ALTER TABLE `phpbb_posts` CHANGE `post_subject` `post_subject` varchar(255) DEFAULT '' NOT NULL COLLATE utf8_unicode_ci

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_privmsgs'
      SQL :: ALTER TABLE `phpbb_privmsgs` CHANGE `message_subject` `message_subject` varchar(255) DEFAULT '' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_topics'
      SQL :: ALTER TABLE `phpbb_topics` CHANGE `topic_title` `topic_title` varchar(255) DEFAULT '' NOT NULL COLLATE utf8_unicode_ci

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_topics'
      SQL :: ALTER TABLE `phpbb_topics` CHANGE `topic_last_post_subject` `topic_last_post_subject` varchar(255) DEFAULT '' NOT NULL

    * Error :: Key column 'session_forum_id' doesn't exist in table
      SQL :: CREATE INDEX session_fid ON phpbb_sessions(session_forum_id)

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_styles_template'
      SQL :: ALTER TABLE `phpbb_styles_template` ADD COLUMN `template_inherits_id` int(4) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_styles_template'
      SQL :: ALTER TABLE `phpbb_styles_template` ADD COLUMN `template_inherit_path` varchar(255) DEFAULT '' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_groups'
      SQL :: ALTER TABLE `phpbb_groups` ADD COLUMN `group_max_recipients` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_profile_fields'
      SQL :: ALTER TABLE `phpbb_profile_fields` ADD COLUMN `field_show_profile` tinyint(1) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_styles'
      SQL :: ALTER TABLE `phpbb_styles` CHANGE `style_id` `style_id` mediumint(8) UNSIGNED NOT NULL auto_increment

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_styles'
      SQL :: ALTER TABLE `phpbb_styles` CHANGE `template_id` `template_id` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_styles'
      SQL :: ALTER TABLE `phpbb_styles` CHANGE `theme_id` `theme_id` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_styles'
      SQL :: ALTER TABLE `phpbb_styles` CHANGE `imageset_id` `imageset_id` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_styles_imageset'
      SQL :: ALTER TABLE `phpbb_styles_imageset` CHANGE `imageset_id` `imageset_id` mediumint(8) UNSIGNED NOT NULL auto_increment

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_styles_imageset_data'
      SQL :: ALTER TABLE `phpbb_styles_imageset_data` CHANGE `image_id` `image_id` mediumint(8) UNSIGNED NOT NULL auto_increment

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_styles_imageset_data'
      SQL :: ALTER TABLE `phpbb_styles_imageset_data` CHANGE `imageset_id` `imageset_id` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_styles_theme'
      SQL :: ALTER TABLE `phpbb_styles_theme` CHANGE `theme_id` `theme_id` mediumint(8) UNSIGNED NOT NULL auto_increment

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_styles_template'
      SQL :: ALTER TABLE `phpbb_styles_template` CHANGE `template_id` `template_id` mediumint(8) UNSIGNED NOT NULL auto_increment

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_styles_template_data'
      SQL :: ALTER TABLE `phpbb_styles_template_data` CHANGE `template_id` `template_id` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_forums'
      SQL :: ALTER TABLE `phpbb_forums` CHANGE `forum_style` `forum_style` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_users'
      SQL :: ALTER TABLE `phpbb_users` CHANGE `user_style` `user_style` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_forums'
      SQL :: ALTER TABLE `phpbb_forums` CHANGE `forum_style` `forum_style` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_confirm'
      SQL :: ALTER TABLE `phpbb_confirm` ADD COLUMN `attempts` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_users'
      SQL :: ALTER TABLE `phpbb_users` ADD COLUMN `user_new` tinyint(1) UNSIGNED DEFAULT '1' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_users'
      SQL :: ALTER TABLE `phpbb_users` ADD COLUMN `user_reminded` tinyint(4) DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_users'
      SQL :: ALTER TABLE `phpbb_users` ADD COLUMN `user_reminded_time` int(11) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_groups'
      SQL :: ALTER TABLE `phpbb_groups` ADD COLUMN `group_skip_auth` tinyint(1) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_privmsgs'
      SQL :: ALTER TABLE `phpbb_privmsgs` ADD COLUMN `message_reported` tinyint(1) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_reports'
      SQL :: ALTER TABLE `phpbb_reports` ADD COLUMN `pm_id` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_profile_fields'
      SQL :: ALTER TABLE `phpbb_profile_fields` ADD COLUMN `field_show_on_vt` tinyint(1) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_forums'
      SQL :: ALTER TABLE `phpbb_forums` ADD COLUMN `forum_options` int(20) UNSIGNED DEFAULT '0' NOT NULL

    * Error :: ALTER command denied to user 'snowmon'@'localhost' for table 'phpbb_users'
      SQL :: ALTER TABLE `phpbb_users` CHANGE `user_options` `user_options` int(11) UNSIGNED DEFAULT '230271' NOT NULL

    * Error :: Key column 'pm_id' doesn't exist in table
      SQL :: CREATE INDEX pm_id ON phpbb_reports(pm_id)



Esto probablemente no sea nada de qué preocuparse, la actualización continuará. Si no se puede completar tendría que visitar nuestros foros de ayuda. Visite LEAME para detalles de como obtener ayuda. 

Pagina en blanco despues de responder mensaje

Publicado: 13 Nov 2010, 03:15
por switch
Bueno, me acabo de enterar que otro admin intentó actualizar la base de datos antes que yo, y se le colgo el ordenador a mitad, asi que eso puede ser la causa, he leido por ahí que modificando la tabla phpbb_config manualmente y volviendo a poner alli la versión antigua, o sea la 3.0.0 si volviese a ejecutar el scrip se actualizarian, no se si es asi, pero tampoco se hacerlo, he entrado en la tabla pero no veo el valor por ningún lado.

Gracias

Pagina en blanco despues de responder mensaje  Tema Solucionado

Publicado: 13 Nov 2010, 23:39
por switch
Bueno, al final era que mi usuario no tenia los permisos ALTER en la base de datos, y no se podían actualizar las bases, llamé al servidor para que los activase y solucionado, muchas gracias a todos los que habeis colaborado

Pagina en blanco despues de responder mensaje

Publicado: 14 Nov 2010, 04:41
por leviatan21
switch escribió:Bueno, al final era que mi usuario no tenia los permisos ALTER en la base de datos, y no se podían actualizar las bases, llamé al servidor para que los activase y solucionado, muchas gracias a todos los que habeis colaborado
Me alegro que todo vuelva a funcionar, ahora tendrás que actualizar tus datos de soporte :mrgreen: