Tks for helpErro Geral
SQL ERROR [ mysql4 ]
Data too long for column 'ban_give_reason' at row 1 [1406]
SQL
INSERT INTO cetos_banlist (ban_email, ban_start, ban_end, ban_exclude, ban_reason, ban_give_reason, ban_banner) VALUES ('[email protected]', 1249582870, 0, 0, 'bbfdsd', 'Este e-mail já esteve associado a um registo anterior. Apesar de ter tido a conta activa não frequentou o Fórum e passada uma semana o e-mail foi banido tal como escrito aqui: http://www.cetos.info/forum/viewtopic.php?f=1&t=1056 TENTE COM OUTRO E-MAIL', 3)
BACKTRACE
FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()
FILE: includes/db/dbal.php
LINE: 450
CALL: dbal_mysql->sql_query()
FILE: includes/functions_user.php
LINE: 1019
CALL: dbal->sql_multi_insert()
FILE: includes/acp/acp_ban.php
LINE: 63
CALL: user_ban()
FILE: includes/functions_module.php
LINE: 507
CALL: acp_ban->main()
FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()
Code: Select all
http://www.phpbb.com/community/viewtopic.php?f=69&t=597284
Post up the pic...that's fine.gregdg1 wrote:ok after about a day in a half i have been able to get a pic of it and i do not know if its safe to post it here
this is kinda what it says
1 line
[phpbb debug] and then its got alot of stuff there
and then its got 4 dif lines and thay all start out like this
warning cannot modify header information
and then it goes on giving info if its safe to post the pic here i will i just did not know if that
give out to much info
thx
greg
No comment about these lines of code?sypher01 wrote:Theres an error on line 172 of ban_list.php
u do this:
$result2 = $db->sql_build_query('SELECT', $sql_ary);
and then u treat the $result2 as a result, but it isnt. its just the plain text query.
replace that line with this:
$result2 = $db->sql_query($db->sql_build_query('SELECT', $sql_ary));
then the total count of the users in the ban_list page will work as expected.
Code: Select all
while ($row2 = $db->sql_fetchrow($result2))
{
$banned_users[] = $row2['ban_userid'];
}
Yep, but the sql query must be executed first.RMcGirr83 wrote:Note the $db->sql_fetchrowCode: Select all
while ($row2 = $db->sql_fetchrow($result2)) { $banned_users[] = $row2['ban_userid']; }
so this is the way my line 686 looks if there is any thing eles you need just let know thxFind
Tip: This may be a partial find and not the whole line.
In-line FindCode: Select all
function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reason, $ban_give_reason = ''
Tip: This is a partial match of a line for in-line operations.
In-line Add afterCode: Select all
$ban_give_reason = ''
Code: Select all
, $ban_banner
Code: Select all
function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reason, $ban_give_reason = '', $ban_banner)
Code: Select all
user_ban('user', array($user_row['username']), $config['warnings_ban_expire'], false, 0, $user->lang['AUTO_WARN_BAN']);
Code: Select all
user_ban('user', array($user_row['username']), $config['warnings_ban_expire'], false, 0, $user->lang['AUTO_WARN_BAN'], $user->lang['AUTO_WARN_BAN_REASON'], $user->data['user_id']);
Code: Select all
'AUTO_WARN_BAN' => 'User has reached maximum warnings and has been automatically banned.',
Code: Select all
'AUTO_WARN_BAN_REASON' => 'Maximum warnings reached',