Bridging on my gallery is totally dead :( Bridging on my gallery is totally dead :(
 

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

Bridging on my gallery is totally dead :(

Started by elwave, August 28, 2011, 04:02:35 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

elwave

I don't know why... it attempts to establish the bridge with my MyBB forum, but ends up just redirecting to the login page on the forum, but not accepting the logon.

Could anyone come and take a look? It's probably something silly... it's been doing this for a while now though and I'd love to finally get it fixed for my members!

Thanks :)

If anyone wants to help, I'll give you the site URL and a login and stuff. It would help me tremendously!

Joe Carver


elwave

Thing is though, no matter how much I unbridge it and bridge it again or double and triple check the info I put in... nothing. I think something might be broken in the database or something. I recently overwrote all the gallery's basic files with the ones from a fresh install of Coppermine, but no change :(

elwave

If anyone has any thoughts or could come take a peek, I'd appreciate it :)

phill104

Did it die after you replaced all the files? Did you remember to run update.php? If not run it now and see what happens.
It is a mistake to think you can solve any major problems just with potatoes.

elwave

ah no I don't thiiiink I did that.. I may have done.. I'll run it now anyway :)

elwave

Ah, yes it had already been done.

Does it sound plausible my suspicions that it is a database issue not an issue with the gallery's files? I wonder if something has become disrupted in the database (like the users table or something - just throwing out ideas). My knowledge of the Coppermine workings isn't good enough to say exactly :(

phill104

Providing a link to your site would be a good start.

If it failed when you changed some files then it would be possible that some of the files became corrupt. But we really need to see your site first.
It is a mistake to think you can solve any major problems just with potatoes.

elwave

well, I only overwrote all the files because I was having a problem with changing the settings in the gallery after applying SEO tweaks (which I have now completely removed AFAIK).

Ok here is the gallery:

NOT SAFE FOR WORK (adult content). http://www.sonichentai.net/gallery

(you can understand why I was hesitant to provide it off the bat lol)

elwave

oh, and if you want admin login details, I can PM them to you?

phill104

So it failed when you updated your files? Or had it failed when you were playing with seo?

Also, as you are running 1.5.14 now would be a good time to upgrade to 1.5.16

Once you have done that please do everything outlined by Joe Carver above.
It is a mistake to think you can solve any major problems just with potatoes.

elwave

To be honest, I can't remember the point at which the whole bridge broke. It's been working for a long time. The SEO tweaks broke the user permissions settings (whole image, thumbnails only, etc, for different levels of users), so no matter what I changed it to, it made no difference.

I can update it.. although to be honest I really doubt it will fix it :(

Perhaps I should try resetting or clearing parts of the database so it is forced to recreate them?

phill104

It is a mistake to think you can solve any major problems just with potatoes.

elwave

Hm, I just upgraded the gallery to the latest version. No improvement, BUT I have learned that SOME users on the forum can login, and some can't! Well, I specifically know of one user who can - one of my admins. But my admin account doesn't do it, and my test user account also doesn't.  He did have TONS of secondary user groups, so I've removed them to see if it still works for him.

Hm ._.  This is complicated.

I'll fill in that thing anyway:

I have the following issue when trying to bridge coppermine and MyBB 1.6.3 (I could update it to 1.6.4 but it's unlikely it will work IMO... I could if you want though):

MyBB bridging does not work for all users - most users are not logged in at all to the gallery when they try to. I'm also having issues with group permissions, but this is a secondary issue.

Coppermine install: http://www.sonichentai.net/gallery (I don't know if Coppermine itself has this down as with the www. or without.. I could check but I don't know which file it is)
Bridging app install: http://www.sonichentai.net/forum
Coppermine version: cpg1.5.16
Bridging app version: MyBB 1.6.3
Test user account: testuser5 / testt3st

BridgeManager settings:
Bridge app URL:  http://www.sonichentai.net/forum
Relative path to your bridge app's config file:  ../forum/inc/
Cookie name or prefix:  Not sure (how do I find this out?)
Use bridge app custom groups?:  1  (it doesn't seem to work whether this is on or off though)


Hope that helps!

Αndré

When I have a look at the generated cookies I can see that the Coppermine cookies are created for host
Quotewww.sonichentai.net
with path
Quote/

and the board cookies are created for host
Quote.sonichentai.net
with path
Quote/forum/

elwave

Ah ok, yeah I had a look in the config of Coppermine and saw that it was set to call it "coppermine" and the path is /.

So erm.. what should I change where and to what? I would imagine the forum cookie settings are ok and I should change the Coppermine ones? I know how to change the path if I need to (the Cookie Settings section) but I don't know how to change the host?

Thanks a lot! :)

Αndré

The host should be fine, but according to the docs you should adjust the board's cookie path:
Quote from: http://documentation.coppermine-gallery.net/en/bridging.htm#integrating_cookie_startThe cookie path in the forum's configuration should be set to '/' where this option is available.

Some bridging apps have an option to enable sub-domain independant cookies that you should enable if you own the entire domain.

Some bridging apps use a cookie path by default that will make the cookie only available for the bridging app itself and not for other apps that reside in different folders on the webserver. If this is the case for you, you have to review your bridging app's config first and make sure that it is set to allow the cookie from the bridging app to be read by coppermine.

elwave

omg it works!! You clever dude! haha :)  Thanks so much!


I still can't manage to get the permissions working again (as I say, that broke after I applied some SEO tweaks which I now think I've completely removed), so I'd love some help with that (it's quite important to the site that I restrict access a bit again) but I'm so glad the logins are working!

elwave

but aw damn now some of the forum isn't working properly (the admin CP, it seems). :(

Αndré

Maybe you have to clear your cookies, but you better read the board's docs or ask the board's support team.