Seite 1 von 2

MySQL Fehler 1064

Verfasst: 04.09.2005 18:38
von Crossbows
Nachdem ich ich den Birthday Mod installiert habe erschien als ich mein Profiel ändern wollten dies:

Code: Alles auswählen

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 ' user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonlin

UPDATE phpbb_users SET user_email = 'webmaster@klass4a.coccovisions.ch', user_icq = '', user_website = '', user_occ = '', user_from = '', user_interests = '', user_birthday = '6770', user_next_birthday_greeting = '2006', user_sig = '', user_sig_bbcode_uid = '', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = '', user_attachsig = 0, user_allowsmile = 1,, user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 0, user_notify_pm = 1, 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 = '' WHERE user_id = 2

Line : 591
File : usercp_register.php

Die Zeile Zeile sieht so aus :

Code: Alles auswählen

				$sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')";
und so sieht der Ganze Block aus:

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_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 ($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, $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, '')";
			}

			if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) )
			{
				message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql);
			}
Hoffe jemand weis daür eine lösung... den ich habe keine Ahnung :(

Verfasst: 04.09.2005 22:31
von Underhill

Verfasst: 10.09.2005 18:51
von tomerl
Hi,

Ganz plötzlich ist bei mir dieser Fehler aufgetaucht beim Aufruf des Portals.

Code: Alles auswählen

Could not query announcements information

DEBUG MODE

SQL Error : 1064 Fehler in der Syntax bei ') AND t.topic_time <= 1126368640 AND t.topic_poster ' in Zeile 23.

SELECT t.topic_id, t.topic_time, t.topic_title, pt.post_text, u.username, u.user_id, t.topic_replies, pt.bbcode_uid, t.forum_id, t.topic_poster, t.topic_first_post_id, t.topic_status, pt.post_id, p.post_id, p.enable_smilies FROM phpbb_topics AS t, phpbb_users AS u, phpbb_posts_text AS pt, phpbb_posts AS p WHERE t.forum_id IN (22,27,28,30,31,) AND t.topic_time <= 1126368640 AND t.topic_poster = u.user_id AND t.topic_first_post_id = pt.post_id AND t.topic_first_post_id = p.post_id AND t.topic_status <> 2 ORDER BY t.topic_time DESC LIMIT 0,3

Line : 86
File : portal_poll.php
Was kann ich da dagegen tun? bzw. was ist das für ein Fehler?

Verfasst: 10.09.2005 19:19
von Markus67
Hi ....

Kontrolliere bitte nochmal den Einbau in der common.php.

Nofalls verlinke bitte die Datei als txt-Datei.
KB:datei

Markus

Verfasst: 10.09.2005 19:32
von tomerl
Hallo,
Kann da keinen Fehler feststellen.

siehe hier

Verfasst: 10.09.2005 19:46
von Markus67
Hi ...

Im Adminbereich -> Intro/Portal -> Konfiguration hast du Foren ID's angegeben für die Umfragen?

Markus

Verfasst: 10.09.2005 21:05
von tomerl
Hallo,

Nein habe keine angegeben, bzw. wieder rausgenommen vorhin.

Verfasst: 10.09.2005 21:07
von Markus67
Hi ...

na dann schreib da mal welche rein sonst kanns ja nicht funktionieren :wink:

Und wenn das immer noch nicht klappt erstelle mal in einem der Foren die du angibst eine Umfrage.

Markus

Verfasst: 10.09.2005 21:14
von tomerl
Hallo,

ich hatte ja vorhin welche drinnen, und da ist es ja auch nicht gegangen.
Hatte nur etwas probiert, daher habe ich sie vorhin rausgenommen.

edit: habe jetzt welche angegeben. Funktuioniert dennoch nicht.

nochmal edit: jetzt funktionierts doch.

Und hatte doch mit den Foren ID`s zu tun von Umfragen.

Vielen Dank.

Verfasst: 10.09.2005 21:35
von tomerl
Warum ist jetzt wieder der Fehler vorhanden?

Habe nur die erlaubten Foren ID`S eingegeben, und der Fehler wird wieder angezeigt.