Advanced search  

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

Pages: [1]   Go Down

Author Topic: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21  (Read 8475 times)

0 Members and 1 Guest are viewing this topic.

felguard

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
  • www.deimonhigh.com
    • DeimonHigh.com - Your Very Own Eyeshield21 Fansite
Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« on: July 31, 2006, 02:36:05 am »

I have the following issue when trying to bridge coppermine and phpBB: When I click on register, the page cannot be found. But the register.php file exists in the directory, it's strange that it cannot be found. I even tried replacing the register.php file with a new one. Also when I click on login, it redirects to the forums login page (http://www.deimonhigh.com/forums/login.php?redirect=../gallery/).

I replaced my phpbb.inc.php with the file found here: http://forum.coppermine-gallery.net/index.php?topic=23281.0

Then with the downloaded file, I change the following to this:

Code: [Select]
// ------------------------------------------------------------------------- //
// phpBB2 2.0.18 Integration for Coppermine                                         //
// ------------------------------------------------------------------------- //
// Modify the values below according to your Board installation              //
// ------------------------------------------------------------------------- //

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

Coppermine install: http://www.deimonhigh.com/gallery/
Forum install: http://www.deimonhigh.com/forums/
Coppermine version: cpg 1.4.2
Forum version: phpBB 2.0.21
Test user account: N/A due to register.php saying it cannot be found when it exists in the directory

BridgeManager settings:
Forum URL:  http://deimonhigh.com/forums/
Relative path to your BBS's config file:  ../forums/ 
Use post-based groups?:  0 
Cookie prefix: phpBB2
« Last Edit: August 02, 2006, 03:31:43 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #1 on: July 31, 2006, 02:46:55 am »

1) You can't use the bridge file from 1.3 on a 1.4 gallery. The code is completely different.
2) Update your gallery
3) Test accounts need to be made via the forum, that is the point of bridging - coppermine works with the users from the forum.
4) The error message means that the page register.php is redirecting you to does not exist, not register.php itself.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #2 on: July 31, 2006, 07:23:38 am »

Read up bridging in the docs. In cpg1.3.x, you had to edit the bridge file. In cpg1.4.x, this has changed: you don't edit a file, but run the bridge manager. The settings are being stored in the database instead of a file.
Logged

felguard

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
  • www.deimonhigh.com
    • DeimonHigh.com - Your Very Own Eyeshield21 Fansite
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #3 on: July 31, 2006, 07:31:11 am »

1) Okay since I've upgraded to 1.4.8 now, the bridge file was replaced.
2) Updated.
3) Login Details:
Username: copper
Password: copper
4) The gallery register page now redirects to the forums register page.

To GauGau, yeah I first ran the bridge manager thing, but afterwards I edited the bridge file because I thought it would help. But it didn't so I replaced the edited bridge file with the original.

Nibbler

  • Guest
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #4 on: July 31, 2006, 08:33:59 am »

Now you need to correct your cookie path and cookie prefix.
Logged

felguard

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
  • www.deimonhigh.com
    • DeimonHigh.com - Your Very Own Eyeshield21 Fansite
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #5 on: July 31, 2006, 09:15:45 am »

Don't mean to be an idiot here, but how may I do this? I can't access the bridge manager becase I can't log in, when I do, the gallery page is just as if I didn't log in, but the forums says I am. Also, do you know how I can find my cookie path and prefix? Thanks.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #6 on: July 31, 2006, 09:25:59 am »

You need to edit those two settings in your forum app, not in coppermine. The whole point of bridging is that Coppermine drops it's own user authentification and reads the authentification of your BBS instead. To be capable to do so, Coppermine needs to be able to read the cookies your BBS sets. You have deliberately configured your BBS in a manner that disallows Coppermine to read those cookies, so there's nothing you could do from within Coppermine. You have to review your BBS's config section. Reading up cookie technology is recommended.
Logged

