coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: sydneymazdaclub on September 08, 2004, 01:01:44 PM

Title: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: sydneymazdaclub on September 08, 2004, 01:01:44 PM
Hi,

Installed a fresh copy of coppermine into the following location: www.sydneymazdaclub.com/forums/photogallery
When trying to intergrate this with VB3.0.3 i get stuck in a login loop. ie click on login in the gallery and get redirected to the forums login. Log in and then back to gallery and im still not logged in. Click it again and go back to forums login.

Cookie is set to sydneymazdaclub.com in the vbulletin options

Test username: Boardtester
password: boardtester

however if i comment out the intergration with the board i can login withoout a problem. Please help!
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: enduser on September 18, 2004, 02:41:47 PM
i have the same problem, i'm testing it out with vb3 3.0.3 and have tried CPG 1.2 and 1.3 but both drop me into a login-loop  ??? ??? ???
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: junior on September 18, 2004, 06:17:56 PM
I've had Coopermine running with VB3 RC4 for a while and I just upgraded to VB3.0.3 and I've now I'm now logged out the whole time and the login button keeps redirecting me back to the forum, where I am logged in.
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: enduser on September 20, 2004, 11:16:39 AM
has anyone resolved this problem?  i've gone through several different forums and see this problem everywhere but no one seems to know how to fix it.  there's been suggestions about the license # being case sensative (Which I've tried) the ./ paths, etc, but nothing's fixing it.  No cookie change, no directory switch, nada.

i'm just about almost gotten fed up with this, how have other people gotten it to work?
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: DoctorWho on September 21, 2004, 04:26:06 AM
I had the same problem and found an answer over at vBulletin.org that seems to work with a few exceptions;


Open your config.php in your includes folder of vBulletin and look for this:

PHP Code:
Quote
     // Prefix that all vBulletin cookies will have
    // For example
       $cookieprefix = '/';

You're looking to see what the Cookieprefix is set to, mine was set to 'bb', but that's what I chose when I installed vBulletin.



Change your cookie prefix in coppermine to what you have your vb cookie prefix set to. That should do the trick.

If you don't have your cookie prefix set in your config.php then set it to whatever you have set in your vbulletin options and make sure that coppermine's cookie prefix matches in the vBulletin30.inc.php file.

