Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

Ayuda urgente con SMF

Estas en el tema de Ayuda urgente con SMF en el foro de Sistemas de gestión de contenidos en Foros del Web. Auxilio, estava actualizando mi foro SMF y me dice lo siguiente: Código: Updating and creating indexes... Unsuccessful! This query: ALTER TABLE smf_smileys ORDER BY LENGTH(code) ...
  #1 (permalink)  
Antiguo 06/05/2009, 00:13
Avatar de kalvinman  
Fecha de Ingreso: octubre-2006
Ubicación: Bogota Colombia
Mensajes: 849
Antigüedad: 17 años, 7 meses
Puntos: 22
Pregunta Ayuda urgente con SMF

Auxilio, estava actualizando mi foro SMF y me dice lo siguiente:

Código:
Updating and creating indexes... Unsuccessful!
This query:
ALTER TABLE smf_smileys
ORDER BY LENGTH(code) DESC;
Caused the error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LENGTH(code) DESC' at line 2
como soluciono este problema???
  #2 (permalink)  
Antiguo 10/05/2009, 03:42
 
Fecha de Ingreso: abril-2009
Mensajes: 35
Antigüedad: 15 años
Puntos: 0
Respuesta: Ayuda urgente con SMF

Tranquilo.
Tiene fácil solución:
Siempre y cuando entiendas inglés.

Cita:
There are two solutions to resolve this error.

The first solution will fix both the issue with upgrading, as well as an issue with editing smileys in the Smileys and Message Icons section of your admin panel.
All you need to do is update your MySQL version. To update MySQL yourself, you will have to have server access. Otherwise, and more commonly the case, you will have to ask your host to upgrade MySQL on the server for you. It is unknown at the time if the MySQL AB Team is supporting this uasge or not.

There may be other versions of MySQL that have this issue as well, but upgrading MySQL to the latest version for the MySQL branch you are using may resolve the issue.

The second way to resolve this for upgrading is to open "upgrade_1-1.sql" with a text editor and find the following:
Code: [Select]
ALTER TABLE {$db_prefix}smileys
ORDER BY LENGTH(code) DESC;

Replacing this with:
Code: [Select]
ALTER TABLE {$db_prefix}smileys
ORDER BY code DESC;

For editing smileys in the Smileys and Message Icons section of your admin panel, open "/Sources/ManageSmileys.php" with a text editor and find the following code:
Code:
// Sort all smiley codes for more accurate parsing (longest code first).
db_query("
ALTER TABLE {$db_prefix}smileys
ORDER BY LENGTH(code) DESC", __FILE__, __LINE__);
Replacing this with:
Code:
// Sort all smiley codes for more accurate parsing (longest code first).
db_query("
ALTER TABLE {$db_prefix}smileys
ORDER BY code DESC", __FILE__, __LINE__);
This section of code will appear twice in "/Sources/ManageSmileys.php", You will find this approximatively on lines 654 and 990.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:34.