[solved] phpbb Bridge Issue [solved] phpbb Bridge Issue
 

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

[solved] phpbb Bridge Issue

Started by DaMysterious, December 03, 2004, 11:57:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DaMysterious

I installed v1.4a yesterday and I'm very impressed.

As you know I use the phpbb-bridge for years now, but right now I stuck with the Bridge Wizard as he tels me


Coppermine can't read a cookie named "phpbb2mysql*". Correct the value you entered for Cookie prefix, or go to your BBS administration panel and make sure that the cookie path is readible for coppermine.


I checked phpBB and leaves hide unused form fields (recommended) untuched. My phpBB resides in the root thus I entered a  / as relative path, phpbb2mysql as cookiename is the same as in my phpbb config.

What can be wrong?
DaMysterious.

Joachim Müller

I'm not sure what's wrong. Could you post the url of your cpg1.4 test install, so I can take a look, maybe together with a test user account?

Joachim

DaMysterious

#2
Quote from: GauGau on December 04, 2004, 02:58:03 PM
I'm not sure what's wrong. Could you post the url of your cpg1.4 test install, so I can take a look, maybe together with a test user account?

Joachim

Url = http://damysterious.xs4all.nl/gallery/index.php - ***/**** <- this is a adminaccount.

[edit GauGau]
removed admin account data
[/edit]
DaMysterious.

Joachim Müller

edit bridgemanager.php, find
Quote$default_bridge_data['phpbb'] = array(
  'full_name' => 'phpBB',
  'short_name' => 'phpbb',
  'support_url' => 'http://www.phpbb.com/',
  'db_database_name_default' => 'phpBB',
  'db_database_name_used' => 'mandatory,not_empty',
  'db_hostname_default' => 'localhost',
  'db_hostname_used' => 'mandatory,not_empty',
  'db_username_default' => '',
  'db_username_used' => 'mandatory,not_empty',
  'db_password_default' => '',
  'db_password_used' => 'password',
  'relative_path_of_forum_from_webroot_default' => '/phpBB2/',
  'relative_path_of_forum_from_webroot_used' => 'mandatory,not_empty,trailing_slash',
  'logout_flag_default' => '1',
  'logout_flag_used' => 'radio,1,0',
  'cookie_prefix_default' => 'phpbb2mysql',
  'cookie_prefix_used' => 'cookie,not_empty',
and replace with
Quote$default_bridge_data['phpbb'] = array(
  'full_name' => 'phpBB',
  'short_name' => 'phpbb',
  'support_url' => 'http://www.phpbb.com/',
  'db_database_name_default' => 'phpBB',
  'db_database_name_used' => 'mandatory,not_empty',
  'db_hostname_default' => 'localhost',
  'db_hostname_used' => 'mandatory,not_empty',
  'db_username_default' => '',
  'db_username_used' => 'mandatory,not_empty',
  'db_password_default' => '',
  'db_password_used' => 'password',
  'relative_path_of_forum_from_webroot_default' => '/phpBB2/',
  'relative_path_of_forum_from_webroot_used' => 'mandatory,not_empty,trailing_slash',
  'logout_flag_default' => '1',
  'logout_flag_used' => 'radio,1,0',
  'cookie_prefix_default' => 'phpbb2mysql',
  'cookie_prefix_used' => 'cookie',
.Please report if this fixes things for you.

Joachim

P.S. Removed your admin account details - you shouldn't post them, not even the ones of a test install, as it still could be abused to attack your server.

DaMysterious

Your solution worked perfectly in my environment. Thanks for your help.
DaMysterious.

Joachim Müller

committed change to devel branch.

Joachim

Casper

Unfortunately I have exactly this same problem on an install I'm doing, and the fix does not work for me.

http://www.photo-sense.co.uk/gallery1/index.php
the forum can be got at http://www.photo-sense.co.uk/board1/index.php or http://www.photo-sense.co.uk/gallery1/forum.html

cpgtest / cpgtester
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

Casper, please PM me the admin account data of above website.

Joachim

Casper

 :-[  wel lit was one of those days.

First, it seems I was trying to use the wrong bridge, the phpbb22.  My phpbb 2.0.11 wokrs with the phpbb1 bridge.

BUT, the logout link does not work.  Wherever within the gallery I try it, it thinks I am refering from the login page, and then tells me I'm already logged in, and always with this url result

Quote/login.php?redirect=cpg_redir.php&logout=true

And when I try and login from the gallery, I get this, as per the pic.
The urls are as above.  If you still want an admin account Joachim, let me know.

Note, if logged in from the board, all else works.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

Further testing has left me scratching my head, still unable to get this to work from the gallery.  I have tried everythiing I can think of to get this going.

I have also the following points to note, as an inexperienced user of the bridge manager, which may/will cause confusion and questions in the future.

1.  If using the bridge manager, it is not clear that you still need to do the redirect files when bridging with phpbb and Punbb.  These instructions seem to be in the 'if not using the bridge manager' section.

2.  When using the bridge file, to bridge with phpbb, and with the width settings at a lowish size, it is not clear which selection is which when setting your version, see screenshots. My settings are 650px, which I had to change to be sure what I was doing.
Could we put these on 2 seperate lines, to be clear.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

I can see the points you bring up, that's why I changed the phpbb22 settings the same way I did for the "regular" phpbb bridge: I changed the cookie check to be optional, you'll be able to continue the bridge manager wizard even if coppermine can't read the bbs cookie immediately. I added a <br /> as well between the radio buttons that allow specification of the phpbb version, so lower width settings won't make the line breaks result in strange display.
What remains to be done is the cpg_redir code to be created by the bridge manager - this is something I haven't come up with, but which is planned. The idea is to write the redirection file if it is writable for coppermine; if it isn't the code that should go into it should be displayed in a <textarea> field with instructions to copy'n paste it and where to save it (under which file name). I'm not sure I'll manage to finish this feature for the release, so currently we'll have to create a note in the bridge manager output that says "create your redirection file as suggested in the docs" with a link to the particular section in the docs.

Joachim