Drupal 4.72 Gallery 2.12 - Won't link to Album Picts

vstults

Joined: 2006-08-22
Posts: 2
Posted: Wed, 2006-09-06 04:43

Drupal 4.72 Gallery 2.12 -

All works independently. All works in Gallery2 embedded, except when you click on Album thumbnail. You can't open Album to see the Picts (seems to go nowhere). Can't seem to get this drupal gallery combo to work in any version and any combination I've tried. This is my latest try, about to jump into steep learning curve for typo3 or go to joomla. Anyone who can help me solve this, I'd really appreciate it. Below is my latest drupal .htaccess file with embedded gallery2 mods.

By the way, drupal is multisite setup and so is gallery2.

Thanks!

# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On

RewriteBase /http://www.site.com/

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_FILENAME} !/http://www.site.com/index\.php$
RewriteRule . - [L]

RewriteCond %{THE_REQUEST} \ /http://www.site.com/gallery/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !/http://www.site.com/index\.php$
RewriteRule . /http://www.site.com/index.php?q=gallery&g2_view=core.ShowItem&g2_path=%1 [QSA,L]

</IfModule>

# END Url Rewrite section

#
# Apache/PHP/Drupal settings:
#

# Protect files and directories from prying eyes.
<FilesMatch "(\.(engine|inc|install|module|sh|.*sql|theme|tpl(\.php)?|xtmpl)|code-style\.pl|Entries.*|Repository|Root)$">
Order deny,allow
Deny from all
</FilesMatch>

# Set some options.
Options -Indexes
Options +FollowSymLinks

# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php

# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.

# PHP 4, Apache 1
<IfModule mod_php4.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
</IfModule>

# PHP 4, Apache 2
<IfModule sapi_apache2.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
</IfModule>

# PHP 5, Apache 1 and 2
<IfModule mod_php5.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
</IfModule>

# Reduce the time dynamically generated pages are cache-able.
<IfModule mod_expires.c>
ExpiresByType text/html A1
</IfModule>

# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on

# If your site can be accessed both with and without the prefix www.
# you can use one of the following settings to force user to use only one option:
#
# If you want the site to be accessed WITH the www. only, adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
# RewriteRule .* http://www.example.com/ [L,R=301]
#
# If you want the site to be accessed only WITHOUT the www. , adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
# RewriteRule .* http://example.com/ [L,R=301]

# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
RewriteBase /

# Rewrite old-style URLs of the form 'node.php?id=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^id=([^&]+)$
#RewriteRule node.php index.php?q=node/view/%1 [L]

# Rewrite old-style URLs of the form 'module.php?mod=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
#RewriteRule module.php index.php?q=%1 [L]

# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>

# $Id: .htaccess,v 1.73 2006/04/14 09:08:26 killes Exp $

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Wed, 2006-09-06 16:18

Does everything work when URL Rewrite is not used? Do the tumbnails show up with the current settings (just the link not working)?

Can you please PM me a link to your site and I'll take a look.

 
Tanya S

Joined: 2006-09-16
Posts: 1
Posted: Sat, 2006-09-16 20:19

Has this problem been resolved as I am having the same problem. I have just installed the Gallery to Drupal 4.72. My gallery is here http://www.girlsonfilmnetwork.org/?q=gallery. When you click on the album it doesn't atke you anywhere! please help.

Thanks

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Sat, 2006-09-16 22:36
 
vstults

Joined: 2006-08-22
Posts: 2
Posted: Wed, 2006-09-27 14:52

Problem Resolved

I couldn't tell you how many time I revisited the site:

http://codex.gallery2.org/index.php/Gallery2:Modules:rewrite#URL_Rewrite_Embedded

All I needed to do was make sure that the .htaccess(my main drupal one)had the right permissions set (chmod 666 /var/www/localhost/embedApp/.htaccess) then you can change it back to 644 to lock down public write access.

Hope this helps someone else.

Thanks for all the help!