Error en la actualización a 3.0.9
Publicado: 16 Jul 2011, 18:53
Mis datos en mi firma...
Estoy intentando actualizar a 3.0.9 desde 3.0.8
He seguido los pasos, me bajo los archivos que tienen diferencia y por último los subo por ftp y, tras renombrar/borrar el archivo install, accedo al foro y me sale este error:

El archivo mysql.php, en la línea 171 y siguientes tiene este código:
O sea, la 175 es:
El código del archivo functions.php es éste, siendo la primera línea la 4497:
y la 4505 es la que dice
Y, por último, el archivo index.php a partir de la línea 134, tiene éste código:
Siendo, por tanto, la 135 la que dice
¿Sabéis cuál puede ser el error?
Estoy intentando actualizar a 3.0.9 desde 3.0.8
He seguido los pasos, me bajo los archivos que tienen diferencia y por último los subo por ftp y, tras renombrar/borrar el archivo install, accedo al foro y me sale este error:

El archivo mysql.php, en la línea 171 y siguientes tiene este código:
SPOILER_SHOW
Código: Seleccionar todo
if ($this->query_result === false)
{
if (($this->query_result = @mysql_query($query, $this->db_connect_id)) === false)
{
$this->sql_error($query);
}
if (defined('DEBUG_EXTRA'))
{
$this->sql_report('stop', $query);
}
if ($cache_ttl && method_exists($cache, 'sql_save'))
{
$this->open_queries[(int) $this->query_result] = $this->query_result;
$cache->sql_save($query, $this->query_result, $cache_ttl);
}
else if (strpos($query, 'SELECT') === 0 && $this->query_result)
{
$this->open_queries[(int) $this->query_result] = $this->query_result;
}
}
else if (defined('DEBUG_EXTRA'))
{
$this->sql_report('fromcache', $query);
}
$this->sql_error($query);
El código del archivo functions.php es éste, siendo la primera línea la 4497:
SPOILER_SHOW
// Buttons menu
if ( isset($config['menu_enabled']) )
{
if ( $config['menu_enabled'] )
{
$sql = 'SELECT *
FROM ' . MENU_COLORS_TABLE . '
WHERE color_id = ' . $config['menu_color_id'];
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$template->assign_vars(array(
'S_MENU_COLOR' => $row['color_name'],
'S_MENU_FONT_COLOR' => $row['color_text'],
'S_MENU_FONT_COLOR_HOVER' => $row['color_text_hover'],
'S_MENU_DECORATION' => $row['color_text_hover_decor'],
'S_MENU_WEIGHT' => $row['color_text_weight'],
'S_MENU_SEARCH' => $row['color_display_search'],
'S_MENU_TEXT_TRANSFORM' => $row['color_text_transform'],
'S_MENU_ALIGN' => $row['color_align'],
));
$sql = 'SELECT *
FROM ' . MENU_BUTTONS_TABLE . '
WHERE button_display = 1
ORDER BY button_id';
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
$template->assign_block_vars('buttons', array(
'ID' => $row['button_id'],
'URL' => $row['button_url'],
'NAME' => $row['button_name'],
'EXTERNAL' => $row['button_external'],
'ONLY_REGISTERED' => $row['button_only_registered'],
));
}
$db->sql_freeresult($result);
}
}
// End Buttons menu
if ( isset($config['menu_enabled']) )
{
if ( $config['menu_enabled'] )
{
$sql = 'SELECT *
FROM ' . MENU_COLORS_TABLE . '
WHERE color_id = ' . $config['menu_color_id'];
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$template->assign_vars(array(
'S_MENU_COLOR' => $row['color_name'],
'S_MENU_FONT_COLOR' => $row['color_text'],
'S_MENU_FONT_COLOR_HOVER' => $row['color_text_hover'],
'S_MENU_DECORATION' => $row['color_text_hover_decor'],
'S_MENU_WEIGHT' => $row['color_text_weight'],
'S_MENU_SEARCH' => $row['color_display_search'],
'S_MENU_TEXT_TRANSFORM' => $row['color_text_transform'],
'S_MENU_ALIGN' => $row['color_align'],
));
$sql = 'SELECT *
FROM ' . MENU_BUTTONS_TABLE . '
WHERE button_display = 1
ORDER BY button_id';
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
$template->assign_block_vars('buttons', array(
'ID' => $row['button_id'],
'URL' => $row['button_url'],
'NAME' => $row['button_name'],
'EXTERNAL' => $row['button_external'],
'ONLY_REGISTERED' => $row['button_only_registered'],
));
}
$db->sql_freeresult($result);
}
}
// End Buttons menu
$result = $db->sql_query($sql);
Y, por último, el archivo index.php a partir de la línea 134, tiene éste código:
Código: Seleccionar todo
// Output page
page_header($user->lang['INDEX']);
$template->set_filenames(array(
'body' => 'index_body.html')
);
page_header($user->lang['INDEX']);
¿Sabéis cuál puede ser el error?