I'm running Drupal 5.0 and Gallery 2.2.0 RC1.
The Drupal gallery module could not auto-detect Gallery's location. It's ./gallery2/. I typed it in manually and it appears to have worked somewhat.
My gallery has been in /gallery2/ ever since I upgraded to gallery 2 as soon as it came out. I have many people linking to /gallery2/album1 (for example). I just installed Drupal and the Gallery module.
First problem:
When I go to http://www.mydomain.com/gallery2/album1, I get the default (non-integrated look) gallery theme. When I go to http://www.mydomain.com/album1, I get the integrated page. I'd like /gallery2/album1 to show the integrated page. How can I do that?
Second, and more severe problem:
I'm trying to enable clean URLs in Drupal. When I type in *any* clean URL, including going through the clean URL test or /admin, I get:
<code>
Gallery
Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
</code>
Now, the embedded gallery is obviously already configured. Clean URLs are obviously already enabled in Gallery.
It generates the following two log entries:
<code>
Unable to initialize embedded Gallery
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 993 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 505 (GalleryStorageExtras::addMapEntry)
* in modules/core/classes/GalleryCoreApi.class at line 2831 (GalleryStorage::addMapEntry)
* in modules/core/classes/GalleryEmbed.class at line 846 (GalleryCoreApi::addMapEntry)
* in /home/krisl/linquist.net/www/html/modules/gallery/gallery_base.inc at line 89 (GalleryEmbed::addExternalIdMapEntry)
* in /home/krisl/linquist.net/www/html/modules/gallery/gallery.module at line 203
* in ??? at line 0
* in /home/krisl/linquist.net/www/html/includes/menu.inc at line 418
* in /home/krisl/linquist.net/www/html/index.php at line 15
</code>
and
<code>
Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 993 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 505 (GalleryStorageExtras::addMapEntry)
* in modules/core/classes/GalleryCoreApi.class at line 2831 (GalleryStorage::addMapEntry)
* in modules/core/classes/GalleryEmbed.class at line 846 (GalleryCoreApi::addMapEntry)
* in /home/krisl/linquist.net/www/html/modules/gallery/gallery_base.inc at line 89 (GalleryEmbed::addExternalIdMapEntry)
* in /home/krisl/linquist.net/www/html/modules/gallery/gallery_block.inc at line 42
* in /home/krisl/linquist.net/www/html/modules/gallery/gallery.module at line 195
* in ??? at line 0
* in /home/krisl/linquist.net/www/html/includes/module.inc at line 386
* in /home/krisl/linquist.net/www/html/modules/block/block.module at line 689
* in /home/krisl/linquist.net/www/html/includes/theme.inc at line 1013
* in ??? at line 0
* in /home/krisl/linquist.net/www/html/includes/theme.inc at line 170
* in /home/krisl/linquist.net/www/html/themes/engines/phptemplate/phptemplate.engine at line 171
* in ??? at line 0
* in /home/krisl/linquist.net/www/html/includes/theme.inc at line 170
* in /home/krisl/linquist.net/www/html/index.php at line 33
</code>
In the interest of more information is better than less information, my .htaccess is:
<code>
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/$
RewriteRule . - [L]
RewriteCond %{THE_REQUEST} \ /admin/(\?.|\ .)
RewriteCond %{REQUEST_URI} !/$
RewriteRule . /?q=gallery&g2_view=core.SiteAdmin [QSA,L]
RewriteCond %{THE_REQUEST} \ /f/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/$
RewriteRule . /?q=gallery&g2_controller=permalinks.Redirect&g2_filename=%1 [QSA,L]
RewriteCond %{THE_REQUEST} \ /d/([0-9]+)-([0-9]+)/([^\/\?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/$
RewriteRule . /gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} \ /([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/$
RewriteRule . /?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|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 $
</code>
Any thoughts?
Posts: 189
See my comments at the other posting you made at http://www.galleryembedded.com/forums/viewtopic.php?p=28005