Seite 1 von 1

Log Actions MOD 1.1.6 - Probleme bei Installation

Verfasst: 29.07.2008 06:43
von lirumlarum
Ich habe den Log Actions MOD installiert. Dabei sind einige Fehler aufgetreten:

1. Vor Mod-Einbau habe ich die log_actions_db_update.php aufgerufen und eine Fehlermeldung a la:

Code: Alles auswählen

phpBB : Kritischer Fehler Could not connect to the database
bekommen. Das Problem konnte ich mit einer Codeveränderung aus folgendem Thread beheben.

2. Nachdem sich die log_actions_db_update.php aufrufen ließ gab es erneut einen Fehler:

Code: Alles auswählen

Running query :: CREATE TABLE LOGS_TABLE ( id_log MEDIUMINT(10) NOT NULL DEFAULT '0' AUTO_INCREMENT, mode VARCHAR(50) NULL DEFAULT '', topic_id MEDIUMINT(10) NULL DEFAULT '0', user_id MEDIUMINT(8) NULL DEFAULT '0', username VARCHAR(255) NULL DEFAULT '', user_ip CHAR(8) DEFAULT '0' NOT NULL, time INT(11) NULL DEFAULT '0', PRIMARY KEY (id_log)) -> ERROR - QUERY FAILED ----> Invalid default value for 'id_log'
[ externes Bild ]

Darauf hin bin ich in phpmyadmin rein und habe foldendes ausgeführt:

Code: Alles auswählen

CREATE TABLE LOGS_TABLE(
id_log MEDIUMINT( 10 ) NOT NULL AUTO_INCREMENT ,
MODE VARCHAR( 50 ) NULL DEFAULT '',
topic_id MEDIUMINT( 10 ) NULL DEFAULT '0',
user_id MEDIUMINT( 8 ) NULL DEFAULT '0',
username VARCHAR( 255 ) NULL DEFAULT '',
user_ip CHAR( 8 ) DEFAULT '0' NOT NULL ,
time INT( 11 ) NULL DEFAULT '0',
PRIMARY KEY ( id_log )
);
Als ich mich dann anschließend im ACP eingeloggt habe stand unter Logs > Logs Actions folgede Fehlermeldung:

Code: Alles auswählen

phpBB : Kritischer Fehler 

Could not query log config informations

DEBUG MODE

SQL Error : 1146 Table 'usr_web138_1.phpbb_logs_config' doesn't exist

SELECT config_value AS all_admin FROM phpbb_logs_config WHERE config_name = 'all_admin' 

Line : 69
File : admin_logs.php 
Dieser Mod hat mich bis hier hin schon ziehmlich viel Nerven gekostet. Ich habe überhaupt keine Ahnung wie es weitergehen könnte.

Über Eure Hilfe würde ich mich sehr freuen.

Re: Log Actions MOD 1.1.6 - Probleme bei Installation

Verfasst: 29.07.2008 13:05
von S2B
lirumlarum hat geschrieben:Darauf hin bin ich in phpmyadmin rein und habe foldendes ausgeführt:
So einfach kannst du es dir nicht machen. Erstens erfordert der MOD ja nicht nur die eine Datenbank-Änderung und zweitens hast du die Konstante als Tabellenname verwendet und nicht den wirklichen Tabellennamen.

Also:
  1. Die eingefügte Tabelle wieder löschen
  2. Das Installations-Script reparieren; Teste mal das:
    Finde:

    Code: Alles auswählen

    include($phpbb_root_path . 'config.'.$phpEx);
    include($phpbb_root_path . 'includes/constants.'.$phpEx);
    include($phpbb_root_path.'common.'.$phpEx);	
    include($phpbb_root_path . 'includes/db.'.$phpEx);
    Ersetze durch:

    Code: Alles auswählen

    include($phpbb_root_path.'common.'.$phpEx);
    Übrigens darfst du die Datei erst _nach_ dem Einbau aufrufen, da erst dann die Tabellenkonstanten vorhanden sind. Genau so steht es übrigens auch in der Installationsanleitung. :wink:

Re: Log Actions MOD 1.1.6 - Probleme bei Installation

Verfasst: 29.07.2008 18:02
von lirumlarum
S2B hat geschrieben:
  1. Die eingefügte Tabelle wieder löschen
Ich habe DROP TABLE `LOGS_TABLE` ausgeführt.
S2B hat geschrieben: [*]Das Installations-Script reparieren; Teste mal das:
Finde:

Code: Alles auswählen

include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path.'common.'.$phpEx);	
include($phpbb_root_path . 'includes/db.'.$phpEx);
Ersetze durch:

Code: Alles auswählen

include($phpbb_root_path.'common.'.$phpEx);
[/list]
Ich habe in log_actions_db_update.php den oberen Part erstetzt so dass nur noch folgender Code in der Datei oben steht:

Code: Alles auswählen

define('IN_PHPBB', 1);
$phpbb_root_path = './';
include_once($phpbb_root_path . 'extension.inc'); 
include($phpbb_root_path.'common.'.$phpEx);
...
...
...
Beim Ausführen der Datei log_actions_db_update.php kam folgendes bei raus:

[ externes Bild ]

Im ACP funktioniert jetzt "Logs Config".
Logs Actions jedoch sieht so aus:

Code: Alles auswählen

phpBB : Kritischer Fehler 

Could not query log informations

DEBUG MODE

SQL Error : 1146 Table 'usr_web138_1.phpbb_logs' doesn't exist

SELECT * FROM phpbb_logs ORDER BY time DESC LIMIT 0, 50 

Line : 164
File : admin_logs.php 

Verfasst: 29.07.2008 19:18
von S2B
Führ mal das in phpMyAdmin aus:

Code: Alles auswählen

CREATE TABLE phpbb_logs (
	id_log MEDIUMINT(10) NOT NULL AUTO_INCREMENT,
	mode VARCHAR(50) NULL DEFAULT '', 
	topic_id MEDIUMINT(10) NULL DEFAULT '0',
	user_id MEDIUMINT(8) NULL DEFAULT '0',
	username VARCHAR(255) NULL DEFAULT '',
	user_ip CHAR(8) DEFAULT '0' NOT NULL,
	time INT(11) NULL DEFAULT '0',
	PRIMARY KEY (id_log)
)

Verfasst: 30.07.2008 11:01
von lirumlarum
Es gibt jetzt aktuell keine Fehlermeldungen mehr. Ich gehe mal davon aus, dass es jetzt korrekt läuft.

Vielen Dank für deine Hilfe :grin: