Problem mit Userregistrierung --> SQL Error : 1054 Unknow

Probleme bei der regulären Arbeiten mit phpBB, Fragen zu Vorgehensweisen oder Funktionsweise sowie sonstige Fragen zu phpBB im Allgemeinen.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
funcarver
Mitglied
Beiträge: 3
Registriert: 12.02.2006 18:22

Problem mit Userregistrierung --> SQL Error : 1054 Unknow

Beitrag von funcarver »

Hallo,

ich habe da ein Problem mit der Userregistrierung. Hab hier im Board schon gesucht, auch was gefunden, aber irgendwie steig ich da nichtr durch, kann mir vielleicht jemand dabei helfen?

Ich bekomme follgende Fehlermeldung:
Could not insert data into users table

DEBUG MODE

SQL Error : 1054 Unknown column 'user_id' in 'field list'

INSERT INTO jos_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_level, user_allow_pm, user_active, user_actkey) VALUES (64, 'qqqqq', 1139764398, '437599f1ea3514f8969f161a6606ce18', 'qqq@qq.qq', '', '', '', '', '', '', '', '', 0, 0, '', '', '', 1, 1, 0, 1, 1, 0, 1, 1, 0, 'D M d, Y g:i a', 'german', 13, 0, 1, 0, 'dffe12a7c97')

Line : 689
File : usercp_register.php
Hab den Quelltext schon rausgesucht, er lautet:
$sql = "INSERT INTO " . USERS_TABLE . " (id, username, name, usertype, gid, user_regdate, password, email, user_icq, user_website, user_occ, user_from, user_from_flag, 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_level, user_allow_pm, user_active, user_actkey, registerDate)
VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', '" . str_replace("\'", "''", $username) . "', '$usertype', $mos_group, " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . $user_flag . "', '" . 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, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 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, '', NOW())";
}

if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) )
{
message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql);
return;
}
Wär echt klasse wenn mir da jemand helfen könnte...

Viele Grüße
funcarver
diegoriv
Mitglied
Beiträge: 115
Registriert: 09.08.2005 10:21
Kontaktdaten:

Beitrag von diegoriv »

seltsamer quelltext. Bist du sicher. Der schaut mehr als verdächtig aus. Kann ich nicht glauben.
Hier die gleiche Stelle bei mir:

Code: Alles auswählen

			$sql = "INSERT INTO " . USERS_TABLE . "	(user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_btitle, user_from, user_from_flag, user_interests, user_absence_mode, user_absence, user_absence_text, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_upi2db_which_system, user_upi2db_new_word, user_upi2db_edit_word, user_upi2db_unread_color, user_aim, user_yim, user_msnm, user_attachsig, user_setbm, 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_passwd_change, 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("\'", "''", $btitle) . "', '" . str_replace("\'", "''", $location) . "', '$user_flag', '" . str_replace("\'", "''", $interests) . "', $user_absence_mode, $user_absence, '" . str_replace("\'", "''", $user_absence_text) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, $upi2db_which_system, $upi2db_new_word, $upi2db_edit_word, $upi2db_unread_color, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $setbm, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, '$gender', 0, 1, '$birthday', '$next_birthday_greeting', ".time().",";
						
Versuchs mal mit der, Bei dir stimmen ja sämtliche Variablen nicht zusammen und teilweise sind se doppelt. ...
****************************************
Alpinum.at - Forum für Bergsteiger
****************************************
funcarver
Mitglied
Beiträge: 3
Registriert: 12.02.2006 18:22

Beitrag von funcarver »

Nein, Sorry, hat nicht funktioniert. das eigenartige ist, das es jetzt eine anderer fehlermeldung ist:

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 jos_users (id, user_active, username, name, usertype, gid, user_regdate, password, email, user_icq, user_website, user_occ, user_from, user_from_flag, 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_level, user_allow_pm, user_active, user_actkey, registerDate) VALUES (64, 'qqqqq', 'qqqqq', 'Registered', 18, 1139771602, '437599f1ea3514f8969f161a6606ce18', 'qqq@qq.qq', '', '', '', '', '', '', '', '', '', 0, 0, '', '', '', 1, 1, 0, 1, 1, 0, 1, 1, 0, 'D M d, Y g:i a', 'german', 13, 0, 1, 0, '605ea7573b6')

Line : 689
File : usercp_register.php
 
Der Quelltext ist der gleiche....
diegoriv
Mitglied
Beiträge: 115
Registriert: 09.08.2005 10:21
Kontaktdaten:

Beitrag von diegoriv »

Ok, das passt nicht, war zu erwarten.

Hmmm - ist dein Board original? Was hast du eingebaut, ausgebaut?

//edit: Nimm deinen eigenen Code und schreib anstatt id mal user_id gleich am Anfang
****************************************
Alpinum.at - Forum für Bergsteiger
****************************************
funcarver
Mitglied
Beiträge: 3
Registriert: 12.02.2006 18:22

Beitrag von funcarver »

OK, hat sich erledigt, danke euch...

ich arbeite unter joomla! und hab da das phpbb integriert. Hab im Netz ein Update gefunden, nachdem ich das installiert hab, hat alles funktioniert.

viele grüße, funcarver
Lord_Dath
Mitglied
Beiträge: 3
Registriert: 20.02.2006 09:57

Beitrag von Lord_Dath »

könntest Du mal sagen wie Du das behoben hast, den ich hab das gleiche Problem
Lord_Dath
Mitglied
Beiträge: 3
Registriert: 20.02.2006 09:57

Beitrag von Lord_Dath »

kann mir hier keiner weiter helfen?

welches update hat da geholgfen?
Antworten

Zurück zu „phpBB 2.0: Administration, Benutzung und Betrieb“