Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Session management issues ?

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Issues » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
madpinger

Beginner
Beginner


Joined: Aug 27, 2008
Posts: 12

PostPosted: Thu Aug 28, 2008 2:06 am    Post subject: Session management issues ? Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: Session management issues ?  

Back to top
PoPoutdoor

Wizard
Wizard


Joined: Jan 20, 2006
Posts: 107

PostPosted: Thu Aug 28, 2008 3:28 am    Post subject: Re: Session management issues ? Reply with quote

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
Offline View user's profile Send private message
madpinger

Beginner
Beginner


Joined: Aug 27, 2008
Posts: 12

PostPosted: Thu Aug 28, 2008 3:47 am    Post subject: Re: Session management issues ? Reply with quote

ya, all the accounts are synced. I of course all way clear the cache every time I make a change.
Back to top
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1040

PostPosted: Thu Aug 28, 2008 9:23 am    Post subject: Re: Session management issues ? Reply with quote

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
Offline View user's profile Send private message
madpinger

Beginner
Beginner


Joined: Aug 27, 2008
Posts: 12

PostPosted: Thu Aug 28, 2008 5:20 pm    Post subject: Re: Session management issues ? Reply with quote

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
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1040

PostPosted: Thu Aug 28, 2008 8:13 pm    Post subject: Re: Session management issues ? Reply with quote

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
Offline View user's profile Send private message
madpinger

Beginner
Beginner


Joined: Aug 27, 2008
Posts: 12

PostPosted: Thu Aug 28, 2008 11:16 pm    Post subject: Re: Session management issues ? Reply with quote

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
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1040

PostPosted: Fri Aug 29, 2008 10:20 am    Post subject: Re: Session management issues ? Reply with quote

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
Offline View user's profile Send private message
madpinger

Beginner
Beginner


Joined: Aug 27, 2008
Posts: 12

PostPosted: Fri Aug 29, 2008 11:20 am    Post subject: Re: Session management issues ? Reply with quote

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
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1040

PostPosted: Fri Aug 29, 2008 12:20 pm    Post subject: Re: Session management issues ? Reply with quote

I sent you a pm with the link...
Back to top
Offline View user's profile Send private message
madpinger

Beginner
Beginner


Joined: Aug 27, 2008
Posts: 12

PostPosted: Fri Aug 29, 2008 12:54 pm    Post subject: Re: Session management issues ? Reply with quote

Ok, I have it. I'm modding the files now. I'll be off work in a bit and I'll upload them then. I'll get back to you after that.

*edit*
Hey, managed to find enough time to try it out.
Exact same error.
My imported admin account from phpbb3 is able to view everything per normal and the url's from the links in the embeded gallery DO NOT have the session ID in them while the normal users DO have the session ID's in them. For a normal user tho, it doesnt matter if I strip the session ID from the link, same thing happens. Blank page with the error:
Code: ›  PHP 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


Nothing new to report in phpbb3's debug output or gallery2's. Same message.

So, I'm still at, admin and guest work correctly with embeded.
non embeded works correctly for all users.
Lots of nice improvements to the intergration tho.

*edit*
Just went over a bunch of stuff, I just dont grasp it yet.
Seems like, it works for admin and guest per norm and not normal users would be enough to nerrow it down for me to find it. I've just not been able to wrap my head around it.
Yay learning curve Wink
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Issues » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia