Seite 2 von 3

Verfasst: 03.03.2006 18:49
von Beychaliban
Problem durchschaut? Ich nicht. Steh vor ner Wand. hab doch da gar nix dran geändert. *kopfschüttel*


Ist die portal.php die richtige? -also, der Fehler tritt auf, wenn ich das Portal aufrufen will.

Büdde:

portal.txt

Verfasst: 04.03.2006 12:10
von Beychaliban
Habe jetzt sämtliche Änderungen rückgängig gemacht und alte Dateien rauf... geht imme rnoch nicht.

Ist das evtl. ein fehler in der Datenbank? Kann doch eigentlich nicht sein, oder? Außer den simply CMS Mod habe ich absolut nichts geändert....


Bey

Verfasst: 05.03.2006 11:27
von S2B
Teste mal das:
In portal.php finden:

Code: Alles auswählen

// FETCH POLL START
if( $introportalmod_config['pollbox_active'] == "1" )
{
$CFG['poll_forum'] =  $introportalmod_config['pollbox_forums'];
Ersetzen mit:

Code: Alles auswählen

// FETCH POLL START
$CFG['poll_forum'] =  $introportalmod_config['pollbox_forums'];
if( $introportalmod_config['pollbox_active'] == "1" && $CFG['poll_forum'] != '' )
{

Verfasst: 05.03.2006 11:50
von Beychaliban
Nein, es geht imme rnoch nicht.

Nach wie vor bekomme ich diese Fehlermeldung, wenn ich das Portal aufrufen will:

Allgemeiner Fehler

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 <= 1141555862 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 <= 1141555862 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

Verfasst: 05.03.2006 12:27
von S2B
Hmm, mach das alte nochmal rückgängig und versuch das:
Finden:

Code: Alles auswählen

$CFG['news_forum'] = $introportalmod_config['fpost_forums'];
Danach einfügen:

Code: Alles auswählen

if ($CFG['news_forum'] != '')
{
Finden:

Code: Alles auswählen

// FETCH POSTS END
Davor einfügen: Finden:

Code: Alles auswählen

if( $introportalmod_config['pollbox_active'] == "1" )
{
$CFG['poll_forum'] =  $introportalmod_config['pollbox_forums'];
Ersetzen mit:

Code: Alles auswählen

$CFG['poll_forum'] =  $introportalmod_config['pollbox_forums'];
if ($CFG['poll_forum'] != '')
{
if( $introportalmod_config['pollbox_active'] == "1" )
{
Finden:

Code: Alles auswählen

// FETCH POLL END
Davor einfügen:

Verfasst: 05.03.2006 12:37
von Beychaliban
So, der Fehler wird schon mal nicht mehr angezeigt, das Portal lässt sich wieder aufrufen. Allerdings werden keine Inhalte mehr angezeigt, sondern nur noch das "Grundgerüst".


Huh. aber schon mal nen Schritt weiter :)

Verfasst: 05.03.2006 13:06
von S2B
Meiner Meinung nach sollte dieser Code zu diesem MOD gehören...

Das Problem liegt jetzt entweder in falsch gesetzten ACP-Eigenschaften oder beim Auslesen der Konfiguration. :wink:

Verfasst: 05.03.2006 13:08
von Beychaliban
Hm. Verstehe ich jetzt nicht ganz.

Das portal habe ich vor einigen Wochen installiert, und bis vor ein paar Tagen hat es auch funktioniert. Ich hatte auch nichts mehr weiter dran geändert, außer eben Den simply cms Mod einzubauen.
Auch dann hatte es noch eine Weile funktioniert, bis ich dann auf einmal die Fehlermeldung bekam.

Was kann ich denn jetzt tun? Irgendwie muss das doch hinzubekommen sein?

Verfasst: 05.03.2006 14:20
von S2B
Ähm, moment, kleiner Test:
Finden:

Code: Alles auswählen

// MAIN PART AND FOOTER START
Davor einfügen:

Code: Alles auswählen

echo '<pre>' . print_r($introportalmod_config, true) . '</pre>';
Sag mir mal, was da ausgegeben wird (du kannst den Code gleich wieder löschen, wenn du das Ergebnis hast). :wink:

Verfasst: 05.03.2006 14:28
von Beychaliban
Öhm, wenn ich mich jetzt nicht ganz doof angestellt habe, passiert da gar nix.

Sollte denn?

Zumindest für mich ersichtlich hat sich gar nichts geändert....