coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: stu_m on October 03, 2008, 09:57:35 PM

Title: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on October 03, 2008, 09:57:35 PM
i have the latest version of coppermine bridged with phpBB2 and im just about to upgrade to phpBB3

if i un bridge the gallery will i lose all my members list out of gallery or will they still stay

and how do i go about bridging to phpBB3 without loosing syc with who posted what pics etc etc

any advice welcome

thanks stu
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: Nibbler on October 03, 2008, 11:14:17 PM
Unbridge your gallery then update phpbb then bridge to the updated phpbb. You need to grab the phpbb3 bridge file from the mods section.
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on October 04, 2008, 12:17:38 AM
easy as that  :o  ;D ;D

thanks for the reply will go get the bridge file now

Stu
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on October 08, 2008, 12:03:10 PM
just had a thought

if im bridging with phpBB3 dont both the gallery and phpBB3 have to be in the same database ?  ???
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: Nibbler on October 08, 2008, 01:09:42 PM
No. It's designed to work just as well when in different databases.
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on October 08, 2008, 02:35:13 PM
ah ok then  :)

Cheers Stu
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 06, 2008, 09:26:37 PM
im having a few issues with this  :'(

when i enable the bridge then go to the gallery logged in as admin i dont have any admin rights  ???

anyone shed any light on this  ???

Stu
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: Joachim Müller on November 07, 2008, 08:39:12 AM
Sticky thread "When requesting bridge support - mandatory! (http://forum.coppermine-gallery.net/index.php/topic,24032.0.html)"
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 07, 2008, 11:38:12 AM
ooops!!

I have the following issue when trying to bridge coppermine and phpBB 3.0.2

when i bridge coppermine with phpBB all seems to go well but when i try to access the gallery i dont have admin rights and when a user tries to access the just get redirected to the forum even though they are logged in

Coppermine install: http://www.themotorbikeforum.co.uk/gallery
Forum install: http://www.themotorbikeforum.co.uk/
Coppermine version: cpg1.4.19
Forum version: phpBB 3.0.2
Test user account: user test password 19811981

BridgeManager settings:
Forum URL:  http://www.themotorbikeforum.co.uk
Relative path to your BBS's config file:  ../ 
Use post-based groups?:  tried yes and no for this
Cookie name/preifx (if applicable): phpbb3_6bk2l for forum gallery_6bk2l for gallery tried both the same aswell but no difference


hope this helps  ;D

Stu

Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 07, 2008, 11:40:09 AM
also must add i have tried clearing cookies and used IE7 and firefox still the same

Stu
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 07, 2008, 12:11:22 PM
for some reason now all i get is redirected back to the forum  ??? i am logged in too  ???
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 07, 2008, 12:18:19 PM
also this is an update from phpBB2 and the new phpBB3 in in a separate database