The problem I ran into is when in Coppermine, if you click on memberlist, it takes you to the vBulletin AdminCP login page and if you click on 'logout' while in Coppermine, it takes you back to vBulletin, but you get the "An error occurred while attempting to log you out." error.  Hopefully someone can come up with a solution for these problems..


Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: billspaintball on September 21, 2004, 08:14:30 AM
Im in the same boat :(

Ive tried every suggestion I have been able to find and nothing has worked.
I just refuses to log me in :(
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: m0nty on September 22, 2004, 07:15:47 PM
read my last post in this thread.. http://forum.coppermine-gallery.net/index.php?topic=9204.0

hopefully that should solve your problem.. :) it worked in my case anyway..
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: achtungbaby on September 26, 2004, 12:59:41 AM
Any suggestions for how this could work with subdomains?
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: Darkwind on January 01, 2005, 11:05:45 PM
Quote from: DoctorWho on September 21, 2004, 04:26:06 AM
I had the same problem and found an answer over at vBulletin.org that seems to work with a few exceptions;


Open your config.php in your includes folder of vBulletin and look for this:

PHP Code:
Quote
      // Prefix that all vBulletin cookies will have
     // For example
        $cookieprefix = '/';

You're looking to see what the Cookieprefix is set to, mine was set to 'bb', but that's what I chose when I installed vBulletin.



Change your cookie prefix in coppermine to what you have your vb cookie prefix set to. That should do the trick.

If you don't have your cookie prefix set in your config.php then set it to whatever you have set in your vbulletin options and make sure that coppermine's cookie prefix matches in the vBulletin30.inc.php file.

The problem I ran into is when in Coppermine, if you click on memberlist, it takes you to the vBulletin AdminCP login page and if you click on 'logout' while in Coppermine, it takes you back to vBulletin, but you get the "An error occurred while attempting to log you out." error.  Hopefully someone can come up with a solution for these problems..




I have the same problem.  I switched to the vbulletin30.inc.php file for the bridge and entered the 'bb' as the cookie prefix.

However, I still have the same problem.  In the define statement for My vbulletin directory, I placed a '/' .

It just loops Me to the main page of the forum

When I change the define statement from '/' to '/gallery/' where I keep My gallery, I get a redirect timeout when I try to log in.

In all cases, the gallyer will not recognize any of My registered usernames as legitmate users and I can't even get back into the admin panel.  I'm going to delete the entire coppermine tables in the database and work on a clean install once more.

Obviously, the bridge was not well thought out as too many people are not having good experiences.

The question that needs to be asked its this:

Before intergration, does the coppermine gallery need to be set up precisely to the vbulleting in terms of usergroups, users and permissions BEFORE intergration?

Any help would be greatly appreciated.
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: Nibbler on January 01, 2005, 11:29:19 PM
The bridge is not pefect due the nature of vbulletin - it is not open source and no dev is going to pay just to get the bridge working. It depends on the contributions of vb users. That being said, if you or anyone else running vb are happy to pm me ftp + phpmyadmin login details to your site I'm sure I can get it working, and have it working for the next version of coppermine too.
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: DefenceTalk.com on January 05, 2005, 01:56:37 AM
If I change the settings around, I can login as admin but not as user...  :\'( Does the CPG database have to be in same database as vb?
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: Joachim Müller on January 05, 2005, 01:57:28 AM
yes
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: Nibbler on January 05, 2005, 02:07:31 AM
DefenceTalk, you can checkout the current dev version and help test the new vb3 bridge, it works with any database arrangement.
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: DefenceTalk.com on January 05, 2005, 02:42:32 AM
sure! But first of all, how do i get cpg in same database as vb?

Save CPG sql dump, and then run a query into the vb database making sure both have different prefixes?
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: Tranz on January 05, 2005, 03:04:24 AM
yup. But make sure to back up both dbs before doing so. Doesn't the cpg db already have cpg-specific prefixes? If yes, then they should already be different from the vb tables.
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: DefenceTalk.com on January 05, 2005, 04:29:49 AM
Another thing, I am running vb3.04 not 3.03, is that okay? :-\\
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: Nibbler on January 05, 2005, 02:24:25 PM
You tell me.
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: Joachim Müller on January 05, 2005, 04:25:32 PM
live dangerous, become a beta-tester (or a guinea-pig :-X) ;D

;) GauGau
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: DefenceTalk.com on January 05, 2005, 07:04:03 PM
Well, bring it on i guess?  :P

Now, some users can login while others are in the loop.... i think most probably cookie issue but that can't be happening if user switches PCs multiple times.

About beta testing, is it possible I can see a demo running the beta version?

And can I install dev board for vb 3.04 and demo for cpg 1.4 and pick few users from the regular forums to do some beta testing on the dev gallery / forum? If okay then I no problem.

thanks
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: Joachim Müller on January 07, 2005, 11:42:56 AM
you're welcome to check out cpg1.4.x (the devel branch of the cvs) and use it wherever you want, just remember that there is no support for it. There's no official demo available, you might spot some installs if you browse the cpg1.4 testing/bugs board. Please stop discussion on the devel version here on this thread to avoid thread drift.

Joachim
Title: Re: VB3.0.3 Coppermine 1.3.2 Login Loop
Post by: DefenceTalk.com on January 14, 2005, 05:59:12 AM
Okay, this issue is somewhat solved.

I did some troubleshooting with some user accounts (both test and live members) and I was able to get things going for them.

One issue is with the usergroups.... for some reason users with in multiple groups were not able to login. The one that i tested with was in multiple groups. Members and Senior Members. I took him off all groups and gave him membership to group on top of Senior Members and it worked. Then, I signed out. Logged back in and it worked again. Then signed out and logged back in but this time i did not check "REMEMBER ME" option, gallery was not able to log in me this time with this user's account.

On the other hand, if user is already in one group or that above members or senior members, he was able to login only when REMEMBER ME option is clicked.

I don't know *beep* is wrong here but now some that couldn't login are able to login. I guess thats all until some perm solution is found for this issue?

enjoy!