Problem with "Zip Download" and "URL Rewrite&

karotte

Joined: 2005-04-13
Posts: 6
Posted: Wed, 2005-04-13 20:43

Hi, I just upgraded to G2 Beta2 and encountered some problems:

1. The URL Rewrite System doesn't honor G1-style URLs (/gallery2/<album>). I fixed that manually by adding:

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$             /gallery2/main.php?g2_view=core:ShowItem&g2_path=/$1 [QSA]

after the other mod_rewrite rules in the .htaccess file.

2. the Zip Download module doesn't work (didn't work in B1 either):

I try to configure it, enter the path to my zip binary (/usr/bin/zip), but all I get is:

The path you entered isn't valid or isn't executable

Well it certainly is:

alita:~# su -c '/usr/bin/zip' www-data
Copyright (C) 1990-1999 Info-ZIP
Type 'zip "-L"' for software license.
Zip 2.3 (November 29th 1999). Usage:
zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]

----

Gallery URL (optional):
Gallery version: G2 Beta2
Webserver (with version): Apache 1.3.26/Debian
Datatabase (with version): MySQL 4.0.24
PHP version (eg 4.2.1): 4.3.11
phpinfo URL (optional):
Graphics Toolkit(s): imagemagick, gd
Operating system: Linux
Web browser/version: Firefox 1.0.2
G1 version (for migration bugs):
[/code]

 
pelle
pelle's picture

Joined: 2004-12-10
Posts: 389
Posted: Fri, 2005-04-15 18:48

1) You probably want to change the Gallery UrlGenerator too. Edit apropriate lines in modules/rewrite/classes/RewriteUrlGenerator.class The URLs wont look like G1 (/<album>/<image>) though.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-04-18 15:36

2) the module tries to zip something to test if the binary is valid.. try the site admin test with buffered debug output enabled in config.php to see detail of the exec attempt.