coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: ISBB on October 19, 2005, 02:12:25 AM

Title: Phpbb & CPG
Post by: ISBB on October 19, 2005, 02:12:25 AM
OK heres my problem...  Whever i uncheck undefine the init.inc.php in the includes dir i get Fatal error :
There was an error while processing a database query

my phpbb bridge file looks like:
// database configuration
define('PHPBB_DB_NAME', 'ddrcpg'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', '****'); // 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', '/');


Any Ideas... I have done this bridge numerous times and this is the first time i have ran into this problem.. and its a prettty darn fresh install of phpbb as well with a few mods nothing major though...

The install of coppermine went perfectly fine.. if i leave init.inc.php bb like normal with the // infront fo the proper line my gallery works fine but its not bridged obviously...
Title: Re: Phpbb & CPG
Post by: Nibbler on October 19, 2005, 02:13:18 AM
Enable debug mode and post the mysql error message you get when you enable the bridge.
Title: Re: Phpbb & CPG
Post by: ISBB on October 19, 2005, 02:15:42 AM
While executing query "SELECT user_id, username as user_name, user_level FROM `ddrcpg`.phpbb_sessions INNER JOIN `ddrcpg`.phpbb_users ON session_user_id = user_id WHERE session_id='687cf979a39b60075b9b4f5259486149' AND session_user_id ='2' AND user_active='1'" on 0

mySQL error: Table 'ddrcpg.phpbb_sessions' doesn't exist
Title: Re: Phpbb & CPG
Post by: Nibbler on October 19, 2005, 02:17:24 AM
Looks like you have the wrong db name or table prefix set in your bridge file.
Title: Re: Phpbb & CPG
Post by: ISBB on October 19, 2005, 02:18:28 AM
double checked everything... the database name is proper how else would cpg be able to install...  how do i check the table prefix?
Title: Re: Phpbb & CPG
Post by: ISBB on October 19, 2005, 02:21:44 AM
in phpmyadmin... under my db for phpbb... phpbb_sessions does exist
Title: Re: Phpbb & CPG
Post by: ISBB on October 19, 2005, 02:22:35 AM
sunnnuva b**** i just had a total brain fart... please excuse my ignorance
Title: Re: Phpbb & CPG
Post by: ISBB on October 19, 2005, 02:24:44 AM
i guess i should read a little closer...
define('PHPBB_DB_NAME', 'ddrcpg')   NOT the database used by CPG... DOH...

thx again for the help... i feel like a idiot...
Title: Re: Phpbb & CPG
Post by: Nibbler on October 19, 2005, 02:27:54 AM
:)