I'm trying to add the phpBB integration to my chat. My forums are in /forums, my chat in /forums/chat
Without the integration, the chatroom runs fine. When I try to add the integration, I *do* get a check against login and redirect if not, but come to load the actual chat and I get this:
[phpBB Debug] PHP Warning: in file [ROOT]/chat/src/pfcuserconfig.class.php on line 24: session_start(): open(/var/php_sessions/sess_457b2823d70917c9dcb5d58fbc7b3a2f, O_RDWR) failed: No such file or directory (2)
[phpBB Debug] PHP Warning: in file [ROOT]/chat/src/pfcuserconfig.class.php on line 24: session_start(): Cannot send session cache limiter - headers already sent (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file Unknown on line 0: Unknown: open(/var/php_sessions/sess_457b2823d70917c9dcb5d58fbc7b3a2f, O_RDWR) failed: No such file or directory (2)
[phpBB Debug] PHP Warning: in file Unknown on line 0: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions)
My code's basically copy-pasted out of the FAQ's; I've done some php but I'm too rusty to trust myself with this.
- Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
require($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
if ($user->data['user_id'] == ANONYMOUS)
{
login_box('', $user->lang['LOGIN']);
}
?>
<?php
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Quick chat";
$params["nick"] = $user->data['username_clean'];
$params['firstisadmin'] = true;
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$chat = new phpFreeChat( $params );
?>
So what the heck just happened?