
Mein Portal funktioniert auf einmal nicht mehr. Gemeldet wird mir folgendes:
Could not query announcements information
DEBUG MODE
SQL Error : 1064 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 t.topic_time <= 1141215334 AND t.topic_poster
SELECT t.topic_id, t.topic_time, t.topic_title, pt.post_text, u.username, u.user_id, t.topic_replies, pt.bbcode_uid, t.forum_id, t.topic_poster, t.topic_first_post_id, t.topic_status, pt.post_id, p.post_id, p.enable_smilies FROM phpbb_topics AS t, phpbb_users AS u, phpbb_posts_text AS pt, phpbb_posts AS p WHERE t.forum_id IN () AND t.topic_time <= 1141215334 AND t.topic_poster = u.user_id AND t.topic_first_post_id = pt.post_id AND t.topic_first_post_id = p.post_id AND t.topic_status <> 2 ORDER BY t.topic_time DESC
Line : 86
File : portal_poll.php
In der entsprechenden Datei steht rund um Zeile 86 das hier:
Code: Alles auswählen
//
// query the database
//
if(!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not query announcements information', '', __LINE__, __FILE__, $sql);
}
//
// fetch all postings
//
(Zeile 86 ist die ...message_die... usw.)
Geändert habe ich an dieser Datei nichts. Alles, was ich gemacht habe, war, den simply cms MOD einzubauen.
Da werden aber nur die Dateien lang_main.php und common.php geändert.
Ich vermute, es liegt an der letzten?
Da habe ich folgendes geändert:
Laut Anleitung sollte ich das so machen -
##-----[ FIND ]------------------------------------------------------
##
error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
##
##-----[ ADD BEFORE ]------------------------------------------------
##
// Begin simply CMS Mod
// Type in all the cats-ids you want to display in the simply CMS.
// Separate the cat_ids in $cont_cat with an ',' (comma)
// e.g. $cont_cat = "(1, 2, 5, 7)";
$cont_cat = "(1)";
//
// End simply CMS Mod
//
Aussehen tut es jetzt so:
Code: Alles auswählen
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
//
// Begin simply CMS Mod
// Type in all the cats-ids you want to display in the simply CMS.
// Separate the cat_ids in $cont_cat with an ',' (comma)
// e.g. $cont_cat = "(1, 2, 5, 7)";
$cont_cat = "(1, 2, 3, 4, 5, 6, 7)";
//
// End simply CMS Mod
//
error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
// The following code (unsetting globals)
// Thanks to Matt Kavanagh and Stefan Esser for providing feedback as well as patch files
HILFE - Wo stimmt´s nicht???
Danke für Tips -
Bey