Problem with integrating CPG and PunBB Problem with integrating CPG and PunBB
 

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

Problem with integrating CPG and PunBB

Started by Bulgaricus, September 12, 2004, 12:36:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bulgaricus

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?

Nibbler

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

Bulgaricus


Joachim Müller

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

Bulgaricus


Bulgaricus

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.

Nibbler

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

Bulgaricus

I entered the gallery:

QuoteBridge 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:

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


Nibbler


Bulgaricus


Nibbler

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

Bulgaricus


Nibbler

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.

Bulgaricus

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?

Nibbler

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

Bulgaricus