Stu
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: Joachim Müller on November 07, 2008, 02:50:48 PM
Unbridge, then use the bridge that has been supplied for phpBB3 (http://forum.coppermine-gallery.net/index.php/topic,53678.0.html), then re-bridge.
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 07, 2008, 02:59:01 PM
thats the bridge i am using  ???
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: Joachim Müller on November 07, 2008, 03:03:14 PM
The test user account you specified isn't working - I get the error message
QuoteYou have specified an incorrect username. Please check your username and try again. If you continue to have problems please contact the Board Administrator.
when I try to log in with the test user account you provided above. Fix that for a start - not related to coppermine, but entirely to your board.
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 07, 2008, 03:22:32 PM
user test account works fine as someone off here has logged in already today

Test account "user test"
Password "19811981"

Stu
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 08, 2008, 02:13:19 AM
anyone ?  ???
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: Joachim Müller on November 08, 2008, 01:39:13 PM
Quote from: stu_m on November 07, 2008, 11:38:12 AM
Coppermine version: cpg1.4.19
That's not true - you're running cpg1.4.18, so you should upgrade!

Quote from: stu_m on November 07, 2008, 03:22:32 PM
user test account works fine as someone off here has logged in already today
Confirmed. Loging in with "user test" works as expected. From your previous posting I thought that the test user account's logon name was "test", not "user test". Sorry for that.

As suggested, logging in works as expected. However, the link in your phpBB navigation that is suppossed to point to coppermine is wrong: it doesn't point to http://www.themotorbikeforum.co.uk/gallery/, but to http://www.themotorbikeforum.co.uk/, so it won't do anything particular helpfull. That's not the core of your problem though. Coppermine doesn't recognize you as being logged in (probably caused by cookie issues - more on that later in my posting). So the first thing you should do is unbridge, then log in with your coppermine standalone admin account, go to coppermine's config and temporarily turn "Allow unlogged users (guest or anonymous) access" to "yes" to make sure you're not being caught in an endless loop.

Quote from: stu_m on November 07, 2008, 11:38:12 AM
Cookie name/preifx (if applicable): phpbb3_6bk2l for forum gallery_6bk2l for gallery tried both the same aswell but no difference
That's of course nonsense and probably the reason why you're having issues: I'm not 100% sure, as I haven't been using phpBB for ages, but afaik the cookie prefix for your BBS appears to be phpbb3_6bk2l_ (note the traling underscore!). This is something you need to figure out in your phpBB setup: there is a config option there where you specify the cookie prefix. Look that up in your phpBB setup, then specify the exact data within the bridge manager. As much as coppermine is concerned, you shouldn't fiddle with the cookie name at all. While being loggegd in into coppermine in standalone mode, set the cookie name for coppermine back to the default "cpg14x" and never touch that option again! There is only one reason why both coppermine as well as phpBB allow end users to specify cookie names: if you're running several forums or several galleries on one domain, you need to make up your mind on renaming the cookie to make sure they don't interfere. However (as in your case), 99% of all users only run one BBS and one gallery on their webserver, so you should never have touched to cookie names/prefixes manually - this only leads to complicated setups and the issues you're just experiencing. Most login issues are being caused by newbies who fiddle with cookies although they don't have the slightest idea how cookies work. To make a long story short: end users (the visitors of your page) don't care about cookie names, so you shouldn't either.
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 08, 2008, 01:53:24 PM
i inserted the new code in to cpg1.4.18, so affectivley its the same code i did try with fresh files but no joy either

yes i know about the link to gallery this is to stop people clicking on it and going to the gallery while im working on it

Allow unlogged users (guest or anonymous) access" ---- i have tried that and its still the same but i will go do it again to make sure

i will try your suggetions and post back
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: Joachim Müller on November 08, 2008, 01:57:45 PM
Quote from: stu_m on November 08, 2008, 01:53:24 PM
i inserted the new code in to cpg1.4.18, so affectivley its the same code
You applied all fixes that went into cpg1.4.19 manually? You must be a genius... ::)
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 08, 2008, 02:04:00 PM
i might be getting mixed up but i thought you supplied the code in the announcement about the update  ??? it might be another version where it was only a few fixes  ???


i can now access the gallery instead of getting redirected back to my forum

but as you pointed out its not showing as been logged in  ???
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 08, 2008, 02:10:46 PM
ah ha

i have changed the cookies to match the one in the BBS as you said and im now showed as logged in

im just not admin now  ???
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 08, 2008, 02:15:19 PM
got it

changed this in the bridge file to match my admin group

      // Group ids
      $this->admingroups = array(2096);
      $this->guestgroup = 1;

user test account works fine aswell

Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: Joachim Müller on November 08, 2008, 02:43:45 PM
Issue solved then?
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 08, 2008, 02:48:49 PM
yup  :)

thanks for the help

a few stupid mistakes can cause huge headaches  ???
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: Joachim Müller on November 08, 2008, 02:54:16 PM
Quote from: stu_m on November 08, 2008, 02:04:00 PM
i might be getting mixed up but i thought you supplied the code in the announcement about the update
From the announcement thread (http://forum.coppermine-gallery.net/index.php/topic,54235.0.html):
Quote from: Joachim Müller on August 03, 2008, 12:33:25 PM
Manually fixing the weakness will of course only address the vulnerability, but will not fix the non-security-critical issues that have been taken care of in cpg1.4.19
If you need details, start a new thread on this, but it should be pretty obvious: the manual fix described in the announcement thread will only fix the security flaw, but it will not cure the other non-critical bugs that have been fixed with the release of cpg1.4.19. This being said: perform a real, genuine update as suggested in the docs instead of just fixing the vulnerability. Upgrading coppermine is a breeze, so there's no reason to be alarmed or afraid from performing the update.
Title: Re: upgrading from phpBB2 - phpBB3 want some advice
Post by: stu_m on November 09, 2008, 02:46:57 AM
no worries on updating i have done it a few times

i have the new files so will just update it  :)