Página 1 de 1
Unknown column 'user_note' in 'field list' [1054]
Publicado: 16 Dic 2010, 02:12
por Aitorcillo
Hola, desde que actualicé a la versión 3.0.8 siguiendo el tutorial de kuka, los usuarios no son capaces de regitrarse en el foro, aparece el siguiente error cuando se envia la solicutud de registro:
SQL ERROR [ mysqli ]
Unknown column 'user_note' in 'field list' [1054]
He buscado en internet sobre el error y en phpbb.com encontrando lo siguiente:
http://www.phpbb.com/community/viewtopi ... 35&start=0
Segun la página indica que ejecute la sentencia :
ALTER TABLE `phpbb_users` ADD `user_new` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '1';
Pero cuando lo hago aparece el siguiente error:
Error
consulta SQL:
ALTER TABLE `phpbb_users` ADD `user_new` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '1'
MySQL ha dicho:
#1060 - Duplicate column name 'user_new'
-----
Alguna solución

Re: Unknown column 'user_note' in 'field list' [1054]
Publicado: 16 Dic 2010, 02:51
por jakk
no es el mismo error, en el tema que nos enseñas falta el campo user_new y a ti te falta el campo user_note no es lo mismo
ese campo en una instalación por defecto no existe, que mods tienes instalados y que afecten al registro de usuarios, me refiero a que aparezcan en la pagina de registro
pienso que es un campo text, pero necesito saber el mod para saberlo seguro
Unknown column 'user_note' in 'field list' [1054]
Publicado: 16 Dic 2010, 04:48
por leviatan21
Se que phpbb trae el campo user_notes, pero no conozco que MOD pudo haber agregado un campo tan similar en nombre como user_note
¿ Recuerdas que MOD ha cambiado el archivo raíz/includes/functions_user.php que entre otras cosas el el encargado de agregar los nuevos usuarios ?
Unknown column 'user_note' in 'field list' [1054]
Publicado: 16 Dic 2010, 15:19
por Aitorcillo
Gracias, he buscado entre todos los mods que tengo instalados cuales afectan a functions_user y son los siguientes:
ADJUNTO MI ARCHIVO FUNCTION_USER
- Gallery 1.0.5
Código: Seleccionar todo
Open: includes/functions_user.php
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
if ($config['newest_username'] == $old_name)
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code:Select all
if (!function_exists('gallery_integrate_user_update_name'))
{
global $phpbb_root_path, $phpEx;
include($phpbb_root_path . GALLERY_ROOT_PATH . 'includes/phpbb_integration.' . $phpEx);
}
gallery_integrate_user_update_name($old_name, $new_name);
Código: Seleccionar todo
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
$table_ary = array(USERS_TABLE, USER_GROUP_TABLE, TOPICS_WATCH_TABLE, FORUMS_WATCH_TABLE, ACL_USERS_TABLE, TOPICS_TRACK_TABLE, TOPICS_POSTED_TABLE, FORUMS_TRACK_TABLE, PROFILE_FIELDS_DATA_TABLE, MODERATOR_CACHE_TABLE, DRAFTS_TABLE, BOOKMARKS_TABLE, SESSIONS_KEYS_TABLE);
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
$table_ary = array_merge($table_ary, array(GALLERY_MODSCACHE_TABLE));
Código: Seleccionar todo
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
// Delete auth entries from the groups table
$sql = 'DELETE FROM ' . ACL_GROUPS_TABLE . "
WHERE group_id = $group_id";
$db->sql_query($sql);
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
// Delete the group from the gallery-moderators
$sql = 'DELETE FROM ' . GALLERY_MODSCACHE_TABLE . "
WHERE group_id = $group_id";
$db->sql_query($sql);
Código: Seleccionar todo
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
if (in_array($config['newest_user_id'], $user_id_ary))
{
set_config('newest_user_colour', $sql_ary['user_colour'], true);
}
}
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
if (!function_exists('gallery_integrate_group_set_user_default'))
{
global $phpbb_root_path, $phpEx;
include($phpbb_root_path . GALLERY_ROOT_PATH . 'includes/phpbb_integration.' . $phpEx);
}
gallery_integrate_group_set_user_default($user_id_ary, $sql_ary);
- AUTOGROUPS 1.02
Código: Seleccionar todo
Open: includes/functions_user.php
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
// Setting the log message before we set the group id (if group gets added)
$log = ($group_id) ? 'LOG_GROUP_UPDATED' : 'LOG_GROUP_CREATED';
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code:Select all
if (!function_exists('auto_group'))
{
global $phpEx;
include($phpbb_root_path . 'includes/functions_autogroup.'.$phpEx);
}
$make_default = false;
$auto_add_users = auto_groups_create($group_id, $group_attributes, $make_default);
// now we have all the information to insert auto users into the table if required
if (isset($auto_add_users) && sizeof($auto_add_users))
{
group_user_add($group_id, $auto_add_users, false, false, $make_default, 0, 0, false, 1);
unset($auto_add_users);
}
// end auto groups mod
<< Hide
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
function group_user_add
In-line Find
Tip: This is a partial match of a line for in-line operations.
Code:Select all
$group_attributes = false
In-line Add after
Code:Select all
, $auto_group = 0
<< Hide
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
'user_pending' => (int) $pending,
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
'auto_group' => (int) $auto_group,
<< Hide
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
function group_user_del
In-line Find
Tip: This is a partial match of a line for in-line operations.
Code:Select all
$group_name = false
In-line Add after
Code:Select all
, $auto_group = 0
<< Hide
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
$sql = 'DELETE FROM ' . USER_GROUP_TABLE . "
WHERE group_id = $group_id
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
AND (auto_group = $auto_group
OR auto_group = 1)
ULTIMATE POINTS 1.0.7
Código: Seleccionar todo
Open: includes/functions_user.php
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
function user_add($user_row, $cp_data = false)
{
global $db, $user, $auth, $config, $phpbb_root_path, $phpEx;
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
// Start Ultimate Points
global $points_config, $points_values;
if ( $config['points_enable'] )
{
$register_points = $points_values['reg_points_bonus'];
}
else
{
$register_points = 0;
}
// End Ultimate Points
<< Hide
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
'user_inactive_reason' => 0,
'user_inactive_time' => 0,
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code:Select all
'user_points' => $register_points,
Estos son los unicos mods que tengo instalados que utilicen functions_user
Unknown column 'user_note' in 'field list' [1054]
Publicado: 16 Dic 2010, 16:40
por leviatan21
Ninguno de esos MODs son lo responsables del agregado, quizás proviene de otro que en algún momento agregaste y luego lo quitaste.
Siendo el caso que esa columna no existe, elimina esta linea y continua con u foro normalmente :
Aproximadamente linea 247 del archivo que adjuntaste
Re: Unknown column 'user_note' in 'field list' [1054] Tema Solucionado
Publicado: 16 Dic 2010, 17:05
por Aitorcillo
Vale, ya encontré de donde proviene la frase 'user_note' resulta que cuando actualicé seguí estos pasos:
2- Abrir el archivo includes/functions_user.php
3- BUSCAR:
Código: Seleccionar todo
function user_add($user_row, $cp_data = false)
4- BUSCAR AHORA:
Código: Seleccionar todo
'user_form_salt' => unique_id(),
5- DESPUÉS AÑADIR:
Código: Seleccionar todo
'user_note' => '',
EL resultado seria este:
Código: Seleccionar todo
'user_form_salt' => unique_id(),
'user_note' => '',
Prueba a ejecutar la actualización de nuevo. Si recibes el mensaje de error sobre una columna diferente, regresa al paso 1 y haz de nuevo esto para la nueva columna.
El número de veces que tienes que hacer esto depende del número de columnas incorrectamente añadidas por diferentes MODs.
Tema original por: Marshalrusty
Y claro, olvidé borrar la frase que puse en function_user, además que no necesité ponerla porque mi problema de actualización era otro.
Gracias

Re: Unknown column 'user_note' in 'field list' [1054]
Publicado: 16 Dic 2010, 17:31
por leviatan21
Aitorcillo escribió:Y claro, olvidé borrar la frase que puse en function_user, además que no necesité ponerla porque mi problema de actualización era otro.
O sea, que hiciste un cambio que no necesitabas... y de ahí el error.
marco el tema como solucionado

Unknown column 'user_note' in 'field list' [1054]
Publicado: 24 Dic 2010, 23:27
por memoadian
A mi tambien me daba ese error, lo que pasa es que al actualizar con el paquete automatico da un error que se corrige con un post de The kuka por eso se le agrega ese user_note, pero al parecer debe borrarse después, en fin que munga, pero no es tan problematico.