Umfrage Problem

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.
Antworten
Benny
Mitglied
Beiträge: 184
Registriert: 19.05.2002 12:15
Wohnort: Oldenburg
Kontaktdaten:

Umfrage Problem

Beitrag von Benny »

nabend

wenn ich bei einem bestehenden Beitrag eine Umfrage hinzufügen will, kommt folgende fehlermeldung:

Code: Alles auswählen

Allgemeiner Fehler 
  
Error in posting

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near 'WHERE topic_id = 373' at line 1

UPDATE phpbb_fa2005topics SET topic_title = 'Coole Windows-History', topic_type = 0, topic_vote = 1, k_id= WHERE topic_id = 373

Line : 254
File : /....../includes/functions_post.php

Code Teil:

Code: Alles auswählen

if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
	{
		$topic_vote = ( !empty($poll_title) && count($poll_options) >= 2 ) ? 1 : 0;
		$sql  = ( $mode != "editpost" ) ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, k_id) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote, $k_id)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_vote = $topic_vote, k_id=$k_id WHERE topic_id = $topic_id";
		if ( !$db->sql_query($sql) )
		{
			message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
		}

		if ( $mode == 'newtopic' )
		{
			$topic_id = $db->sql_nextid();
		}
	}
Was ist da falsch??

Vielen Dank

Benny
Acid
Ehrenadmin
Beiträge: 12195
Registriert: 26.04.2001 02:00
Wohnort: Berlin

Beitrag von Acid »

Du hast diesen "Category" Mod eingebaut... scheinbar fehlerhaft. :roll:
Am besten nochma die Anleitung durchgehen.
Benny
Mitglied
Beiträge: 184
Registriert: 19.05.2002 12:15
Wohnort: Oldenburg
Kontaktdaten:

Beitrag von Benny »

problem ist gelöst.

Benny :cookie:
Benutzeravatar
Pseiko
Mitglied
Beiträge: 502
Registriert: 31.01.2003 11:20
Wohnort: Rothenburg/Oberlausitz
Kontaktdaten:

Beitrag von Pseiko »

Wie bastelt man diesen Forum Banner?
Benutzeravatar
talkboard
Mitglied
Beiträge: 111
Registriert: 28.06.2003 12:23
Kontaktdaten:

Beitrag von talkboard »

Hier erfährst du wie du dir so eine Bannerstatistik machen kannst.
Antworten

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