Seite 1 von 1

SQL Error : 1054 Unknown column 'p.topic_id' in 'on clause'

Verfasst: 16.02.2006 00:17
von Heuni
Could not obtain topic information

DEBUG MODE

SQL Error : 1054 Unknown column 'p.topic_id' in 'where clause'

SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments, COUNT(p2.post_id) AS prev_posts FROM forum_topics t, forum_forums f, forum_posts p, forum_posts p2 WHERE p.post_id = 592925 AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= 592925 AND f.forum_id = t.forum_id GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments ORDER BY p.post_id ASC

Line : 156
File : viewtopic.php
Synchronisiere Beitrags-Daten

Sperre das Board

Das Board war bereits gesperrt

Synchronisiere Themen

Fehler: Couldn't get topic and post data!

SQL Error : 1054 Unknown column 'p.topic_id' in 'on clause'

SELECT t.topic_id, t.topic_title, t.topic_replies, t.topic_first_post_id, t.topic_last_post_id, Count(p.post_id) - 1 AS new_replies, Min(p.post_id) AS new_first_post_id, Max(p.post_id) AS new_last_post_id FROM forum_topics t INNER JOIN forum_posts p ON t.topic_id = p.topic_id GROUP BY t.topic_id, t.topic_title, t.topic_replies, t.topic_first_post_id, t.topic_last_post_id HAVING new_replies <> t.topic_replies OR new_first_post_id <> t.topic_first_post_id OR new_last_post_id <> t.topic_last_post_id

Line : 3380
File : /is/htdocs/wp1008049_X1MVX505Q8/forum/admin/admin_db_maintenance.php
das erste bekomme ich, wenn ich auf einen beitrag klicke. beiträge schreiben funktioniert.
das zweite kommt dann, wenn ich versuche, den fehler mit db_maint. zu reparieren.
ich habe keine ahnung. kan mir jemand helfen?

Verfasst: 16.02.2006 00:26
von cYbercOsmOnauT
Das sieht nach einem bösen Fehler Deiner DB aus. Hast Du mal per phpMyAdmin geprüft, ob im forum_posts die Zelle topic_id überhaupt noch existiert? Wenn nein, halleluja.

Grüße,
Tekin

Verfasst: 16.02.2006 00:28
von rabbit
seit wann tritt das problem auf? hast du irgendwelche änderungen am code vorgenommen in letzter zeit?

Verfasst: 16.02.2006 13:53
von Heuni
keine äönderungen am code, ausser einen link in die overall_header eingefügt

Verfasst: 16.02.2006 13:57
von Heuni
edit: ja diezeile existriert noch

Verfasst: 17.02.2006 15:04
von Heuni
*schieb*

Verfasst: 10.04.2006 14:18
von Heuni
*push*