alexanderzwei hat geschrieben:ScHrAnZ DiNgEnS hat geschrieben:Also der Chat lief super, bis ich das acp modul eingefügt habe.
Ich hab alle installationsschritte befolgt. Anschliessend das Modul im Acp aktiviert, aber leider bekomme ich es im ACP nicht angezeigt.
Wenn ich jetzt den chat besuche bekomme ich ausserdem noch folgende Fehler:
[phpBB Debug] PHP Notice: in file /chat/lib/class/AJAXChatDataBase.php on line 16: Undefined index: type
[phpBB Debug] PHP Notice: in file /chat/lib/class/AJAXChatMySQLDataBase.php on line 20: Undefined index: name
[phpBB Debug] PHP Notice: in file /chat/lib/class/AJAXChat.php on line 2474: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /chat/lib/class/AJAXChatHTTPHeader.php on line 36: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /chat/lib/class/AJAXChatHTTPHeader.php on line 37: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /chat/lib/class/AJAXChatHTTPHeader.php on line 41: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /chat/lib/class/AJAXChatHTTPHeader.php on line 45: Cannot modify header
information - headers already sent by (output started at /includes/functions.php:3184)
Phpbb 3.0.4
+potal 1.0.2
Edit: Wenn ich die module anders anordne wird der chat im ACP angezeigt
Läuft der Chat bei dir über eine andere Datenbank als das Forum? Da kommt eine Fehlermeldung mit der MySQL Datei, die eigentlich bei der phpBB Version des Chats unnötig ist..
Nein es ist die gleiche Datenbank, habe einfach folgendes in die datenbank hinzugefügt:
Code: Alles auswählen
CREATE TABLE IF NOT EXISTS `ajax_chat_config` (
`id` tinyint(2) NOT NULL auto_increment,
`value` varchar(255) binary NOT NULL,
`name` varchar(255) binary NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=31 ;
INSERT INTO `ajax_chat_config` (`id`, `value`, `name`) VALUES
(1, '0', 'chatClosed'),
(2, '0', 'allowGuestLogins'),
(3, '06', 'openingHour'),
(4, '02', 'closingHour'),
(5, 'Public', 'defaultChannelName'),
(6, '0', 'defaultChannelID'),
(7, '1', 'allowPrivateChannels'),
(8, '1', 'allowPrivateMessages'),
(9, '[', 'privateChannelPrefix'),
(10, ']', 'privateChannelSuffix'),
(11, '0', 'forceAutoLogin'),
(12, '1', 'showChannelMessages'),
(13, 'ajax_chat', 'sessionName'),
(14, 'ajaxChat', 'sessionKeyPrefix'),
(15, '365', 'sessionCookieLifeTime'),
(16, '/', 'sessionCookiePath'),
(17, '', 'sessionCookieDomain'),
(18, '', 'sessionCookieSecure'),
(19, '0,1,2,3,4,5,6', 'openingWeekDays'),
(24, '1', 'allowNickChange'),
(23, ')', 'guestUserSuffix'),
(22, '(', 'guestUserPrefix'),
(21, '0', 'allowGuestUserName'),
(20, '0', 'allowGuestWrite'),
(25, '(', 'changedNickPrefix'),
(26, ')', 'changedNickSuffix'),
(27, '0', 'allowUserMessageDelete'),
(28, 'ChatBot', 'chatBotName'),
(29, '05', 'inactiveTimeout'),
(30, '02', 'inactiveCheckInterval');
Natürlich in zwei Schritten, erst die Tabelle erstellt und anschliessend eingefügt.
Jedoch hat die Tabelle nicht den prefix des phpbb forums, welcher aber auch nicht benötigt sein sollte, denn
Code: Alles auswählen
Open: includes/constants.php
// Chat Config Table
define('AJAX_CHAT_CONFIG', 'ajax_chat_config');
dort wird ja nicht nach dem prefix gefragt.
Mir ist nur aufgefallen das ich noch weitere Tabellen durch die installation des chats habe.
ajax_chat_bans
ajax_chat_config
ajax_chat_invitations
ajax_chat_messages
ajax_chat_online
Diese sind aber normal und der chat läuft wunderbar nachdem ich das ACP Modul wieder deaktiviert habe und die original Config des chats benutze.
Edit:
In deinem Download enthaltenem paket steht in der /chat/lib/config.php folgende Zeile:
Das sah mir dann doch im vergleich zu der original config.php etwas zu wenig aus, deshalb habe ich folgende Zeilen hinzugefügt:
Code: Alles auswählen
// AJAX Chat config parameters:
$config = array();
// Database connection values:
$config['dbConnection'] = array();
// Database hostname:
$config['dbConnection']['host'] = null;
// Database username:
$config['dbConnection']['user'] = null;
// Database password:
$config['dbConnection']['pass'] = null;
// Database name:
$config['dbConnection']['name'] = null;
// Database type:
$config['dbConnection']['type'] = null;
// Database link:
$config['dbConnection']['link'] = null;
Siehe da, es geht. Ich weiss nicht wieso die Werte in der config.php deines Pakets fehlen, jedenfalls geht es bei mir wohl nicht ohne diese.
LG,
Matze