phpBB -> Coppermine log-in issues phpBB -> Coppermine log-in issues
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

phpBB -> Coppermine log-in issues

Started by supergper, October 02, 2005, 04:14:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

supergper

I'm sure this has been discussed, and I have searched for a couple days now but I keep coming up with no help so here goes...

Domain- Forum http://www.macjunk.org/phpBB2
            Gallery http://www.macjunk.org/gallery

User- test
password- test

Forum software V. 2.0.16
CPG V. 1.3.5

phpbb.inc.php
// database configuration
define('PHPBB_DB_NAME', 'forum'); // The name of the database used by the board
define('PHPBB_BD_HOST', '192.168.0.10'); // 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', '/phpBB2/');
// 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);



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



The problem I am having is I can't log-in from Coppermine.  When I click on login it takes me to the phpBB to login (thats good) I login and it redirects me back to Coppermine (thats good too) so it appears the bridging is working however when I am redirected back to coppermine I am no longer logged in.  It appears to be a cookie issue but I have checked and re-checked my cookie settings and they ARE different.  I have tried different browsers with no luck, any help or guidance is appreciated.

FWIW, I have the database IP set because its on another server on my network.  Its working and connected cause I can log in to phpmyadmin and I can login to the forum (the forum, pphpmyadmin, and coppermine are all on the same server).  I also had Coppermine working just fine before I tried to bridge them.

HELP :D

kegobeer

Your cookie names are the same - they must be different.  You've changed your phpBB cookie prefix from phpbb2mysql to macJunk, and your Coppermine cookie prefix from cpg135 to macjunk.  I don't know why you changed them, but you have to change one of them in order for bridging to work.

You didn't post the bridge code that defines the phpbb cookie prefix:

// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies


I'm assuming you also changed phpbb2mysql to macjunk.  Either change your phpbb cookie prefix back to phpbb2mysql and fix the bridge file, or change your gallery cookie prefix to something else.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

supergper

Quote from: kegobeer on October 02, 2005, 05:11:44 AM
Your cookie names are the same - they must be different.  You've changed your phpBB cookie prefix from phpbb2mysql to macJunk, and your Coppermine cookie prefix from cpg135 to macjunk.  I don't know why you changed them, but you have to change one of them in order for bridging to work.

You didn't post the bridge code that defines the phpbb cookie prefix:

// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies


I'm assuming you also changed phpbb2mysql to macjunk.  Either change your phpbb cookie prefix back to phpbb2mysql and fix the bridge file, or change your gallery cookie prefix to something else.

well, that suggestion made me check (yet again) my cookies and for whatever reason I had my cookie for the forum set to macJunk (with a capital 'J' ) and I was putting all lower case in the config file, changed that and all seems to work now.  Thanks

Solved!