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: Problem with integrating CPG and PunBB  (Read 6575 times)

0 Members and 1 Guest are viewing this topic.

Bulgaricus

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Problem with integrating CPG and PunBB
« on: September 12, 2004, 12:36:32 am »

I tried to integrate the Gallery with my PunBB Forum and it did not worked. I think I did everything according to the instruction but when I tried to log in the Gallery after the Integration I got a blank screen with a bit of my header. The browser pointed at http://bulgaricus.com/galeria/login.php?referer=%2Fgaleria%2F so I added www. to the adres and then an error message appeared that I am already logged.

I entered groups which was supposed to synchronize the users from my forum, but nothing changed in the database.

May be this problem is connected with my customization troubles: http://forum.coppermine-gallery.net/index.php?topic=9863.0?
« Last Edit: September 12, 2004, 04:13:21 pm by GauGau »
Logged

Nibbler

  • Guest
Re: Problem with integrating CPG and PunBB
« Reply #1 on: September 12, 2004, 12:39:16 am »

It is looking for www.bulgaricus.com.com so you must have typed your url in wrongly somewhere.
Logged

Bulgaricus

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Problem with integrating CPG and PunBB
« Reply #2 on: September 12, 2004, 02:08:47 pm »

Do you have any idea where?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problem with integrating CPG and PunBB
« Reply #3 on: September 12, 2004, 02:16:39 pm »

use your operating system's built-in search to find out (e.g. Windows Explorer): browse to the local copy of your coppermine folder, expand the search tab, search for files *.*, containing the string "com.com"

Joachim
Logged

Bulgaricus

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Problem with integrating CPG and PunBB
« Reply #4 on: September 12, 2004, 04:03:08 pm »

Thanks, the mistake was in punbb.inc.php :)
Logged

Bulgaricus

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Problem with integrating CPG and PunBB
« Reply #5 on: September 12, 2004, 05:25:20 pm »

I tried to log myself in the gallery. It redirected nicely me to the forum where I filled my login and password. Then it redirected me back to the gallery, but I was not logged there :( I suppose I have done again sth wrong but I don't have idea what :(

I tried to clear the cookies files but it didn't help.
Logged

Nibbler

  • Guest
Re: Problem with integrating CPG and PunBB
« Reply #6 on: September 12, 2004, 05:31:36 pm »

Use the debug bridge file attached to this post and see what it says.
Logged

Bulgaricus

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Problem with integrating CPG and PunBB
« Reply #7 on: September 12, 2004, 06:01:10 pm »

I entered the gallery:

Quote
Bridge file has been loaded
loaded punbb config file
Authenticate called
Cookie 'punbb_cookie' was NOT found
You are recognised as Guest

Clicked "Log in" and was redirected to login page at punbb. I logged in and was redirected to the gallery and the same text appeared:

Quote
Bridge file has been loaded
loaded punbb config file
Authenticate called
Cookie 'punbb_cookie' was NOT found
You are recognised as Guest

Logged

Nibbler

  • Guest
Re: Problem with integrating CPG and PunBB
« Reply #8 on: September 12, 2004, 06:16:52 pm »

Please post a test login to your forum.
Logged

Bulgaricus

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Problem with integrating CPG and PunBB
« Reply #9 on: September 12, 2004, 06:48:07 pm »

Login: Test1
Password: pass
Logged

Nibbler

  • Guest
Re: Problem with integrating CPG and PunBB
« Reply #10 on: September 12, 2004, 06:53:58 pm »

You need to change the punbb cookie domain to be bulgaricus.com without the www
Logged

Bulgaricus

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Problem with integrating CPG and PunBB
« Reply #11 on: September 12, 2004, 08:03:41 pm »

Do you know, how can I do this?
Logged

Nibbler

  • Guest
Re: Problem with integrating CPG and PunBB
« Reply #12 on: September 12, 2004, 08:53:43 pm »

I think you can modify punbb's config file. If you can't do that you will have to use the gallery with the www as http://www.bulgaricus.com/galeria but you seem to have a redirect on that.
Logged

Bulgaricus

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Problem with integrating CPG and PunBB
« Reply #13 on: September 12, 2004, 09:08:16 pm »

The PunBB config.php looks like that:

Quote
<?php

// This is just an example config. The install script will generate a correct
// version of this file when you install PunBB. This file is here merely as a
// backup if the working version is somehow lost or corrupted.

$db_type = 'mysql';
$db_host = 'sql.xxxxx';
$db_name = 'xxxxxx';
$db_username = 'xxxxx';
$db_password = 'xxxxx';
$db_prefix = 'xxxx';
$p_connect = true;

$cookie_name = 'punbb_cookie';
$cookie_domain = '';
$cookie_path = '/';
$cookie_secure = 0;

$language = 'pl';

define('PUN', 1);

?>

I do not know how to configure the upper file to have www in the cookies :(

Do you have any idea why when I enter http://www.bulgaricus.com/galeria it changes to http:/bulgaricus.com/galeria?
Logged

Nibbler

  • Guest
Re: Problem with integrating CPG and PunBB
« Reply #14 on: September 12, 2004, 09:17:11 pm »

The server sends a '301 Moved permanently' response when I access http://www.bulgaricus.com/galeria so I suspect you have a redirection setup in your .htaccess file.

You could try changing $cookie_domain ''; to $cookie_domain 'bulgaricus.com';
Logged

Bulgaricus

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Problem with integrating CPG and PunBB
« Reply #15 on: September 12, 2004, 09:23:43 pm »

Thanks, now it works! :)
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.