Seite 1 von 1

Registrierungsprobleme

Verfasst: 23.11.2002 12:57
von Kagemusha
ich hab mal gesucht, aber eigentlich hat mir keines der topics die ich gefunden hab geholfen...

also: wenn sich ein neuer user bei mir registrieren will bekommt er die fehlermeldung:

Code: Alles auswählen

Could not insert data into users table

DEBUG MODE

SQL Error : 1136 Column count doesn't match value count at row 1

INSERT INTO phpbb_users (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, 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_birthday, user_next_birthday_greeting, user_active, user_actkey) VALUES (10, 'Nox', 1038052494, 'c973d4a3dbba1ef55d1c6044968fc305', 'BlackAngelofDeath@gmx.at', '', '', '', '', '', '', '', '', 0, 0, '', '', '', 1, 1, 1, 1, 1, 0, 1, 1, 1, 'D M d, Y g:i a', 'german', 1, 0, 1, '999999','',1, '')

Line : 563
File : /data/members/free/tripod/de/j/a/p/japancommunity/htdocs/includes/usercp_register.php
hier sind die zeilen 560 - 566 meiner usercp_register:

Code: Alles auswählen

			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);
und wer die ganze datei sehen will soll mal hier klicken: >>klick<<

ich hoff irgendjemand kann mir helfen

Verfasst: 23.11.2002 13:13
von Mister_X
suche in deiner usercp_register.php nach

Code: Alles auswählen

				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("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, '$birthday','$next_birthday_greeting',";
und ersetze es mit

Code: Alles auswählen

				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("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, '$gender', 0, 1, '$birthday','$next_birthday_greeting',";
du hattest den gender Mod nicht komplett eingebaut.

Verfasst: 23.11.2002 19:51
von Kagemusha
danke schön für die hilfe, jetzt funzt wieder alles wie es soll. was so ein kleiner fehler alles ausmachen kann -.-
danke nochmal :D