Advanced search  

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]

Pages: [1]   Go Down

Author Topic: integration between my bb and my gallery has not gone as planned  (Read 5481 times)

0 Members and 1 Guest are viewing this topic.

zebraplayer

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44

What else is new, you ask. I know. I have read through as many posts with this issue as I could find. I have made changes based on them and most of them have made matters worse. My problem is simple and common. When I click the Log In button on my gallery, it takes me to the log in for my bb. When I put in my username and password, it logs me in the bb but not the gallery.

I have read enough of these posts to know that it is some sort of cookie issue. What that issues is, I need someone out there to help me figure out.

Please go to http://group101clt.netfirms.com/Group101Actors/nfpicturepro and tell me what you figure out
user: test
password: test

Here's the code from my cpg_redir.php file

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

Here's the code for my phpbb.inc.php file:

Quote
define('PHPBB_DB_NAME', 'mydb'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'MYSQLHOST'); // The name of the database server
define('PHPBB_DB_USERNAME', 'myusername'); // 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', '/msgboard/nfphpbb/');


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

Here is my bb's cookies settings:

Cookie domain             .group101clt.com
Cookie name                group101cookie
Cookie path                      /
Cookie secure               Disabled
Session length              3600

Here is my gallery's cookies settings: This I got from the gallery's db, since I cannot log in to it and go to its administration panel.

Cookie name                cpg11d
Cookie path                      /
« Last Edit: October 15, 2004, 10:00:42 pm by GauGau »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: integration between my bb and my gallery has not gone as planned
« Reply #1 on: October 09, 2004, 03:51:07 am »

According to your gallery, you're running Netfirms Picture Pro Photo Gallery 1.2.1.  Sounds like you're trying to use bridge files from the 1.3.2 package available from this site with a modified older version of Coppermine.

Is this correct?
Logged
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

zebraplayer

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: integration between my bb and my gallery has not gone as planned
« Reply #2 on: October 09, 2004, 04:57:22 am »

Ahh! I guess that is correct. Is there a fix for that?

Thanks!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: integration between my bb and my gallery has not gone as planned
« Reply #3 on: October 09, 2004, 05:48:17 am »

yes: remove the netfirms stuff (wannabe-hack) and upload an original cpg1.3.2 coppermine package. Backup everything first, in case anything goes wrong.

Joachim
Logged

zebraplayer

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: integration between my bb and my gallery has not gone as planned
« Reply #4 on: October 09, 2004, 02:36:22 pm »

Wouldn't I need acess to the server side for that?

Perhaps I should have mentioned earlier that I'm a newbie, at best.

Isn't there some other way to just bridge correctly the older version of coppermine and the board without complete overhaul? Anyone?

Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: integration between my bb and my gallery has not gone as planned
« Reply #5 on: October 09, 2004, 02:52:54 pm »

No.  The bridge files are deisgned to be used with 1.3.2.

If you have webspace, you have access to your files, and we have to assume you have at least some knowledge of how your webserver works (FTP, control panel, MySQL, etc).  This isn't the best place to learn how to run your site - your host should have some sort of documentation on how your site works.  We just don't have the time to teach people how to administer their sites, sorry.
Logged
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

zebraplayer

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: integration between my bb and my gallery has not gone as planned
« Reply #6 on: October 09, 2004, 09:03:16 pm »

Okay. So I have upgraded to v1.3.

I have also gone back and followed all the steps in the bridging section of the manual. The new info is all the same as my first post above. However, I am still having the same problem. What am I doing wrong here, for crying out loud?

Can someone please log in to my site using u: test p:test and give me a hand? I am going nuts here.

Thanks!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: integration between my bb and my gallery has not gone as planned
« Reply #7 on: October 10, 2004, 11:40:21 am »

the bbs cookie is not readible by coppermine, make sure you have specified a cookie path within your bbs settings that allows coppermine to read it. Similar thing with cookie domain, if applicable.

Joachim
Logged

zebraplayer

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: integration between my bb and my gallery has not gone as planned
« Reply #8 on: October 10, 2004, 03:29:17 pm »

Hey GauGau,

First off, thanks for your continued support and replies. Like I said earlier, I have open these files, read, and re-read them so many times that I am about to start pulling off my hair.

Anyhow, I have changed the cookie name to: phpbb2mysql

The cookie domain I have had as everything under the sun I could think off. I have also had it blank. Considering that my domain is http://www.group101clt.com, what should my cookie domain name be?

I'm sorry for the dumb question, but I have just seen posts where people call it all kind of different things.

Thanks again.

-zp
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: integration between my bb and my gallery has not gone as planned
« Reply #9 on: October 11, 2004, 06:01:51 am »

  • cookie name doesn't matter as long as they differ for coppermine and bbs cookie
  • cookie domain should be ".group101clt.com" (without the quotes, mind the dot at the beginning!) or blank
  • cookie path should be "/" (without the quotes) for both apps
Joachim
Logged

zebraplayer

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: integration between my bb and my gallery has not gone as planned
« Reply #10 on: October 14, 2004, 06:13:43 am »

Yeah, if you look at my first post, that's what I got. I wonder if the fact that they are in sub folders would cause it not to work?

On all the examples I have seen on this site, people have www.theirsitename.com/coppermine then www.theirsitename.com/phpbb

I have www.group101clt.com/group101Actors/nfpicturepro then www.group101clt.com/msgboard/nfphpbb.

Could this additional folder on both sides be part of the problem?

Do I need to bring things back to the root somewhere with a "../" thingy?

Thanks for your time. I had given up getting a response on this topic.
Logged

zebraplayer

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: integration between my bb and my gallery has not gone as planned
« Reply #11 on: October 15, 2004, 05:59:11 pm »

Issue solved it. I never checked if other users, aside from my Admin self, were able to log in; which they could.

It turned out to be an issue of conflict caused by my User ID being set to 0 in the phpbb db. Changed to 1 and now everything works.

Thanks to those that replied and took the time to help.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.