Seite 1 von 2
Eventslist - Datenbankfehler
Verfasst: 18.06.2006 22:04
von seilerddd
Hallo ich wollte soeben das Mod "Eventslist" installieren.
Habe zuerst die Daten wie beschrieben in die passenden Ordner kopiert und wollte dann die Datei db_update_eventslist.php starten.
Dabei erhalte ich allerdings folgende Meldung:
phpBB : Kritischer Fehler
Could not connect to the database
Was könnte da falsch sein? Was muss ich tun damit es klappt?
Verfasst: 18.06.2006 22:12
von Mahony
Hallo
Hier die Lösung.
Öffne die db_update_eventslist.php
Finde:
Code: Alles auswählen
<?php
define('IN_PHPBB', 1);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);
und Ersetze mit:
Code: Alles auswählen
<?php
define('IN_PHPBB', 1);
$phpbb_root_path = './';
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'config.'.$phpEx);
include_once($phpbb_root_path . 'common.'.$phpEx);
include_once($phpbb_root_path . 'includes/constants.'.$phpEx);
include_once($phpbb_root_path . 'includes/db.'.$phpEx);
Grüße: Mahony
Verfasst: 18.06.2006 22:38
von seilerddd
Danke, das hat jetzt geklappt, aber schon ist der nächste Fehler da.
Ich hab die Installation abgeschlossen und da erhalte ich im ACP folgende Fehlermeldung, wenn ich auf den Button "Eventliste" gehe:
Could not query acronyme table
DEBUG MODE
SQL Error : 1146 Table 'fjcforum.EVENTSLIST_TABLE' doesn't exist
SELECT * FROM EVENTSLIST_TABLE ORDER BY word ASC
Line : 231
File : admin_eventlist.php
Und wenn ich im Forum auf den Button "Eventliste" gehe, kommt folgender Fehler:
Could not query acronyme table
DEBUG MODE
SQL Error : 1146 Table 'fjcforum.EVENTSLIST_TABLE' doesn't exist
SELECT * FROM EVENTSLIST_TABLE ORDER BY word ASC
Line : 55
File : eventlist.php
Verfasst: 18.06.2006 22:46
von Mahony
Hallo
Dazu bitte das hier durchlesen
>>>1146 Table 'xxx' doesn't exist<<<
Grüße: Mahony
Verfasst: 18.06.2006 22:49
von seilerddd
Ok ich soll also eine Tabelle erstellen, richtig?
Wie mache ich das?
Kann mir da jemand sagen wie das geht?
Verfasst: 18.06.2006 22:55
von Mahony
Hallo
Hast du das hier gemacht?
Code: Alles auswählen
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
define('EVENTSLIST_TABLE', $table_prefix.'enventslist');
#
Kontrolliere mal deine
includes/constants.php
Grüße: Mahony
Verfasst: 18.06.2006 22:57
von seilerddd
Verfasst: 18.06.2006 23:00
von seilerddd
Super, es klappt.
Ich brauche einige der Felder in dem Mod nicht.
Kann ich die entfernen und wenn ja wie?
Verfasst: 18.06.2006 23:03
von Markus67
Hi ...
du kannst die Felder ja einfach aus den beiden tpl-Dateien rausnehmen
eventlist_body.tpl
admin_eventlist_edit_body.tpl
Markus
Verfasst: 18.06.2006 23:07
von seilerddd
Aha, ok.
Das schaue ich mir morgen frühestens mal an.
Jetzt geht es ins Bett.
Gute Nacht!