Página 1 de 1

Error en la actualización a 3.0.9

Publicado: 16 Jul 2011, 18:53
por karbiko
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:

Imagen

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);
			}
O sea, la 175 es: $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
y la 4505 es la que dice $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')
);
Siendo, por tanto, la 135 la que dice page_header($user->lang['INDEX']);

¿Sabéis cuál puede ser el error?

Re: Error en la actualización a 3.0.9

Publicado: 16 Jul 2011, 19:40
por leviatan21
karbiko escribió:¿Sabéis cuál puede ser el error?
Parece ser un error en un MOD sobre un menu, intenta desabilitarlo desde el ACP para luego actualizar

Re: Error en la actualización a 3.0.9  Tema Solucionado

Publicado: 16 Jul 2011, 22:23
por karbiko
Gracias, Gabriel...

Seguí las instrucciones que pusiste en este tema: Error de instalación fatal al actualizar

Y con ello, y revisando la instalación del mod de Buttons_Menu logré de nuevo ponerlo en funcionamiento...

Un saludo...