coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: richards on September 17, 2004, 10:07:38 AM

Title: databse error with phpbb2 bridging
Post by: richards on September 17, 2004, 10:07:38 AM
I did do a search and came up with resualts simualr to mine but didnt get an answer that sixed my problem so here i go.

Fatal error

While executing query "SELECT user_id, username as user_name, user_level FROM `phpBB`.phpbb_sessions INNER JOIN `phpBB`.phpbb_users ON session_user_id = user_id WHERE session_id='12cd24101ee07bbb4eccd318338aaa43' AND session_user_id ='2' AND user_active='1'" on 0

mySQL error: Table 'phpBB.phpbb_sessions' doesn't exist


I followed the instructions pretty good i think. I installed on the same DB as the phpBB.

php.inc.php

// database configuration
define('PHPBB_DB_NAME', 'phpBB'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'richard'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', '******'); // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/forum/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table

cpg_redir.php

<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>

Title: Re: databse error with phpbb2 bridging
Post by: richards on September 23, 2004, 03:12:20 AM
pleaaaseee anyone?
Title: Re: databse error with phpbb2 bridging
Post by: Nibbler on September 23, 2004, 03:18:29 AM
mySQL error: Table 'phpBB.phpbb_sessions' doesn't exist

so, is your databsae called phpBB - with that capitalisation?
and is there a table there named phpbb_sessions ?
Title: Re: databse error with phpbb2 bridging
Post by: richards on September 24, 2004, 08:48:01 AM
wow i cant belive i missed on the capps. ok now there is a new problem. When i click login it goes to my phpbb board. Im already logged in...... so therw fore  im not loggin in the gallery. The debug thing says

USER:
------------------
Array
(
    [ID] => 1df550899c31121e40677cb3ec56ac68
    [am] => 1
    [liv] => Array
        (
           
Title: Re: databse error with phpbb2 bridging
Post by: Joachim Müller on September 24, 2004, 09:02:33 AM
check your cookie paths. Probably the phpbb cookie isn't readible for coppermine. Post a link and test user account (non-admin) for details.

Joachim
Title: Re: databse error with phpbb2 bridging
Post by: richards on September 24, 2004, 10:56:04 AM
http://www.shadedart.net/gallery/index.php

User name:

Test

password:

Test
Title: Re: databse error with phpbb2 bridging
Post by: Nibbler on September 24, 2004, 12:00:48 PM
You havent set your cookie prefix properly, it looks like it should be set to 'shad_phpbb'.
Title: Re: databse error with phpbb2 bridging
Post by: richards on September 24, 2004, 08:42:30 PM
it is set to that on my board, do i set it to the same for the gallery?
Title: Re: databse error with phpbb2 bridging
Post by: richards on September 24, 2004, 09:00:30 PM
I think i figured it out. Thank you. The support here is past my expectations.