usercp_register.php macht Probleme

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.
Benutzeravatar
Zyancali
Mitglied
Beiträge: 209
Registriert: 09.01.2005 18:55
Wohnort: Österreich/Stmk
Kontaktdaten:

usercp_register.php macht Probleme

Beitrag von Zyancali »

Hi @all !

Wenn ich in meinen Forum eine Testregistrierug absclisse und auf absenden klicke konnt der Fehler das das forum nichts in die phpbb_users tabelle einfügen konnte.

Hier der Code (das rote markierte soll nach der meldung der fehler sein):
{
message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql);
}

if ( !($row = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql);
}
$user_id = $row['total'] + 1;

//
// 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_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_showavatars, user_showsignatures, 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_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("\'", "''", $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, $showavatars, $showsignatures, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ".time()." ";


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
{
Ich hoffe ihr könnt mir helfen !

PS: sollten irgendwo massiger abstand sein so war das mal ein zeilenumbruch !
Windows Vista Ultimate User
Phistev

Beitrag von Phistev »

Wie lautet die komplette Fehlermeldung? Normalerweise sind die Fehlermeldungen von phpBB sehr aufschlussreich.
Benutzeravatar
Zyancali
Mitglied
Beiträge: 209
Registriert: 09.01.2005 18:55
Wohnort: Österreich/Stmk
Kontaktdaten:

Beitrag von Zyancali »

oh Sorry.

Hier:

Code: Alles auswählen

Could not insert data into users table

DEBUG MODE

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_showavatars, user_showsignatures, 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_passwd_change, user_active, user_actkey) VALUES (8, 'Test', 1106342498, '74b87337454200d4d33f80c4663dc5e5', 'test@test.te', '', '', 'BERUF', 'ORT', 'INTERESSEN', 'SIGNATUR', '8cf5847937', '', 0, 1, 'AIM', 'YAHOO', 'MSN', 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 'd.m.Y, H:i', 'german', 3, 0, 1, 1106342498 1, '')

Line : 651
File : C:\xampp\htdocs\phpbb\includes\usercp_register.php
Windows Vista Ultimate User
Phistev

Beitrag von Phistev »

Fehler gefunden, ein simples Komma fehlt. Behebung (nicht Easy-MOD-kompatibel):

Code: Alles auswählen

#
#-----[ IN-LINE, FIND ]-----------------------------------------------------------
#
".time()." ";
#
#-----[ REPLACE WITH ]----------------------------------------------------------
#
".time().", ";
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------------
#
Benutzeravatar
Zyancali
Mitglied
Beiträge: 209
Registriert: 09.01.2005 18:55
Wohnort: Österreich/Stmk
Kontaktdaten:

Beitrag von Zyancali »

mist, geht immer noch nicht:

der teil den ich ersetzt habe nach deiner anleitung ist rot:

$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_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_showavatars, user_showsignatures, 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_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("\'", "''", $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, $showavatars, $showsignatures, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1,
".time().", ";
Bitte weiters um hilfe
Windows Vista Ultimate User
Benutzeravatar
Andy120
Mitglied
Beiträge: 3430
Registriert: 02.01.2004 11:21
Wohnort: Basel (Schweiz)
Kontaktdaten:

Beitrag von Andy120 »

hi....

Mal auf die andere Variante... Verlink mal bitte deine usercp_register.php als .txt Datei und poste auch die Fehlermeldung die du bekommst.

Gruss, Andy
Benutzeravatar
Zyancali
Mitglied
Beiträge: 209
Registriert: 09.01.2005 18:55
Wohnort: Österreich/Stmk
Kontaktdaten:

Beitrag von Zyancali »

[bitte nicht ernst nehmen]wer lesen ist klar im vorteil :wink: .[/bitte nicht ernst nehmen]
hier noch einmal die fehlermeldung:
(weiter unten im post die usercp_register)

Code: Alles auswählen

Could not insert data into users table

DEBUG MODE

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_showavatars, user_showsignatures, 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_passwd_change, user_active, user_actkey) VALUES (8, 'Test', 1106342498, '74b87337454200d4d33f80c4663dc5e5', 'test@test.te', '', '', 'BERUF', 'ORT', 'INTERESSEN', 'SIGNATUR', '8cf5847937', '', 0, 1, 'AIM', 'YAHOO', 'MSN', 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 'd.m.Y, H:i', 'german', 3, 0, 1, 1106342498 1, '')

Line : 651
File : C:\xampp\htdocs\phpbb\includes\usercp_register.php
hier die datei: usercp_register.php.txt
Windows Vista Ultimate User
Benutzeravatar
Zyancali
Mitglied
Beiträge: 209
Registriert: 09.01.2005 18:55
Wohnort: Österreich/Stmk
Kontaktdaten:

Beitrag von Zyancali »

ich kann php und kann dir sagen das ist es nicht, rumprobiern hilft da auch nichts,
der punkt symboliesiert nur das noch etwas (zB ein String) kommt.
Aber trotzdem danke das versucht hast das probzu lösen
Windows Vista Ultimate User
Benutzeravatar
Zyancali
Mitglied
Beiträge: 209
Registriert: 09.01.2005 18:55
Wohnort: Österreich/Stmk
Kontaktdaten:

Beitrag von Zyancali »

jetzt kommt schon ! :x
Windows Vista Ultimate User
Antworten

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