Cpg1.4.19 and SMF 1.1.7 bridge login problems Cpg1.4.19 and SMF 1.1.7 bridge login problems
 

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

Cpg1.4.19 and SMF 1.1.7 bridge login problems

Started by Sebastyne, December 21, 2008, 03:09:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sebastyne

Here's the basic info to start with.

Coppermine install: http://www.fieldspanielit.com/kuvia/
Forum install: http://www.fieldspanielit.com/keskustelu/
Coppermine version: cpg1.4.19
Forum version: SMF 1.1.7
Test user account: testuser / testuser

BridgeManager settings:
Forum URL:        http://fieldspanielit.com/keskustelu
Relative path to your BBS's config file:    ../keskustelu/
Use post-based groups?:  1


I am running into very similar problems as a lot of people here, but I can't seem to find the right answer for my problem. I've integrated the systems seemingly without problems, but then cannot login to the gallery but am redirected back to the board after logging in. I see the board as a guest user when viewing the gallery even though I am logged in on SMF.

I hope you can help.

Sebbie

ccraciun

I am not sure, but as sugested here you need to change a line in smf20.inc.php:
Find
                if (empty($user_settings['ID_MEMBER'])){
Replace it with
                if (empty($user_settings['id_member'])){
The information was related to SMF 2 beta 4, but i think it's the same issue with 1.1.7.

I was searching the forum for SMF - Coppermine bridge info and i found both topics; i hope it helps!

Sebastyne

Unfortunately that was a no go. :( The issue remains. But the table name in all caps in smf10.inc.php as well.

Joachim Müller

Enable cookie-driven authentification in your BBS. Coppermine can not work with session-driven authentification. You need to enable cookie-driven auth in SMF's config.

Sebastyne

Quote from: Joachim Müller on December 21, 2008, 01:45:18 PM
Enable cookie-driven authentification in your BBS. Coppermine can not work with session-driven authentification. You need to enable cookie-driven auth in SMF's config.

It is set to cookie-auth as far as I can see. In the forum Settings.php file there's a row:

$cookiename = 'fieldspanielit-palsta';      # Name of the cookie to set for authentication.

And in the control panel the option "use local cookies" is on.

Sebastyne

And that is to say that there is no difference whether they are on or not - I tried, even though they were on to start with.

Nibbler

You need to disable local cookies. Bridging cannot work with that enabled.

Sebastyne

Ok, I thought so, but then how do I know my forum is using cookies in the first place? I can't find another setting for it.

I've disabled local cookies and the result is still the same; no admin on gallery. :(

Nibbler

Did you make the code change mentioned above? If so put it back as it was originally.

Sebastyne

I did the change and have now changed it back. No result. :(


Jax2

I am facing the exact same issue he is, running newest copermine and SMF 1.1.7, can log into board but does not redirect me back to gallery, and when I manually go back to gallery, not logged in.

I have also tried all of the fixes mentioned above to no avail.

Enable local storage of cookie disabled.
Use subdomain independent cookies disabled (Though both coppermine and smf are in sub-domains)
Use database driven sessions disabled.

I am having no luck :/

Jax2

Quick Update:

I have SEMI-solved my own problem here. As coppermine and smf are both in different sub-domains, I tried enabling subdomain independent cookies and now the bridge sort of works.

I am now logged in to both the gallery and the forum as I should be, however, it still doesn't redirect me back to the gallery when I try logging in from there. It just stays on the forums login screen. Any suggestions?

Sebastyne

This same problem recreated itself on my other server on which I have had it running smoothly for ages. Now I'm starting to think the reason for it not working is a Joomla! plugin called JFusion, even though that is not supposed to make changes to SMF core. You wouldn't be using JFusion Jax2?

Joachim Müller

Quote from: Joachim Müller on September 28, 2008, 12:47:37 PM
No thread-hijacking
If someone has started a thread, describing his/her issues in detail and asking for support, it's not a bright idea to hijack this thread and reply there, asking for support on your issues. When in doubt, start a thread of your own for your individual issues.
Do exactly as suggested in the sticky thread on this very sub-board.
Locking.