[Thanks for Post]: SQL-Error nach Absenden von Themenantwort

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Benutzeravatar
Crizzo
Administrator
Administrator
Beiträge: 12113
Registriert: 19.05.2005 21:45
Kontaktdaten:

[Thanks for Post]: SQL-Error nach Absenden von Themenantwort

Beitrag von Crizzo »

Hi!

Ich nutze phpBB3.0.8: http://www.neoteric-esports.de/index.php

Gerade habe ich den "Thanks for posts" für Beiträge eingebaut: http://www.phpbb.com/customise/db/mod/thanks_for_posts/

Jetzt kommt dieser Fehler:

Code: Alles auswählen

Allgemeiner Fehler
SQL ERROR [ mysqli ]

Unknown column 'NOTIFY_YES' in 'where clause' [1054]

SQL

SELECT u.user_id, u.username, u.user_email, u.user_lang, u.user_notify_type, u.user_jabber FROM phpbb_topics_watch w, phpbb_users u WHERE w.topic_id = 11 AND w.user_id NOT IN (1, 54) AND w.notify_status = NOTIFY_YES AND u.user_type IN (0, 3) AND u.user_id = w.user_id

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: includes/functions_posting.php
LINE: 1211
CALL: dbal_mysqli->sql_query()

FILE: includes/functions_posting.php
LINE: 2607
CALL: user_notification()

FILE: posting.php
LINE: 1253
CALL: submit_post()
Ist doch ein Datenbank-Fehler, dann hab ich doch bei dem Ändern der Dateien nichts falsch gemacht. Also was stimmt da nun nicht? :cry:

Gruß
Blackhawk
Zuletzt geändert von Crizzo am 18.12.2010 11:46, insgesamt 1-mal geändert.
Benutzeravatar
Crizzo
Administrator
Administrator
Beiträge: 12113
Registriert: 19.05.2005 21:45
Kontaktdaten:

Re: SQL-Error nach Absenden von Themenantwort

Beitrag von Crizzo »

Drauf gepfiffen. Ich hab den wieder runtergeworfen.

Mal sehen, ob ich einen finde, der was taugt. :)
Benutzeravatar
Crizzo
Administrator
Administrator
Beiträge: 12113
Registriert: 19.05.2005 21:45
Kontaktdaten:

Re: SQL-Error nach Absenden von Themenantwort

Beitrag von Crizzo »

Verdammt...obwohl ich das alles wieder ausgebaut hab, kommt trotzdem noch dieser Fehler, sporadisch:

Code: Alles auswählen

Allgemeiner Fehler
SQL ERROR [ mysqli ]

Unknown column 'NOTIFY_YES' in 'where clause' [1054]

SQL

SELECT u.user_id, u.username, u.user_email, u.user_lang, u.user_notify_type, u.user_jabber FROM phpbb_topics_watch w, phpbb_users u WHERE w.topic_id = 626 AND w.user_id NOT IN (1, 54) AND w.notify_status = NOTIFY_YES AND u.user_type IN (0, 3) AND u.user_id = w.user_id

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: includes/functions_posting.php
LINE: 1211
CALL: dbal_mysqli->sql_query()

FILE: includes/functions_posting.php
LINE: 2607
CALL: user_notification()

FILE: posting.php
LINE: 1252
CALL: submit_post()
:oops:

Sollte doch alles ganz sein, oder nicht. Hier in der functions_posting.php in Zeile 1244 ist ja das NOTIFY_YES:

Code: Alles auswählen

// forum notification is sent to those not already receiving topic notifications
	if ($topic_notification)
	{
		if (sizeof($notify_rows))
		{
			$sql_ignore_users .= ', ' . implode(', ', array_keys($notify_rows));
		}

		$sql = 'SELECT u.user_id, u.username, u.user_email, u.user_lang, u.user_notify_type, u.user_jabber
			FROM ' . FORUMS_WATCH_TABLE . ' fw, ' . USERS_TABLE . " u
			WHERE fw.forum_id = $forum_id
				AND fw.user_id NOT IN ($sql_ignore_users)
				AND fw.notify_status = " . NOTIFY_YES . '
				AND u.user_type IN (' . USER_NORMAL . ', ' . USER_FOUNDER . ')
				AND u.user_id = fw.user_id';
und nochmal in 1204:

Code: Alles auswählen

// -- get forum_userids	|| topic_userids
	$sql = 'SELECT u.user_id, u.username, u.user_email, u.user_lang, u.user_notify_type, u.user_jabber
		FROM ' . (($topic_notification) ? TOPICS_WATCH_TABLE : FORUMS_WATCH_TABLE) . ' w, ' . USERS_TABLE . ' u
		WHERE w.' . (($topic_notification) ? 'topic_id' : 'forum_id') . ' = ' . (($topic_notification) ? $topic_id : $forum_id) . "
			AND w.user_id NOT IN ($sql_ignore_users)
			AND w.notify_status = " . NOTIFY_YES . '
			AND u.user_type IN (' . USER_NORMAL . ', ' . USER_FOUNDER . ')
			AND u.user_id = w.user_id';
Antworten

Zurück zu „[3.0.x] Mod Support“