phpBB 2.0.11/ cp 1.3.2 login issues phpBB 2.0.11/ cp 1.3.2 login issues
 

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.11/ cp 1.3.2 login issues

Started by g4scott, February 05, 2005, 09:02:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

g4scott

I'm having some weird login issues with Coppermine, but they're not the normal issues I've been reading about.

If I try to login from the gallery page, only my main administrator account for the gallery is allowed to login (the same admin for my bb.)  No other users I've tried can login like that, whether it's a user with admin status, or a test user.

I am, however, able to login to the gallery if I go to the bb, and login there, and then go to the gallery directory.  This works with any user. 

I don't know if this an issue with the cookies, or if it's some bug or what.  Any help is greatly appreciated.  Thanks.

bb:
http://www.texastrumpets.com/phpbb/
gallery:
http://www.texastrumpets.com/photos/

Test user
login:  test
pwd:  test

cpg_redir.php

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



phpbb.inc.php

// database configuration

define('PHPBB_DB_NAME', 'texastr_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', 'texastr_phpbb2'); // 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', '/phpbb/');

// 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


init.inc.php

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');

kegobeer

Coppermine also uses the texastr_phpbb1 database?
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

g4scott


kegobeer

It works fine for me.  Try deleting your cookies.

When you log in at phpbb, the url goes from http://www.texastrumpets.com/phpbb to http://texastrumpets.com/phpbb, which can cause problems since a cookie may be written as www.texastrumpets.com originally, then you log in and the cookie is suddenly texastrumpets.com.

You should look at your phpbb configuration and see if you have the www in front of your domain.
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

g4scott

Seems to be working now...  I deleted the texastrumpets.com cookies before, but I didn't check for any www.texastrumpets.com cookies.  I also changed the address in my phpbb config.  It didn't have the www on it before, but now with it on, all seems to work well.  Thanks.