| Author |
Message |
madpinger
Beginner


Joined: Aug 27, 2008 Posts: 12
|
Posted: Thu Aug 28, 2008 2:06 am Post subject: Session management issues ? |
|
|
phpbb3.0.2 w/Gallery2 1.0.1a apache2 php5.2.3 (I recall reading some thing about php5, tho I'm tired and do not racall atm.)
Yo, I've installed it 3 times clean, being carefull to follow the instructions and have spent much time in search boxes reading. I have some idea's tho I thought I'd just ask at this point be for I read any more on the embeded doc's.
Basicly, my admin account works fine(Logging in from phpbb3). The cookies are good (They match, I have tried many settings with them tho), the config is working. How ever, ALL other users are not. WHen they load the gallery2.php the page displays fine. How ever, when they navigate the albums and images logged in, the following error resaults
Code: › [error] [client x.x.x.x] PHP Fatal error: Call to a member function getId() on a non-object in /var/www/xxxxxxx.com/g2/modules/core/classes/GalleryEmbed.class on line 247, referer: http://xxxxxx.com/gallery2.php
and they are presented with a blank page, for ever more unable to view the gallery unless they clear their cookies. At which point they can view the root embeded page again to run into the same issue.
(The links in the embeded gallery link with the SID, while the initial view does not in this case. How ever, once the session ID has been passed, they must del their cookies be for they continue.)
My admin account and guest can browse per normal.
Thanks for any idea's ya might have in advance. I've been at it a while and I'll check back after I sleep on it.
[/code] |
|
| Back to top |
|
|
AdBot
|
| Post subject: Session management issues ? |
|
|
|
|
|
| Back to top |
|
 |
PoPoutdoor
Wizard


Joined: Jan 20, 2006 Posts: 118
|
Posted: Thu Aug 28, 2008 3:28 am Post subject: Re: Session management issues ? |
|
|
Have you Sync the user account from ACP?
Another possible solution: Do your server use cache/proxy? You may needed to restart apache / proxy server too. |
|
| Back to top |
|
|
madpinger
Beginner


Joined: Aug 27, 2008 Posts: 12
|
Posted: Thu Aug 28, 2008 3:47 am Post subject: Re: Session management issues ? |
|
|
| ya, all the accounts are synced. I of course all way clear the cache every time I make a change. |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Thu Aug 28, 2008 9:23 am Post subject: Re: Session management issues ? |
|
|
Sure sounds like a cookie issue.
Which version of Gallery is this?
You might try turning on debug in both phpbb config and gallery config files and see if it yields more error details.
The admin is not handled any differently than any other user by the integration as far as cookie settings go, so I don't understand that one.
What are your cookie settings in both apps? Are you using any kind of redirection or directory aliasing? |
|
| Back to top |
|
|
madpinger
Beginner


Joined: Aug 27, 2008 Posts: 12
|
Posted: Thu Aug 28, 2008 5:20 pm Post subject: Re: Session management issues ? |
|
|
ya, I've read many places on these forums "cookies" are the issue for the blank page and being logged out.
I have experamented with many cookie settings.
They are synced to be identical as
path: /
domain: xxx.com
There are no redirection or directory aliasing. Its strait up.
I'll review my site configs in apache tho, I've all ready looked over my php.ini.
I have added debugging for both phpbb3 and gallery2. I'll post info from em in a bit when I have time to do some testing to produce the desired out puts. |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Thu Aug 28, 2008 8:13 pm Post subject: Re: Session management issues ? |
|
|
If you are not using subdomains for gallery and phpbb, you should try
path: /
domain: "blank" (nothing)
Verify the db settings in phpbb_config and g2_pluginparametermap, then manually clear the browser cookies for your site. |
|
| Back to top |
|
|
madpinger
Beginner


Joined: Aug 27, 2008 Posts: 12
|
Posted: Thu Aug 28, 2008 11:16 pm Post subject: Re: Session management issues ? |
|
|
ya, Its all on one domain. I have had it set to:
path: /
domain: "blank" (nothing)
Same prob, I set it back to that and double checked the values in phpmyadmin. Same issue still getting:
Code: › Fatal error: Call to a member function getId() on a non-object in /var/www/xxxx.com/g2/modules/core/classes/GalleryEmbed.class on line 247
I have been running debuggings, but I think its gonna take me a sec to unbderstand the out put.
Only thing I've noticed after debugging, for the most part is that the links in the embeded gallery DO NOT have session ID's in them for me, but do for all other users ?
*edit*
I del the settings in my phpbb3 db and reinstalled it again, clearing the cache in both phpbb3 and gallery2.
My account can browse per normal in the gallery, how ever if I try to change permissions to a gallery, I get a blank page when submitting the changes. It does not have session ID's in my links inside the embeded gallery while it still does for users. Other users still have the same issue. Blank page when the try to follow links inside the gallery forceing them to have to del their cookies to view it as any thing but a blank page again when at the gallery2.php
*edit*
FOund the cause of my error updating permissions, script exacution time out, changed the php settings and that works for me now. Still hunting around for a salution to the user issue. |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Fri Aug 29, 2008 10:20 am Post subject: Re: Session management issues ? |
|
|
| Are you using G2.3? There may be some issues with the current integration and G2.3. I have 2.3 running in testing with the integration, but don't remember specifically what all changed. I don't recall much that would cause this, but who knows. I won't be releasing the new integration code until G2.3 is final, but if you are in the experimental mood I can give you the new code to try. I should probably grab the latest 2.3 code and make sure nothing has changed that breaks the integration. |
|
| Back to top |
|
|
madpinger
Beginner


Joined: Aug 27, 2008 Posts: 12
|
Posted: Fri Aug 29, 2008 11:20 am Post subject: Re: Session management issues ? |
|
|
Sure, I'm willing to go with experamental. I'm trying to track down the specifics still. Just can't find enough time to do it proper. Have to read a lot of stuff, lol. Tho, I have reviewed the G2.3 API and embeded documents.
Looking to try some experamentation with it. If you have some thing to try, I'm all for it. I'll clone the site and try a older version of the gallery in the mean time.
I'm running:
Gallery version = 2.3-RC1 core 1.2.36
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.4
Sorry I neglected to post that info.
If you want the debug logs from gallery2 and php5 I'll let me know, I'd rather not give out unsanitized logs publicly. |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Fri Aug 29, 2008 12:20 pm Post subject: Re: Session management issues ? |
|
|
| I sent you a pm with the link... |
|
| Back to top |
|
|
madpinger
Beginner


Joined: Aug 27, 2008 Posts: 12
|
|
| Back to top |
|
|
|
|
|
|
|