Adding permissions breaks images

mrk

Joined: 2012-09-08
Posts: 3
Posted: Sat, 2012-09-08 14:39

Hello,
I have been struggling with Gallery 3.0.3 and now 3.0.4. My problem: images display beautifully when albums are public. But, when I change permissions to require users be logged in, images do not appear. Has anyone advice for troubleshooting this?
Many thanks,
J

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2012-09-08 16:57

Create a test album with the same permissions as your other album and send login info to test.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2012-09-10 23:31

Got your PM.
How is your host?
Seems that sessions or the proxy is not being set properly.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
mrk

Joined: 2012-09-08
Posts: 3
Posted: Tue, 2012-09-11 13:41

Thanks for looking. We are self-hosted, using no proxy. Based upon your comment, I restarted the server, but that didn't help. At what else should I look?
Thanks again,
Jeff

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2012-09-11 13:47

Session data
I don't know.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
mrk

Joined: 2012-09-08
Posts: 3
Posted: Tue, 2012-09-11 16:27

I seem to have solved this. I changed session.php:

$config['expiration'] = 0;

and

$config['regenerate'] = 1;

I also changed the .htaccess in the application root to:

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
# RewriteBase /
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*)$ index.php?kohana_uri=$1 [QSA,PT,L]
# RewriteRule ^$ index.php?kohana_uri=$1 [QSA,PT,L]
# RewriteRule ^index.php/(.*) $1 [QSA,R,L]
</IfModule>

Your comments pointed me in the right direction. Thanks for that.

Regards,

Jeff

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2012-09-11 23:57

Weird.
Glad you got it sorted.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team