I installed the module and gallery2 without any problems. Integrated it easier than expected, but the only issue I can see right now is not being able to visit the full sized photo when I click on a thumbnail.
Here is my site:
http://petermorawski.com/gallery/
Comments
Comment #1
pete_dr commentedI think it may have something to do with the url rewrite, because when I deactivate it in gallery2, the images seem to load.
Comment #2
profix898 commentedComment #3
profix898 commentedYes, looks like a url rewrite issue. Can you please post some details about your configuration (paths, .htaccess snippet, url rewrite 'rules' configured in G2)?
Comment #4
pete_dr commentedhere is my entire .htaccess, not sure what you want when you say 'snippet' :P
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
Order allow,deny
# 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.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
# PHP 4, Apache 2.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
# PHP 5, Apache 1 and 2.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
# Requires mod_expires to be enabled.
# 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
# Various rewrite rules.
RewriteEngine on
# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [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]
# $Id: .htaccess,v 1.81.2.3 2007/09/21 12:24:22 drumm Exp $
in the gallery rules i changed the 'show item' to gallery/v/%path% like the installation said
the paths, im not sure what you need
Comment #5
profix898 commentedYour .htaccess file does not contain any rewrite rules for G2 ... I guess thats the reason why its simply doesnt work ;) Try to set file permissions on your Drupal's .htaccess to 666 and visit the 'Url Rewrite' section in your embedded G2. Switch to the 'Setup' tab and check the paths specified under ' Embedded Setup'. Then hit Save and verify the rewrite rules being written to .htaccess, you should see additional rules at the top of Drupal's .htaccess file.
Comment #6
pete_dr commentedi dont see any embedded setup under the setup tab :S ... you are talking about actually in gallery2 under url rewrite? cause it's defiantly not there :(
Comment #7
profix898 commentedAre you going there in your embedded gallery? Because the 'Embedded Setup' section is NOT visible in standalone G2.
Comment #8
pete_dr commentedok i think i did what you said, now look what i get http://petermorawski.com/gallery/ (also giving me the same message when i access my admin page for drupal)
i have this now in my .htaccess
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
RewriteEngine On
RewriteBase /gallery/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/gallery/index\.php$
RewriteRule . - [L]
RewriteCond %{THE_REQUEST} /gallery/gallery/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery/index\.php$
RewriteRule . /gallery/index.php?q=gallery&g2_path=%1 [QSA,L]
Comment #9
profix898 commentedHmm, interesting configuration :) Do you really have Drupal installed in a subdirectory called 'gallery'? I cant tell if this will work at all, because it leads to strange rules like '/gallery/gallery/v/item'. I suggest that you rename the folder to sth else, e.g. 'drupalg2', for testing purposes.
Comment #10
pete_dr commentedi have drupal in the main directory on the server, then gallery2 as another directory ...... i dont know, this is all too much, maybe i'll just not have the url rewrite *shrugs*
Comment #11
alexandreracine commentedHope this is good for you.
------------
Feel free to reopen but please look at the latest version first! It's probably fixed.
http://drupal.org/project/gallery
Closing (cleanup)