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. Boghdan |
|
Boghdan
Joined: 2007-11-05
Posts: 5 |
Posted: Mon, 2007-11-05 02:16 |
Hello. Boghdan |
|
Posts: 135
I cant get all details from just looking at your site, but there are two problems, I think:
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 !)
Posts: 5
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! )
Posts: 5
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?
Posts: 135
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.
Posts: 5
Yep, this one helped!
Thanks a lot!
Posts: 2
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
Posts: 135
@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.
Posts: 2
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.
Posts: 1
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 $
Posts: 1
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.
Posts: 7
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?