Problem with opening G2 albums in nodes (Drupal 5.3)

Boghdan

Joined: 2007-11-05
Posts: 5
Posted: Mon, 2007-11-05 02:16

Hello.
I've got a web-page by address http://boghdan.uabalt.net based on drupal 5.3 . Gallery2 is install by http://boghdan.uabalt.net/gallery. I installed a gallery module on drupal and seems everything worked fine but one "little" thing: when i press on a thumbnail (at the moment i have only one album there called "Ingas DzD") in my gallery it cannot find the proper page to open/generate, and is trying to connect to http://boghdan.uabalt.net/v/20071002-03_-_Ingas_DzD/, so like http://boghdan.uabalt.net would be home directory for the gallery. Shouldn't it be opening the albums in a node or smth?
Thanx 4wards.

Boghdan

 
profix898

Joined: 2005-11-08
Posts: 135
Posted: Mon, 2007-11-05 08:52

I cant get all details from just looking at your site, but there are two problems, I think:

  • You have installed Gallery2 at 'drupalsite/gallery'. That wont work! As stated in the installation instruction you must not name your G2 directory 'gallery', because 'gallery' refers to the Drupal path and causes conflicts. Warning - Do not place your Gallery2 codebase at "/drupaldir/gallery". We usually recommend that you place G2 in '/drupaldir/gallery2'.
  • Make sure your Rewrite rule for 'Show Item' looks like 'gallery/v/%path%'. (must start with gallery/...)

You can read a full install tutorial at http://codex.gallery2.org/Integration:Drupal:Installation (! written for the 5.x-2.x series of gallery module !)

 
Boghdan

Joined: 2007-11-05
Posts: 5
Posted: Mon, 2007-11-05 09:50

Ah! Thanx! It seems to be the first problem you mentioned. I really installed the gallery in the 'gallery' folder under the root of my drupal site. Will try to fix it today later. Hope it worx.
Thanks a lot! )

 
Boghdan

Joined: 2007-11-05
Posts: 5
Posted: Mon, 2007-11-05 17:47

Yeah! Actualy i had two of these problems. Sorry for not RTFMing.
But now after reading the installation manual i still cannot find solve another one problem. When i click on the thumbnail of the main gallery in drupal node i gat back the same page (drupal with G2 main gallery node, which i had before clicking)
http://boghdan.uabalt.net/?q=gallery

Any ideas?

 
profix898

Joined: 2005-11-08
Posts: 135
Posted: Mon, 2007-11-05 18:06

Is it possible that you dont have 'Clean URLs' (admin/settings/clean-urls) enabled in Drupal? The 5.x-1.x version, what I guess you are using, does not warn you in this case.

 
Boghdan

Joined: 2007-11-05
Posts: 5
Posted: Mon, 2007-11-05 20:02

Yep, this one helped!
Thanks a lot!

 
Undergrid

Joined: 2007-11-25
Posts: 2
Posted: Sun, 2007-11-25 18:41

I'm having a similar problem to profix898, every time I click the thumbnail of a sub-gallery via it goes back to the same page but with the sub-gallery url. My base url is http://www.tal-tech.co.uk, gallery2 installed under http://www.tal-tech.co.uk/gallery2 with the gallery plugin under http://www.tal-tech.co.uk/gallery. If you visit that list URL and click on the first sub-gallery you get directed to the URL http://www.tal-tech.co.uk/gallery/v/taltech/ but it shows the same page as previously, not decending into the Sub-gallery.

I've check that URL rewite and clean urls are switched on, but I can't figure out whats going wrong. Any help would be appreciated.

Drupal: 5.3
Gallery: gallery 5.x-2.0
Gallery2: 2.2.3

Thanks

 
profix898

Joined: 2005-11-08
Posts: 135
Posted: Mon, 2007-11-26 10:49

@Undergrid: Can you please post an excerpt of your Drupal .htaccess file (containing the G2 rewrite rules)? This behavior is usually a url rewrite issue, although on the first sight your configuration look good.

 
Undergrid

Joined: 2007-11-25
Posts: 2
Posted: Mon, 2007-11-26 14:01
profix898 wrote:
@Undergrid: Can you please post an excerpt of your Drupal .htaccess file (containing the G2 rewrite rules)? This behavior is usually a url rewrite issue, although on the first sight your configuration look good.

Hi Profix, yes it was a problem with the rewrite rules in the .htaccess, once I took a look at the file it was pretty obvious. All sorted now, thanks for the help.

 
dwkoste

Joined: 2007-11-28
Posts: 1
Posted: Wed, 2007-11-28 14:28

I am having the same issue. What did you change in the rewrite rules to get this to work correctly? I am not very good with rewrite rules so nothing glaring jumps out at me while looking at the .htaccess file. Here is the file if it helps:

#
# Apache/PHP/Drupal settings:
#

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

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# Follow symbolic links in this directory.
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>

# Requires mod_expires to be enabled.
<IfModule mod_expires.c>
# Enable expirations.
ExpiresActive On
# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600
# Do not cache dynamically generated pages.
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} ^example\.com$ [NC]
# RewriteRule .* http://www.example.com/ [L,R=301]
#
# If you want the site to be accessed only WITHOUT the www. prefix, adapt
# and uncomment the following:
# RewriteCond %{HTTP_HOST} ^www\.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 /drupal

# 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.81 2007/01/09 09:27:10 dries Exp $

 
ecofinn

Joined: 2007-12-04
Posts: 1
Posted: Tue, 2007-12-04 16:12

Hi Undergrid / dwkoste

I too am having an identical problem.

I have a fresh install of
Drupal 5.3
Gallery 2.2.3
And the Drupal gallery module gallery 5.x-2.0

Clicking on domain.com/gallery shows me a list of galleries
Clicking on a gallery icon takes me to the domain.com/gallery/v/artist+a/ but I still see the same list of galleries - and "This is the main page of your Gallery" text.

So for some reason it is not drilling down into the gallery.
When I try it outside Drupal in the domain.com/gallery2/gallery/v/artist+a/ all is fine.

Any help would be greatly appreciated.

Thanks.

 
Tearabite

Joined: 2008-11-16
Posts: 7
Posted: Sun, 2008-11-16 17:22

Same problem here with clicking on a album just redirecting to the same page ... can someone post the changes necessary in .HTACCESS to correct this?