VB3.0.3 Coppermine 1.3.2 Login Loop VB3.0.3 Coppermine 1.3.2 Login Loop
 

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]

Main Menu

VB3.0.3 Coppermine 1.3.2 Login Loop

Started by sydneymazdaclub, September 08, 2004, 01:01:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sydneymazdaclub

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!

enduser

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  ??? ??? ???

junior

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.

enduser

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?

DoctorWho

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..



billspaintball

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

m0nty

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..

achtungbaby

Any suggestions for how this could work with subdomains?

Darkwind

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.

Nibbler

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.

DefenceTalk.com

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?
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Joachim Müller


Nibbler

DefenceTalk, you can checkout the current dev version and help test the new vb3 bridge, it works with any database arrangement.

DefenceTalk.com

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?
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Tranz

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.

DefenceTalk.com

Another thing, I am running vb3.04 not 3.03, is that okay? :-\\
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)


Joachim Müller

live dangerous, become a beta-tester (or a guinea-pig :-X) ;D

;) GauGau

DefenceTalk.com

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
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Joachim Müller

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