I'm posting this here because I think my problem is related to the WPG2 plugin. However, if I'm wrong, would someone please steer me to the correct forum?
Somehow, within the last week, I've stopped being able to login to my gallery unless I go through Wordpress. Let me clarify a bit. I have my gallery installed at gallery.domain.net and my wordpress is at domain.net. I purposefully keep them as separate sites, but I have wpg2 installed so I can easily add my photos to my blog. If I just go to gallery.domain.net and login to my gallery, it appears that I've logged in at first, but when I click on anything that is restricted only to the administrator, I get a screen that tells me there's been a Security error and I'm not allowed to do that.
However, if I go to wordpress, log in there, and then click on the link to get to my gallery, I have to log in, and then will allow me to do all the things I'm supposed to be able to do.
Someone please help! This is very frustrating behavior.
Thanks!
Posts: 1378
Hiya creationsings,
Gallery2 session handling is designed around one of two events. Either logging directly into Gallery2 or logging in via an embedded application (IE WPG2). When you try to do both you get the types of behaviours you have posted and this is simply the way session handling it performed. My recommendation is you stick with accessing your Gallery2 via the WPG2 to avoid the issue.
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 57
Okay...I'll buy that. However, I still have a bit of an inconvience. Wordpress doesn't actually log me into Gallery2. I have to manually log into both places if I want to get to the admin pages of my Gallery2. If I go to the gallery2 users tab in word press it's showing that there should be a link there...and it does let me see restricted folders from g2image. So, I guess I'm just double checking...am I seeing behavior the way it's supposed to be, or should it be logging me into gallery2 (so that I immediately see my SiteAdmin links) from wordpress?
I'm confused. Thanks for your help.
Posts: 1378
creationsings,
WPG2 most definitely logs you into Gallery2. I suspect you are still having a subset of your initial issue. Please clear your cookies, log into your Wordpress install and navigate over to Gallery2 via WPG2 and you should find yourself logged in..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 57
Hi ozgreg...I appreciate your sticking with me through this. I have done what you said and still am not logged into gallery2 when I go through wordpress. I've even tried clearing my cookies and going through the process in both IE and Firefox to make sure it's nothing related to the browser I'm using. Below are the steps that I take:
1. Go wordpress blog (located at www.domain.net).
2. Log in to blog.
3. In wordpress admin pages go to wpg2 tab.
4. Click "View Page" link on that tab
5. I'm directed to gallery2 (located at gallery.domain.net)
6. I am not logged in, so I have to click login at gallery2 and then everything is fine.
Possible complications:
1. My gallery is located in a subdomain and it is a stand alone version. (I do not use the wordpress embedded pages).
2. I have a multi-site install of gallery2, so gallery.domain.net points to one install and not the complete code base directory for gallery2.
I have read that the cookie settings in gallery2 are important in conditions like this, so I have my cookie settings in gallery2 as follows:
path = "/"
Domain = "domain.net"
Just so you have all the pieces...my physical directory structure is as follows
wordpress is at "/domain/wordpress"
gallery2 code base is at "domain/gallery"
the instance of gallery2 that I'm using is at "domain/myGallery"
What am I missing?
Thanks again!
Posts: 1378
Basically you are not missing anything. I never dealt with a Multi-site so I cannot vouch what is happening.. I know WPG2 will be passing through the Wordpress User ID to Gallery2 but what happens in a multisite install I am not sure about.. What should be happening is Wordpress User ID -> Gallery2 External User Mapping (WP to G2) -> Gallery2 User, I know this works standalone I have some complex unit tests to ensure it does..
The only way forward I can see would be to have a WP Admin, G2 Admin Account and FTP User Access to your site so I can debug what G2 is returning to see what the issue is.. If you are willing to give me access then please PM me the details so I can have a look over a few days (I am pretty time pressured between releasing WPG2 3.04 to deal with G2 2.3 and starting development work on WPG2 3.1 to get that project started so I will need to fit you around a few things)
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 57
---text removed --- most of the original post no longer applies.