Seite 2 von 2

Rate Topic Table Error

Verfasst: 22.10.2002 14:42
von maddy
So, jetzt hab ich die Änderunegn eingebaut, bekomme aber nur noch ein ganzes Areal an Fehlermeldungen:

Code: Alles auswählen

p rated topics as a 2-D array $sql = "SELECT AVG(rating) AS average, COUNT(rating) AS rating_number, MIN(rating) AS min, MAX(rating) AS max, topic_id FROM " . RATE_TABLE . " WHERE topic_id IN ($topic_id_sql) GROUP BY topic_id DESC HAVING rating_number >= " . $rate_config['min_rates_number'] . " ORDER BY average DESC LIMIT " . $return_limit; if ( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't query rating data.", "", __LINE__, __FILE__, $sql); } $top_rated_row = $db->sql_fetchrowset($result); $db->sql_freeresult($result); } return $top_rated_row; } ?>
Und dann Später nochmal:

L}
_Details'], append_sid("rate.$phpEx?mode=details&topic_id=" . $topic_id))) ); } $template->set_filenames(array( "rate_viewtopic" => "rate_viewtopic.tpl") ); $template->assign_var_from_handle('RATE_VIEWTOPIC', 'rate_viewtopic'); } ?>
Warning: Cannot add header information - headers already sent by (output started at /mnt/ls6/06/187/00000021/htdocs/forum2/phpBB2/includes/rate_functions.php:577) in /mnt/ls6/06/187/00000021/htdocs/forum2/phpBB2/viewtopic.php on line 537

Warning: Cannot add header information - headers already sent by (output started at /mnt/ls6/06/187/00000021/htdocs/forum2/phpBB2/includes/rate_functions.php:577) in /mnt/ls6/06/187/00000021/htdocs/forum2/phpBB2/includes/page_header.php on line 31

Warning: Cannot add header information - headers already sent by (output started at /mnt/ls6/06/187/00000021/htdocs/forum2/phpBB2/includes/rate_functions.php:577) in /mnt/ls6/06/187/00000021/htdocs/forum2/phpBB2/includes/page_header.php on line 491

Warning: Cannot add header information - headers already sent by (output started at /mnt/ls6/06/187/00000021/htdocs/forum2/phpBB2/includes/rate_functions.php:577) in /mnt/ls6/06/187/00000021/htdocs/forum2/phpBB2/includes/page_header.php on line 492

Warning: Cannot add header information - headers already sent by (output started at /mnt/ls6/06/187/00000021/htdocs/forum2/phpBB2/includes/rate_functions.php:577) in /mnt/ls6/06/187/00000021/htdocs/forum2/phpBB2/includes/page_header.php on line 493


Watt nu ??????????

Rate Topic Table Error

Verfasst: 22.10.2002 14:54
von maddy
hat sich soweit in den Griff bekommen, war wohl ein kleines Problem mit KOPIEREN/EINFÜGEN :D

Nochmals Dank an Acid für die Table Definition !!!!!!!!

Werde jetzt noch einwenig kosmetisch an der Sache rumbasteln .....

Maddy

Rate Topic Table Error

Verfasst: 22.10.2002 15:08
von maddy
Läuft jetzt alles super, danke an alle und vor alles Acid...

Verfasst: 17.12.2002 02:56
von imq
da ich das forum nich voll posten will schreib ich es einfach mal hier rein.

also ich hab den rate mode installiert...tablene erstellt alles hochgeladen..
das erste prob..im ACP unter TOpic Rating >> Konfigurationen..also wenn ich das einstellen will un dann auf akualisieren klicke und später nochma schaue is alles wech..der speichert das nich ab.

im post
Summary Rating For >> Weihnachts Mecker Ecke

Average Rating: 0.00 :: Min Rating: 0 :: Max Rating: 0 :: Number of Ratings: 0
das sieht ja ganz gut aus..aba ich habe keine auswahl so von z.b. 1-10 zu raten..un wenn ich dann einfach mal auf rate klicke kommt das
Couldn't INSERT rating data. If you see Duplicate entry error below, then user has already rated.

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near ' 'd5171194', 1040089829)' at line 1

INSERT INTO phpbb_rate_results VALUES (2, 186, , 'd5171194', 1040089829)

Line : 89
File : /home/www/htdocs/masterimq.de/phpBB2/includes/rate_functions.php
wenn mich nicht alles täuscht muss man nix in der rate_functions.php abändern..also hab ich da auch keine fehler gemacht..

Code: Alles auswählen

zeilen 87-91
		" VALUES (" . $user_id . ", " . $topic_id . ", " . $rating . ", '" . $user_ip . "', " . time() . ")";

		if ( !$result = $db->sql_query($sql) )
		{
			message_die(GENERAL_ERROR, "Couldn't INSERT rating data.  If you see Duplicate entry error below, 
es scheint mir als ob etwas mit dem result table nich stimmt aba ich weiß nich was..alles ordnungsgemäß instlliert..

Hätte da vielleicht einer ne idee??
würd mich über ne antwort freuen
schonmal thx im vorraus

gruß

IMQ

Verfasst: 18.12.2002 23:40
von imq
also jetzt geht es komischerweise...
ich hab da aba noch ein problem HIER..
würd mich freuen wenn mir da noch einer hilft..

gruß

IMQ