Seite 1 von 1
error nach installation von intro-und-portal-mod
Verfasst: 04.04.2003 17:02
von incoming
hallo zusammen,
phpbb unter linux (database-typ: postgres) installiert, funzt soweit auch...
nach der installation des mods kann ich aber nicht auf das portal zugreifen (intro funktioniert), folgende fehlermeldung:
Could not obtain topic information
DEBUG MODE
SQL Error : -1 ERROR: Relation "t" does not exist
SELECT u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time FROM board_topics t, board_users u, board_posts p, board_posts p2, board_users u2 LEFT JOIN board_forums f ON t.forum_id=f.forum_id WHERE t.topic_poster = u.user_id AND p.post_id = t.topic_first_post_id AND p2.post_id = t.topic_last_post_id AND u2.user_id = p2.poster_id AND f.auth_view < 2 ORDER BY t.topic_last_post_id DESC LIMIT 15
Line : 266
File : /var/www/html/phpBB/portal.php
was muß ich anders konfigurieren?
besten dank
greetz
Verfasst: 06.04.2003 11:11
von saerdnaer
sieht so aus wal wäre der mod für mysql geschrieben... aber du könntest mal die zeilen 260 - 266 deiner portal.php zeigen... vieleicht können wir ihn dann an postgres sql anpassen...
ah
Verfasst: 06.04.2003 19:32
von incoming
hier der ausschnitt aus der portal.php, beginnend bei zeile 253:
$sql = SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time FROM board_topics t, board_users u, board_posts p, board_posts p2, board_users u2 LEFT JOIN board_forums f ON t.forum_id=f.forum_id WHERE t.topic_poster = u.user_id AND p.post_id = t.topic_first_post_id AND p2.post_id = t.topic_last_post_id AND u2.user_id = p2.poster_id AND f.auth_view < 2 ORDER BY t.topic_last_post_id DESC LIMIT 15
if ( ! ($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql));
}
total topics = 0;
Verfasst: 07.04.2003 21:48
von saerdnaer
bist du sicher ? lade mal die ganze datei hoch und poste den link zu ihr... achja als .txt hochladen!
ah
Verfasst: 07.04.2003 22:22
von Gast
oh, tschuldige, is zeile 253 im seitenquelltext...
die txt-datei findest du hier:
http://www.2ac.de/portal.txt
many thx
Verfasst: 09.04.2003 18:28
von saerdnaer
ersetz mal
Code: Alles auswählen
$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time
FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u2
LEFT JOIN " . FORUMS_TABLE . " f
ON t.forum_id=f.forum_id
WHERE t.topic_poster = u.user_id
AND p.post_id = t.topic_first_post_id
AND p2.post_id = t.topic_last_post_id
AND u2.user_id = p2.poster_id
AND f.auth_view < 2
ORDER BY t.topic_last_post_id DESC
LIMIT 15";
durch
Code: Alles auswählen
$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time
FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u2, " . FORUMS_TABLE . " f
WHERE t.topic_poster = u.user_id
AND p.post_id = t.topic_first_post_id
AND p2.post_id = t.topic_last_post_id
AND u2.user_id = p2.poster_id
AND t.forum_id = f.forum_id
AND f.auth_view < 2
ORDER BY t.topic_last_post_id DESC
LIMIT 15";
ah
Verfasst: 09.04.2003 20:36
von incoming
erstmal besten dank, würd sonst wohl nie voran kommen...
habe alles wie oben beschrieben geändert, allerdings taucht jetzt folgender fehler auf:
Could not query categories list
DEBUG MODE
SQL Error : -1 ERROR: parser: parse error at or near "cat_id" at character 11
SELECT c.*cat_id, c.cat_title, c.cat_order FROM phpbb_categories c WHERE c.cat_title<>"global_announcement" ORDER BY c.cat_order
Line : 534
File : /var/www/html/phpBB/portal.php
hoffe dein wissen ist noch nicht erschöpft

Verfasst: 13.04.2003 16:18
von saerdnaer
suche
$sql = "SELECT c.*cat_id, c.cat_title, c.cat_order
und das rote
* löschen..
Verfasst: 14.04.2003 13:20
von incoming
herrje, und schon wieder ein fehler, vielleicht sollte ich für das board auf mysql umstellen...
so siehts jetzt aus:
Could not query categories list
DEBUG MODE
SQL Error : -1 ERROR: Attribut »global_announcement« nicht gefunden
SELECT c.cat_id, c.cat_title, c.cat_order FROM phpbb_categories c WHERE c.cat_title<>"global_announcement" ORDER BY c.cat_order
Line : 534
File : /var/www/html/phpBB/portal.php
und hier der teil aus der portal.php:
$sql = "SELECT c.cat_id, c.cat_title, c.cat_order
FROM " . CATEGORIES_TABLE . " c
".(($userdata['user_level']!=ADMIN)? "WHERE c.cat_title<>\"global_announcement\"" :"" )."
ORDER BY c.cat_order";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql);
}
merci
Verfasst: 20.04.2003 15:43
von saerdnaer
hast du den hack für globale ankünigungen installiert? wenn nein kannst du den blauen teil löschen...
ah