CGI Mode Problems/ Thumbnails with brackets

tsg

Joined: 2009-09-04
Posts: 11
Posted: Thu, 2009-10-15 09:17

Hello,

I installed Gallery3 on a webserver that only supports php in Fast CGI mode. While everything works fine on my local machine (mod_php5), on the server with Fast CGI several problem occur:

1.) The Admin -> Maintainance Site is empty! (The general page layout is randered, but the content area is blank), so no maintainance work is possible

2.) Thumbails in general are not visible (solved). I could solve that by commenting out the security block

Quote:
#<IfModule mod_security.c>
# SecFilterEngine Off
# SecFilterScanPOST Off
#</IfModule>

and enabling the rewrite block in the .htaccess file

Quote:
<IfModule mod_rewrite.c>
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]
</IfModule>

Now thumbnails in generell work, but there is still one problem left:

3.) Thumbails are not shown, when the file name contains brackets like e.g. "pic382(2).jpg"
Something must be wrong here with escaping or rewrites.

Notice:
I am not sure If the problems are cause by the CGI mode, but that is the main difference between the server and my local (working) machine.

Currently I'm using a pre-beta3 version.
The main problem at the moment is problem no. 3 Thumbnails with brackets are not shown (error 404 for the images seen in firebug). To solve that, I trid to update to the official beta3 release (12), but it did not change anything. So I also tried to upgrad to an experimental version (gallery-gallery3-8641b51). That fixed the thumbnails! But it broke the full view site of the images (the site that is shown, when you click onto a thumb) resulting in an Exception page:

Quote:
das ist der Fehler:
The page you requested, Album1/Subalbum1/pic382(2).jpg, could not be found.

Datei: system/core/Kohana.php, Zeile: 841
Und hier ist der Weg:

*

Kohana::show_404( )

* system/core/Event.php [209]:

call_user_func( Array
(
[0] => Kohana
[1] => show_404
)
)

* system/libraries/Router.php [163]:

Event::run( system.404 )

*

Router_Core::setup( )

* system/core/Event.php [209]:

call_user_func( Array
(
[0] => Router
[1] => setup
)
)

* system/core/Bootstrap.php [49]:

Event::run( system.routing )

* index.php [86]:

require( system/core/Bootstrap.php )

Any help appreciated!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Thu, 2009-10-15 13:22

please try with the latest experimental version.
FAQ: How do I upgrade?
some special character isues have been resolved.

An issue with permissions and different path names:
http://sourceforge.net/apps/trac/gallery/ticket/812

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
tsg

Joined: 2009-09-04
Posts: 11
Posted: Fri, 2009-10-16 09:21

Hello,

I just tried the latest experimental (http://download.github.com/gallery-gallery3-99db7e2.zip), but it does not fix any of the problems mentioned. Instead it totally breaks the whole page layout style, resulting in no layout images shown and horizontal menu becoming vertical, looks like some css file not found or wuteva. But the problems above are NOT solved. It still behaves exactly as I described above, so I had to revert to the pre beta3 from backups.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-10-16 09:24

Sounds like you've made customizations or are not using the default theme. There's been a major overhaul on CSS:
http://gallery.menalto.com/node/91603

And as Dave pointed to an existing bug. If you've set permissions so Everybody can't view an image, if the filename of the image or directory name of the album doesn't match the Internet Address, it'll break.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
tsg

Joined: 2009-09-04
Posts: 11
Posted: Wed, 2009-10-21 10:48

Yes, I use a custom theme, but I'm a little confused now, sorry: What has that got to do with the brackets?
Only thumbs with brackets in the filename are broken

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Wed, 2009-10-21 13:30

You have 2 issues.
1. css: you have to change to the wind theme or change the css classes in your custom theme: http://gallery.menalto.com/node/91603

2. brackets, might be considered special characters and could be related to this bug: http://sourceforge.net/apps/trac/gallery/ticket/812

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
tsg

Joined: 2009-09-04
Posts: 11
Posted: Mon, 2009-10-26 11:11

Thanks.
So for the first issue (css) I will fix my custom theme. That should be no problem.
The main problem is the second one (brackets) will this be fixed in the near future, or do I have to work around that somehow?
I have no idea how to work around so far.. At least removing permissions to avoid the file proxy is NOT an option, because I definitely need to use permissions.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Mon, 2009-10-26 13:35

The joys of using beta software.
Please read this thread: http://gallery.menalto.com/node/91427 it has a suggestion till the bug gets fixed.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team