Warning: Cannot use a scalar value
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

Warning: Cannot use a scalar value
Ik krijg deze error in m'n avatar gallery:
Warning: Cannot use a scalar value as an array in /home/gametrex/public_html/v2/website/includes/usercp_register.php on line 879
Ik heb reeds verschillende MOD's geïnstalleerd (+-20), maar nu merk ik het pas op.
Warning: Cannot use a scalar value as an array in /home/gametrex/public_html/v2/website/includes/usercp_register.php on line 879
Ik heb reeds verschillende MOD's geïnstalleerd (+-20), maar nu merk ik het pas op.
Code: Selecteer alles
//
// Get current date
//
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_music, user_sig, user_sig_bbcode_uid, user_sig_image, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allow_signature, user_allow_sig_image, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_gender, user_level, user_allow_pm, user_active, user_actkey)
VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $music) . "'
. str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $signature_sql, $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allow_sig, $allow_sig_image, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, '$gender', 0, 1, ";
if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
{
$user_actkey = gen_rand_string(true);
$key_len = 54 - (strlen($server_url));
$key_len = ( $key_len > 6 ) ? $key_len : 6;
$user_actkey = substr($user_actkey, 0, $key_len);
$sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')";
}
else
{
$sql .= "1, '')";
}
if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) )
{
message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql);
}
Re: Warning: Cannot use a scalar value
usercp_register.php is erg lastig idd.SPyKoN schreef:Ik krijg deze error in m'n avatar gallery:
Warning: Cannot use a scalar value as an array in /home/gametrex/public_html/v2/website/includes/usercp_register.php on line 879
Ik heb reeds verschillende MOD's geïnstalleerd (+-20), maar nu merk ik het pas op.
Je kunt het beste ff je mods nalopen en vergeet niet op 879 te kijken. Welke mod daar in de buurt zit

Re: Warning: Cannot use a scalar value
Het zijn er reeds 21 *slik*Stefkuh schreef:usercp_register.php is erg lastig idd.SPyKoN schreef:Ik krijg deze error in m'n avatar gallery:
Warning: Cannot use a scalar value as an array in /home/gametrex/public_html/v2/website/includes/usercp_register.php on line 879
Ik heb reeds verschillende MOD's geïnstalleerd (+-20), maar nu merk ik het pas op.
Je kunt het beste ff je mods nalopen en vergeet niet op 879 te kijken. Welke mod daar in de buurt zit
Lijn 879 ligt ongeveer in het midden:
Code: Selecteer alles
//
// Default pages
//
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
make_jumpbox('viewforum.'.$phpEx);
if ( $mode == 'editprofile' )
{
if ( $user_id != $userdata['user_id'] )
{
$error = TRUE;
$error_msg = $lang['Wrong_Profile'];
}
}
if( isset($HTTP_POST_VARS['avatargallery']) && !$error )
{
include($phpbb_root_path . 'includes/usercp_avatar.'.$phpEx);
$avatar_category = ( !empty($HTTP_POST_VARS['avatarcategory']) ) ? $HTTP_POST_VARS['avatarcategory'] : '';
$template->set_filenames(array(
'body' => 'profile_avatar_gallery.tpl')
);
$allowviewonline = !$allowviewonline;
display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $user_sig_image, $viewemail, $notifypm, $popup_pm, $notifyreply, $attachsig, $allow_sig, $allow_sig_image, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat, $music, $userdata, $gender['session_id']);
}
else
{
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);
if ( !isset($coppa) )
{
$coppa = FALSE;
}
if ( !isset($user_template) )
{
$selected_template = $board_config['system_template'];
}
$signature_image = ( $user_sig_image != '' ) ? '<img src="' . $board_config['sig_images_path'] . '/' . $user_sig_image . '" alt="" />' : '';