Seite 1 von 3

nach update lassen sich neu erstellte threads nicht öffnen

Verfasst: 21.09.2008 14:23
von beastie
hallo,

nach dem update hab ich plötzlich dieses problem hier:

wenn ein neuerstellter thread geöffnet werden soll, erscheint folgende fehlermedung
SQL ERROR [ mysql4 ]

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 'AND user_id = 76' at line 4 [1064]

SQL

SELECT notify_status FROM phpbb3_topics_watch WHERE topic_id = AND user_id = 76

BACKTRACE

FILE: includes/db/mysql.php
LINE: 158
CALL: dbal_mysql->sql_error()

FILE: includes/functions_display.php
LINE: 1003
CALL: dbal_mysql->sql_query()

FILE: viewtopic.php
LINE: 456
CALL: watch_topic_forum()
die alten threads lassen sich ganz normal öffnen....
allerdings wird dann oben über dem header folgendes angezeigt
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 982: Missing argument 6 for watch_topic_forum()
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3550: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3552: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3553: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3554: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
und nu?

Verfasst: 21.09.2008 14:29
von Miriam
Update? Von welcher Version auf welche Version?
SELECT notify_status FROM phpbb3_topics_watch WHERE topic_id = Hier fehlt ein Wert AND user_id = 76
Hast Du Deine Umsetzung des Updates schon überprüft und Dir auch die includes/functions_display.php speziell um die Zeile 982 herum angeschaut?

Verfasst: 21.09.2008 14:45
von beastie
update von 3.0.1 auf 3.0.2 (automatisches update)

ich kann da leider nix entdecken, aber hier ist der code
zeile 982 ist die 4. zeile

Code: Alles auswählen

/**
* Topic and forum watching common code
*/
function watch_topic_forum($mode, &$s_watching, &$s_watching_img, $user_id, $forum_id, $topic_id, $notify_status = 'unset', $start = 0)
{
	global $template, $db, $user, $phpEx, $start, $phpbb_root_path;

	$table_sql = ($mode == 'forum') ? FORUMS_WATCH_TABLE : TOPICS_WATCH_TABLE;
	$where_sql = ($mode == 'forum') ? 'forum_id' : 'topic_id';
	$match_id = ($mode == 'forum') ? $forum_id : $topic_id;

	$u_url = ($mode == 'forum') ? 'f' : 'f=' . $forum_id . '&t';
zu dem fehlenden wert kann ich auch nix sagen, hab es so kopiert und eingefügt

Verfasst: 21.09.2008 15:18
von Miriam
Okay, dann sichere mal Deine aktuelle viewtopic.php und ersetze sie mit einer neuen aus der 3.0.2 Version.

Verfasst: 21.09.2008 15:32
von beastie
super, das hat geklappt!

DANKE!

woran lags?

(zufällig hab ich ein paar threads weiter unten auch noch ein problem geschildert) :D

Verfasst: 21.09.2008 15:34
von beastie
*arrgghh*

wenn ich eine antwort erstelle kommt das hier:
/**
* Topic and forum watching common code
*/
function watch_topic_forum($mode, &$s_watching, &$s_watching_img, $user_id, $forum_id, $topic_id, $notify_status = 'unset', $start = 0)
{
global $template, $db, $user, $phpEx, $start, $phpbb_root_path;

$table_sql = ($mode == 'forum') ? FORUMS_WATCH_TABLE : TOPICS_WATCH_TABLE;
$where_sql = ($mode == 'forum') ? 'forum_id' : 'topic_id';
$match_id = ($mode == 'forum') ? $forum_id : $topic_id;

$u_url = ($mode == 'forum') ? 'f' : 'f=' . $forum_id . '&t';
ich werd verrückt.

soll ich jetzt die posting.php tauschen?

Verfasst: 21.09.2008 15:42
von Miriam
Da ist was mit Deinem Update schief gegangen..... Sichere Deine Board-Dateien und -DB und schiebe alle Dateien des Updates nochmal hoch.

Verfasst: 21.09.2008 15:45
von beastie
meinst du jetzt die aus dem update oder die von vorm update?

Verfasst: 21.09.2008 15:46
von Miriam
Die Update Dateien .. also die neuen sollen nochmal hochgeladen werden... Sicherung nicht vergessen!

Verfasst: 21.09.2008 15:48
von beastie
okay, ich mach das update also quasi noch mal, richtig?