Fehlermeldung nach Einbau des Gender Mod
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.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
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.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
- Caiman
- Mitglied
- Beiträge: 47
- Registriert: 11.07.2003 22:06
- Wohnort: Gottmadingen (20km westlich des B´sees)
Fehlermeldung nach Einbau des Gender Mod
Hi ihr Profis ich wollte mir gerade den Gender Mod einbauen (phpBB Vers. 2.0.4) und bekomme jetzt beim Aufruf meines Profils folgende Fehlermeldung:
Parse error: parse error, unexpected ',' in /home/www/doc/8077/caimanstreff.de/board/bb/includes/usercp_register.php on line 783
Meine usercp_register.php
Brauche dringend Hilfe; weiss nicht mehr weiter..
Greetz,
Caiman
Parse error: parse error, unexpected ',' in /home/www/doc/8077/caimanstreff.de/board/bb/includes/usercp_register.php on line 783
Meine usercp_register.php
Brauche dringend Hilfe; weiss nicht mehr weiter..
Greetz,
Caiman
- Caiman
- Mitglied
- Beiträge: 47
- Registriert: 11.07.2003 22:06
- Wohnort: Gottmadingen (20km westlich des B´sees)
Hab noch nen Fehler gefunden (beim Aufruf des Adminmenüs):
Parse error: parse error, unexpected ',' in /home/www/doc/8077/caimanstreff.de/board/bb/admin/admin_users.php on line 651
meine admin_users.php
Parse error: parse error, unexpected ',' in /home/www/doc/8077/caimanstreff.de/board/bb/admin/admin_users.php on line 651
meine admin_users.php
usercp_register.php
admin_users.php
++FINDE++
..lösche , $gender aus dieser Zeile. Wenn danach in derselben Zeile wieder ein Fehler angezeigt wird, dann lösche bei '$gender' die Anführungsstriche.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, $viewemail, $notifypm, $popuppm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, '$gender', $user_lang, $user_timezone, $user_dateformat, $userdata['session_id']), $gender;
admin_users.php
++FINDE++
++MIT FOLGENDEM ERSETZEN++SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank", user_gender = '$gender' . $avatar_sql . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank, user_gender = '$gender'" . $avatar_sql . "
- Caiman
- Mitglied
- Beiträge: 47
- Registriert: 11.07.2003 22:06
- Wohnort: Gottmadingen (20km westlich des B´sees)
YEAH! Ich Noob habs doch noch geschafft. Am Ende der Line hat ein Semikolon gefehlt -das wars..
Danke nochmal für deine Hilfe, Acid!!
Och nö. Noch während ich diese Zeilen schreib die nächste Fehlermeldung. Also ins Profil kam ich jetzt, konnte bei mir 'male' auch anklicken. Aber nach´m Absenden krieg ich folgendes jetzt zu sehn:
Parse error: parse error, unexpected ',', expecting '{' in /home/www/doc/8077/caimanstreff.de/board/bb/includes/usercp_avatar.php on line 245
Warning: Cannot modify header information - headers already sent by (output started at /home/www/doc/8077/caimanstreff.de/board/bb/includes/usercp_avatar.php:245) in /home/www/doc/8077/caimanstreff.de/board/bb/includes/page_header.php on line 480
Warning: Cannot modify header information - headers already sent by (output started at /home/www/doc/8077/caimanstreff.de/board/bb/includes/usercp_avatar.php:245) in /home/www/doc/8077/caimanstreff.de/board/bb/includes/page_header.php on line 482
Warning: Cannot modify header information - headers already sent by (output started at /home/www/doc/8077/caimanstreff.de/board/bb/includes/usercp_avatar.php:245) in /home/www/doc/8077/caimanstreff.de/board/bb/includes/page_header.php on line 483
Debug-Meldung:
Could not update users table
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near '1' WHERE user_id = 2' at line 2
UPDATE phpbb_users SET user_email = 'webmaster@caimanstreff.de', user_icq = '157111545', user_website = 'http://www.caimanstreff.de', user_occ = '', user_from = 'Gottmadingen', user_interests = '', user_sig = '[b:b1926da444][size=16:b1926da444][color=blue:b1926da444]Webmaster@[/color:b1926da444] [color=yellow:b1926da444]Caimanstreff.de[/color:b1926da444] [color=blue:b1926da444]Admin@[/color:b1926da444] [color=yellow:b1926da444]Caimanstreff.de Board[/color:b1926da444][/b:b1926da444][/size:b1926da444] [size=10:b1926da444][b:b1926da444][color=blue:b1926da444]Caiman Unser im Forum Geheiligt werde Dein Nick Dein Post komme Dein Ban geschehe Wie im Ab18-Forum, so auch im Off-Topic Unsere tägliche Verwarnung gib uns heute Und vergib uns unseren SPAM Wie auch wir vergeben den SPAMMERN Und führe uns nicht in Versuchung, Sondern erlöse uns von den Kiddies Denn Dein ist das Board, Und der Close-Button, Und die User, In Ewigkeit, CLOSED.[/color:b1926da444][/b:b1926da444][/size:b1926da444] [img:b1926da444]http://board.caimanstreff.de/bb/signature.php[/img:b1926da444]', user_sig_bbcode_uid = 'b1926da444', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = 'tfb4acaiman@hotmail.com', user_attachsig = 1, user_allowsmile = 1, user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 0, user_notify_pm = 0, user_popup_pm = 1, user_timezone = 1, user_dateformat = 'd.m.Y - H:i', user_lang = 'german', user_style = 1, user_active = 1, user_actkey = ''', user_gender='1' WHERE user_id = 2
Line : 499
File : /home/www/doc/8077/caimanstreff.de/board/bb/includes/usercp_register.php
Ich werd noch wahnsinnig..
Danke nochmal für deine Hilfe, Acid!!

Och nö. Noch während ich diese Zeilen schreib die nächste Fehlermeldung. Also ins Profil kam ich jetzt, konnte bei mir 'male' auch anklicken. Aber nach´m Absenden krieg ich folgendes jetzt zu sehn:
Parse error: parse error, unexpected ',', expecting '{' in /home/www/doc/8077/caimanstreff.de/board/bb/includes/usercp_avatar.php on line 245
Warning: Cannot modify header information - headers already sent by (output started at /home/www/doc/8077/caimanstreff.de/board/bb/includes/usercp_avatar.php:245) in /home/www/doc/8077/caimanstreff.de/board/bb/includes/page_header.php on line 480
Warning: Cannot modify header information - headers already sent by (output started at /home/www/doc/8077/caimanstreff.de/board/bb/includes/usercp_avatar.php:245) in /home/www/doc/8077/caimanstreff.de/board/bb/includes/page_header.php on line 482
Warning: Cannot modify header information - headers already sent by (output started at /home/www/doc/8077/caimanstreff.de/board/bb/includes/usercp_avatar.php:245) in /home/www/doc/8077/caimanstreff.de/board/bb/includes/page_header.php on line 483
Debug-Meldung:
Could not update users table
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near '1' WHERE user_id = 2' at line 2
UPDATE phpbb_users SET user_email = 'webmaster@caimanstreff.de', user_icq = '157111545', user_website = 'http://www.caimanstreff.de', user_occ = '', user_from = 'Gottmadingen', user_interests = '', user_sig = '[b:b1926da444][size=16:b1926da444][color=blue:b1926da444]Webmaster@[/color:b1926da444] [color=yellow:b1926da444]Caimanstreff.de[/color:b1926da444] [color=blue:b1926da444]Admin@[/color:b1926da444] [color=yellow:b1926da444]Caimanstreff.de Board[/color:b1926da444][/b:b1926da444][/size:b1926da444] [size=10:b1926da444][b:b1926da444][color=blue:b1926da444]Caiman Unser im Forum Geheiligt werde Dein Nick Dein Post komme Dein Ban geschehe Wie im Ab18-Forum, so auch im Off-Topic Unsere tägliche Verwarnung gib uns heute Und vergib uns unseren SPAM Wie auch wir vergeben den SPAMMERN Und führe uns nicht in Versuchung, Sondern erlöse uns von den Kiddies Denn Dein ist das Board, Und der Close-Button, Und die User, In Ewigkeit, CLOSED.[/color:b1926da444][/b:b1926da444][/size:b1926da444] [img:b1926da444]http://board.caimanstreff.de/bb/signature.php[/img:b1926da444]', user_sig_bbcode_uid = 'b1926da444', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = 'tfb4acaiman@hotmail.com', user_attachsig = 1, user_allowsmile = 1, user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 0, user_notify_pm = 0, user_popup_pm = 1, user_timezone = 1, user_dateformat = 'd.m.Y - H:i', user_lang = 'german', user_style = 1, user_active = 1, user_actkey = ''', user_gender='1' WHERE user_id = 2
Line : 499
File : /home/www/doc/8077/caimanstreff.de/board/bb/includes/usercp_register.php
Ich werd noch wahnsinnig..
- Caiman
- Mitglied
- Beiträge: 47
- Registriert: 11.07.2003 22:06
- Wohnort: Gottmadingen (20km westlich des B´sees)
Ach ja zum Nackkucken noch die page_header.php..
EDIT: Dachte, dass die Fehlermeldung nur kommt, wenn ich im Profil das Geschlecht einstelle und auf absenden klicke. Is aber nich so. Egal WAS ich im Profil ändere: Klicke ich dann auf absenden, bekomm ich o.a. Fehlermeldung..
EDIT: Dachte, dass die Fehlermeldung nur kommt, wenn ich im Profil das Geschlecht einstelle und auf absenden klicke. Is aber nich so. Egal WAS ich im Profil ändere: Klicke ich dann auf absenden, bekomm ich o.a. Fehlermeldung..
da ich gerade den *.ace Entpacker nicht zur Hand habe:
Überprüfe die Stelle mal genau in deiner Datei: da ist ein ' zuviel 
Überprüfe die Stelle mal genau in deiner Datei:
Code: Alles auswählen
user_actkey = '''

- Caiman
- Mitglied
- Beiträge: 47
- Registriert: 11.07.2003 22:06
- Wohnort: Gottmadingen (20km westlich des B´sees)
Hm. Die ganze Zeile sieht so aus:
Da ist überall zuerst " und dann noch ein ' 
Code: Alles auswählen
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "', user_gender='$gender'

- Caiman
- Mitglied
- Beiträge: 47
- Registriert: 11.07.2003 22:06
- Wohnort: Gottmadingen (20km westlich des B´sees)
Auzüge aus der usercp_register (überall wo 'gender' vorkommt und wo etwas falsch sein könnte):
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "', user_gender = $gender,
$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_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) UND SO WEITER '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, $gender, ";
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "', user_gender = $gender,
$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_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) UND SO WEITER '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, $gender, ";
ich sage nur [.CODE] Tags 
UPDATE - Zeile:
lösche den ' mal weg, ansonsten hast du den Einbau voll verhunzt 
INSERT INTO - Zeile: musst du direkt nach einfügen

UPDATE - Zeile:
Code: Alles auswählen
$avatar_sql . "'

INSERT INTO - Zeile:
Code: Alles auswählen
$gender,
Code: Alles auswählen
$user_style,