Hi folks,
Via drupal, everything per the "integration" works fine. Users can browse the galleries etc. However, a lot of Gallery developers have noticed that via Gallery2/main.php my site would encounter a redirect loop. Why?
Is it the installation directory? The URL Rewrite Paths? The HTAccess files?
Note: In Gallery Admin URL Rewrite, "gallery2" is deleted in the SHOW field (v/%path%).
Reason: Galleries would click through to the drupal home page.
Note: In Gallery Admin System conflicts: Bad path: SS Galleries: http://www.seaandsnow.org/main/index.php
Note: In Drupal Gallery Menu is disabled. There has been issues with the G2 menu
So, there's my specs below from HTACCESS to pathways. If someone can figure out why G2/main.php is looping and how to solve it w/o a lot of disruption, please let me know. It's detrimental to the site but can make G2 integration clean. As I have offered before, a large pizza at your favorite pizza place (US only).
Thanks,
James
Specs
The directory levels
root
root/main (drupal)/
root/main/gallery2/
Drupal URL = http://www.seaandsnow.org/main/
Gallery URL = http://www.seaandsnow.org/main/gallery2/main.php
Gallery version = 2.3-RC1 core 1.2.36
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.2 cgi
Webserver = Apache
Database = mysqli 5.0.45-log, lock.system=flock
Toolkits = Dcraw, Exif, Getid3, jpegtran, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux cgi0103.int.bizland.net 2.6.24.7 #1 SMP Wed May 14 19:55:18 PDT 2008 i686
Default theme = siriux
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
DRUPAL SETTINGS FOR URL/INSTALL
Overview of your Gallery2 location settings as specified or autodetected during install.
Gallery2 URL or URI: /main/gallery2/
Gallery2 filesystem path: /hermes/web02/b2962/jovestec/seaandsnow/main/gallery2/
Embed URI: /main/index.php?q=gallery2
Gallery base: gallery2
Overview of your URL Rewrite settings as specified during install.
Public path to your .htaccess file: /main/gallery2/
Filesystem path to your .htaccess file: /hermes/web02/b2962/jovestec/seaandsnow/main/gallery2/
Clean URL / URL Rewrite OK
There is a writable .htaccess file in your defined Drupal directory (/hermes/web02/b2962/jovestec/seaandsnow/main/gallery2/).
Your 'Show Item' rule should start with 'gallery2/'. Make sure to change the URL Rewrite rule(s) accordingly
GALLERY 2 SETTINGS
URL Rewrite settings - Embedded Setup
For URL Rewrite to work in an embedded environment you need to set up an extra .htaccess file to hold the mod_rewrite rules.
Absolute path to the folder of your embedded .htaccess: /hermes/web02/b2962/jovestec/seaandsnow/main/gallery2
Please enter the Url to your environment. E.g. http://www.mySite.com/myNiceCMS/ http://www.seaandsnow.org/main/gallery2/
URL REWRITE
Show Item: v/
Current install paths:
http://gallery.menalto.com/node/81530
SYSTEM CONFLICTS - GALLERY
There is one system conflict in shortlinks:
This will go through all your Gallery items and check if the short style URL links to an existing file or directory on your webserver. Checked 419 items and found 1 conflicts
Bad path: SS Galleries: http://www.seaandsnow.org/main/index.php
HTACCESS
Listed below are my 3 htaccess files at
root level
root/main level (drupal)
root/main/gallery2/ level
at seaandsnow.org/
ErrorDocument 500
at seaandsnow.org/main (drupal)
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
RewriteEngine On
RewriteBase /main/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/main/index\.php$
RewriteRule . - [L]
RewriteCond %{THE_REQUEST} /main/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main/index\.php$
RewriteRule . /main/index.php?q=gallery2&g2_path=%1 [QSA,L]
# END Url Rewrite section
at seaandsnow.org/main/gallery2/
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
RewriteEngine On
RewriteBase /main/gallery2/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/main/gallery2/index\.php$
RewriteRule . - [L]
RewriteCond %{HTTP:Authorization} (.+)
RewriteCond %{QUERY_STRING} !g2_authorization=
RewriteRule . %{REQUEST_URI}?g2_authorization=%1 [QSA]
RewriteCond %{THE_REQUEST} /main/gallery2/f/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main/gallery2/index\.php$
RewriteRule . /main/gallery2/index.php?q=gallery2&g2_controller=permalinks.Redirect&g2_filename=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /main/gallery2/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main/gallery2/index\.php$
RewriteRule . /main/gallery2/index.php?q=gallery2&g2_path=%1 [QSA,L]
# END Url Rewrite section
Posts: 49
SOLVED:The image assist module in Drupal was causing interference.
this only solved links becoming inactive (different issue).
Posts: 49
Corrected:
DRUPAL SETTINGS FOR URL/INSTALL
Overview of your Gallery2 location settings as specified or autodetected during install.
Gallery2 URL or URI: /main/gallery2/
Gallery2 filesystem path: /hermes/web02/b2962/jovestec/seaandsnow/main/gallery2/
Embed URI: /main/index.php?q=gallery
#[change from gallery2 to gallery 20080916]
Gallery base: gallery
#[change from gallery2 to gallery 20080916]
Overview of your URL Rewrite settings as specified during install.
Public path to your .htaccess file: /main/gallery2/
#[change to /main/]
Filesystem path to your .htaccess file: /hermes/web02/b2962/jovestec/seaandsnow/main/gallery2/
#[change to /hermes/web02/b2962/jovestec/seaandsnow/main]
GALLERY 2 SETTINGS
URL Rewrite settings - Embedded Setup
For URL Rewrite to work in an embedded environment you need to set up an extra .htaccess file to hold the mod_rewrite rules.
Absolute path to the folder of your embedded .htaccess: /hermes/web02/b2962/jovestec/seaandsnow/main/gallery2
#[change to /main]
Please enter the Url to your environment. E.g. http://www.mySite.com/myNiceCMS/ http://www.seaandsnow.org/main/gallery2/
#[change to /main/]
URL REWRITE
Show Item: v/%path%
#[change to gallery/v/%path%]
SYSTEM CONFLICTS - GALLERY
There is one system conflict in shortlinks:
This will go through all your Gallery items and check if the short style URL links to an existing file or directory on your webserver. Checked 419 items and found 1 conflicts
Bad path: SS Galleries: http://www.seaandsnow.org/main/index.php
Posts: 9
I have similar issue with the redirect loop when I want to get to my website http://holeepassion.freehostia.com/gallery2
Could I get some suggestion, simple steps. I am a little confused with what has been presented here.
Thanks