Seite 1 von 1

Fehlermeldung "Debug Mode"

Verfasst: 08.04.2006 08:52
von Sabi
Guten Morgen,

ich hab heut nacht die folgenden Mods installiert:

Info+Portal db
EasyMod db
Wer war da Mod
Emoticons db
Miniprofil
ICQ Chat
Übersicht über inaktive/aktive Mitglieder
AtlasMod


Das läuft auch alles soweit, nur hab ich ein Problem jetzt bemerkt.
Wenn ich das Profil änder will, erhalte ich folgende Fehlermeldung:

Could not update users table

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''emotion' WHERE user_id = 1' at line 2

UPDATE phpbb_users SET user_email = 'Shadowrun-Online@gmx.net', user_icq = '', user_website = 'http://www.shadowrun-online.de', user_occ = '', user_from = 'NRW', user_interests = 'Shadowrun!', user_sig = '[img:fa5ccb44fa]http://www.mitglied.lycos.de/cfhstuff/G ... 7c9503.gif[/img:fa5ccb44fa]', user_sig_bbcode_uid = 'fa5ccb44fa', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = '', user_attachsig = 1, user_allowsmile = 1, user_allowhtml = 1, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 1, user_notify_pm = 1, user_popup_pm = 1, user_timezone = 0, user_dateformat = 'd M Y H:i', user_lang = 'german', user_style = 1, user_active = 1, user_actkey = '', user_emotion = $'emotion' WHERE user_id = 1

Line : 552
File : usercp_register.php

Hier ist die besagte Codepassage aus der usercp_register.php

Code: Alles auswählen

$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 = $popup_pm, 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_emotion = $'emotion', user_long = '" . str_replace("\'", "''", $user_long) . "', user_lat = '" . str_replace("\'", "''", $user_lat) . "
				WHERE user_id = $user_id";
			if ( !($result = $db->sql_query($sql)) )
			{
				message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
Ich finde den Fehler nicht, wäre super wenn man mir helfen könnte :roll:

Verfasst: 08.04.2006 09:18
von roger

Code: Alles auswählen

user_emotion = $'emotion',
Da musst du noch einmal nachschauen, aus welchem MOD du dieses Teil hast...
entweder:

Code: Alles auswählen

user_emotion = $emotion,
oder:

Code: Alles auswählen

user_emotion = 'emotion',
roger

Verfasst: 08.04.2006 09:31
von Sabi
Hallo Roger,

habe beide Varianten gerade probiert...ohne Erfolg.
Immernoch die Fehlermeldung. :x

Verfasst: 08.04.2006 09:32
von BB-BF-BM
Probier mal

Code: Alles auswählen

user_emotion = '$emotion',

Verfasst: 08.04.2006 09:41
von Sabi
Hat auch nicht geholfen.

Verfasst: 08.04.2006 09:43
von BB-BF-BM
nur eine kleine Änderung, dürfte aber wenig ausmachen:

Code: Alles auswählen

user_emotion = '" . $emotion . "',
Ist die Meldung denn noch gleich?

Verfasst: 08.04.2006 09:49
von Sabi
DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' WHERE user_id = 1' at line 2

UPDATE phpbb_users SET user_email = 'Shadowrun-Online@gmx.net', user_icq = '', user_website = 'http://www.shadowrun-online.de', user_occ = '', user_from = 'NRW', user_interests = 'Shadowrun!', user_sig = '[img:81672e7aee]http://www.mitglied.lycos.de/cfhstuff/G ... 7c9503.gif[/img:81672e7aee]', user_sig_bbcode_uid = '81672e7aee', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = '', user_attachsig = 1, user_allowsmile = 1, user_allowhtml = 1, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 1, user_notify_pm = 1, user_popup_pm = 1, user_timezone = 0, user_dateformat = 'd M Y H:i', user_lang = 'german', user_style = 1, user_active = 1, user_actkey = '', user_emotion = '0', user_long = '', user_lat = ' WHERE user_id = 1

Line : 552
File : usercp_register.php


Das ist die Fehlermeldung.

Verfasst: 08.04.2006 10:26
von roger
Die Fehlermeldung ist jetzt eine andere. Versuch 'mal:
Suche:

Code: Alles auswählen

user_lat = '" . str_replace("\'", "''", $user_lat) . "
Ersetze mit:

Code: Alles auswählen

user_lat = '" . str_replace("\'", "''", $user_lat) . "'
roger

Verfasst: 08.04.2006 13:19
von Sabi
SUPER DANKE Roger!!!
Das war die Lösung!!

Vielen Dank!! :grin: