Página 1 de 1

Sql Error al postear un anuncio global

Publicado: 27 May 2014, 19:25
por D4m13n
URL: http://www.restrictedarea.tk/foro/
Versión phpBB: 3.0.12
MODs Instalados: Advanced BBCode Box 3 (aka ABBC3), Sort topics alphabetically, Warning Reasons, Ban users by x warnings, ACP Add User MOD
Plantilla(s) usada(s): Prosilver
Servidor: Linux Gratuito
Actualización desde otra versión: No
Conversión desde otro sistema de foros: No



Hola muy buenas espero que alguien me pueda ayudar.
queria poner un anuncio como global y esto me ocurre.

Código: Seleccionar todo

Error General
SQL ERROR [ mysql4 ]

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 '' at line 1 [1064]

SQL

SELECT user_avatar_type, user_avatar FROM (phpbb_users u) WHERE u.user_id = 

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()

FILE: [ROOT]/includes/db/mysql.php
LINE: 193
CALL: dbal->sql_error()

FILE: [ROOT]/includes/hooks/hook_alternatelogin.php
LINE: 95
CALL: dbal_mysql->sql_query()

FILE: (not given by php)
LINE: (not given by php)
CALL: CSAlternateLogin::page_header()

FILE: [ROOT]/includes/hooks/index.php
LINE: 141
CALL: call_user_func_array()

FILE: [ROOT]/includes/functions.php
LINE: 4939
CALL: phpbb_hook->call_hook()

FILE: [ROOT]/includes/session.php
LINE: 1829
CALL: phpbb_user_session_handler()

FILE: [ROOT]/viewtopic.php
LINE: 363
CALL: user->setup()

Re: Sql Error al postear un anuncio global  Tema Solucionado

Publicado: 27 May 2014, 20:47
por andares
Encuentre la matriz $sql en torno a la línea 34 en hook_alternatelogin.php y reemplazarlo con lo siguiente:

Código: Seleccionar todo

$sql_array = array(
            'SELECT'      => '*',
            'FROM'         => array(POSTS_TABLE => 'p'),
            'WHERE'         => 'p.topic_id = ' . $topic_id,
            'ORDER_BY'      => 'p.post_id'
         );
Fuente: https://www.phpbb.com/community/viewtop ... #p13563151

Re: Sql Error al postear un anuncio global

Publicado: 27 May 2014, 22:48
por D4m13n
Muchas gracias era eso.