felguard

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
  • www.deimonhigh.com
    • DeimonHigh.com - Your Very Own Eyeshield21 Fansite
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #7 on: July 31, 2006, 10:23:25 am »

Oh I see, that makes sense.

Right now my cookie prefix is: /forums
I tried changing it to just: /
But then I couldn't log in, so I changed it back.

Here's my current cookie settings for phpBB:
Cookie domain: www.deimonhigh.com
Cookie name: phpBB2_forum
Cookie path: /forums

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #8 on: July 31, 2006, 10:25:32 am »

Cookie path needs to be /. Clear your local cookies and cache in your browser after changing the BBS settings. Do as suggested and read up cookie technology.
Logged

felguard

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
  • www.deimonhigh.com
    • DeimonHigh.com - Your Very Own Eyeshield21 Fansite
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #9 on: July 31, 2006, 10:38:53 am »

My mistake, when I said this:
Quote
Right now my cookie prefix is: /forums
I tried changing it to just: /
But then I couldn't log in, so I changed it back.
I mean my cookie path, not prefix. But yeah, same problem. I even cleared my cookies, I can login to the gallery nor forums afterwards.

Here is my current info:
Forum Details:
cookie_name: phpBB2_forum
cookie_path: /
cookie_domain: www.deimonhigh.com
Gallery Details:
cookie_name: cpg140
cookie_path: /

Where may I read up on cookie technology? Do you mean like on google?
« Last Edit: July 31, 2006, 11:49:34 am by felguard »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #10 on: July 31, 2006, 08:17:50 pm »

cookie_domain: www.deimonhigh.com
change it to
Quote
.deimonhigh.com
(mind the leading dot!).

Where may I read up on cookie technology? Do you mean like on google?
Yes, exactly. Good place to start as well is Wikipedia, i.e. http://en.wikipedia.org/wiki/HTTP_cookie
Logged

felguard

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
  • www.deimonhigh.com
    • DeimonHigh.com - Your Very Own Eyeshield21 Fansite
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #11 on: August 01, 2006, 04:16:41 am »

Changed the cookie_domain, but still no luck. The forum I get logged in, but not the gallery.

So a cookie is like an ID that lets you browse through without having to login every single time..

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #12 on: August 01, 2006, 07:08:28 am »

When changing cookie settings, you have to clear your local cookies.
Logged

felguard

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
  • www.deimonhigh.com
    • DeimonHigh.com - Your Very Own Eyeshield21 Fansite
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #13 on: August 01, 2006, 07:48:25 am »

Deleting local cookies as in Tools > Internet Options > Delete Cookies/Files right? If so, I can't seem to get it to work.

If it's not too much trouble, may you please try using the copper/copper account and see if it works for you. Thank you.

Nibbler

  • Guest
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #14 on: August 01, 2006, 12:10:43 pm »

Make sure the cookie name in the bridge manager is correct, phpBB2_forum
Logged

felguard

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
  • www.deimonhigh.com
    • DeimonHigh.com - Your Very Own Eyeshield21 Fansite
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #15 on: August 02, 2006, 03:06:46 am »

Did you mean the cookie_prefix? Because in phpmyadmin, when I check out the cpg_bridge table, I can't find a cookie_name.

Or did you mean the cookie_name in the cpg_config table?

Nibbler

  • Guest
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #16 on: August 02, 2006, 10:20:05 am »

Cookie prefix.
Logged

felguard

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
  • www.deimonhigh.com
    • DeimonHigh.com - Your Very Own Eyeshield21 Fansite
Re: Problems with Bridging of cpg 1.4.2 and phpBB 2.0.21
« Reply #17 on: August 02, 2006, 11:09:53 am »

Did I ever tell you both how much I loved you?

Blah, sorry about that. It's just that after so much time spent on fixing this problem and finally getting it to work just gives me so much joy. Thank you both very much, the best support out there.

Regards,
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.