PhPBB 2.0.8 and Coppermine Login Problem PhPBB 2.0.8 and Coppermine Login Problem
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

PhPBB 2.0.8 and Coppermine Login Problem

Started by Ravie13, May 14, 2005, 09:57:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ravie13

Hi there!  I've just updated the files per the integration directions on the Coppermine manual.  I'm not getting any horrible error messages or anything so I think I did things sorta right.

However - when I pull up my Coppermine Gallery and click "Login" it takes me to my phpbb board login page (which I guess is normal) - however once I am logged in on the board and navigate back to the Gallery - I am not logged in there.  (Which means I can't login as admin or anything in the Gallery.)

I've created a test user (using the PhPBB admin panel):

User: Test
Pass: Test

Board is located at:  http://fgobsession.ravenwolfprods.com/board
Gallery is located at:  http://fgobsession.ravenwolfprods.com/Gallery

Bridge file code looks like:

// database configuration
define('PHPBB_DB_NAME', 'ravie13_phpbb1'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'ravie13'); // 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', '/board/');
// 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);


Init file looks like:

define('COPPERMINE_VERSION', '1.3.2');
// User database integration
// Uncomment the applicable line if you want to use it
define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin23');
// define('UDB_INTEGRATION', 'vbulletin30');
// define('UDB_INTEGRATION', 'yabbse');
// define('UDB_INTEGRATION', 'smf');
// define('UDB_INTEGRATION', 'woltlab21');
// define('UDB_INTEGRATION', 'punbb');
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
// Start output buffering
ob_start();
// Report all errors except E_NOTICE
// This is the default value set in php.ini
// error_reporting (E_ALL ^ E_NOTICE);
error_reporting(E_ALL);


cpg file looks like:

<?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;
?>



Any hints/ideas/advice?

Tranz

First, you really need to upgrade your phpbb 2.0.15 to fix several security issues since 2.0.8.

Nibbler

Are phpbb and coppermine in the same database ?

Ravie13

I've just upgraded the PhPBB to 2.0.13 (which is the highest the Fantastico at my host was offering).

I'm not really sure what you mean by are the Coppermine and Phpbb in the same database.  How do I check?

Joachim Müller

you shouldn't use fantastico builds, but the actual packages (the original phpBB software that is available on the phpBB site). The admin panel of phpBB should tell you on which database it is installed. Check your_coppermine_dir/include/config.inc.php to find out on what database coppermine is installed.
IMO auto-installers like fantastico suck for this very reason: users are lured into not understanding the software good enough to be able to fully control and maintain it. Ask your webhost if you can't figure out on which databases your apps are.

pyimaung

I'm having the exact same problem! Does anyone have a solution to this?? Thank you!

Nibbler

Put them in the same database or wait for CPG 1.4