Drupal log errors and links to full albums

rkdesantos

Joined: 2004-02-18
Posts: 20
Posted: Sat, 2008-02-16 18:39

Three probably related questions regarding my embedded configuration (Gallery 2.2.4 embedded in Drupal 5.6):

1. I am getting the following errors in my Drupal log related to Gallery2 (below questions):

2. When looking at the gallery from inside Drupal, and you click to switch albums, it takes you to the full standalone Gallery rather than an embedded display. Is this the intended behavior or should there be something changed below to correct this?

3. In Drupal5/Gallery2.2.4 is it possible to enable in Gallery any URL rewrite rules except for ShowItem?

Error in function '_gallery_init()' (gallery_base.inc:111):

    * Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
      Error (ERROR_PERMISSION_DENIED) : Invalid return URL! The requested URL http://www.afana.com/drupal5/index.php?q=gallery&g2_view=ecard.SendEcard&g2_itemId=1020&g2_return=%2Fdrupal%2Fv%2Fporessp3%2FDSCF0745.jpg.html%3Fg2_0%3Dgallery&g2_returnName=photo tried to insert a redirection to /drupal/v/poressp3/DSCF0745.jpg.html?g2_0=gallery which is not a part of this Gallery.
          o in modules/core/classes/GalleryUrlGenerator.class at line 863 (gallerycoreapi::error)
          o in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 42 (rewriteurlgenerator::initnavigation)
          o in init.inc at line 147 (modrewriteurlgenerator::initnavigation)
          o in modules/core/classes/GalleryEmbed.class at line 129
          o in /home/afana/public_html/drupal5/modules/gallery/gallery_base.inc at line 101 (galleryembed::init)
          o in /home/afana/public_html/drupal5/modules/gallery/gallery_base.inc at line 332
          o in /home/afana/public_html/drupal5/modules/gallery/gallery_menu/gallery_menu.module at line 37
          o in ??? at line 0
          o in /home/afana/public_html/drupal5/includes/module.inc at line 406
          o in /home/afana/public_html/drupal5/includes/menu.inc at line 1221
          o in /home/afana/public_html/drupal5/includes/menu.inc at line 220
          o in /home/afana/public_html/drupal5/includes/menu.inc at line 391
          o in /home/afana/public_html/drupal5/index.php at line 15

My configurations are as follows:

Gallery version = 2.2.4 core 1.2.0.6
PHP version = 4.4.8 apache
Webserver = Apache/1.3.39 (Unix) PHP/4.4.8 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.7a
Database = mysql 4.1.22-standard, lock.system=flock
Toolkits = ArchiveUpload, Getid3, LinkItemToolkit, Thumbnail, Gd, NetPBM, ImageMagick, Exif, Ffmpeg, jpegtran
Acceleration = partial/1800, partial/900
Operating system = Linux web2.idleserv.net 2.6.9-55.0.9.ELsmp #1 SMP Tue Sep 25 02:17:24 EDT 2007 i686
Default theme = floatrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Rows in GalleryAccessMap table = 900
Rows in GalleryAccessSubscriberMap table = 4169
Rows in GalleryUser table = 626
Rows in GalleryItem table = 4131
Rows in GalleryAlbumItem table = 137
Rows in GalleryCacheMap table = 57603 

and my .htaccess files are:
In Drupal5: (my main executable for Drupal5 is index.php but for Gallery2 is main.php)

# BEGIN Url Rewrite section
# (Automatically generated.  Do not edit this section)
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /drupal5/

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_URI} !/drupal5/index\.php$
    RewriteRule .   -   [L]


    RewriteCond %{THE_REQUEST} \ /drupal5/v/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/drupal5/index\.php$
    RewriteRule .   /drupal5/index.php?q=gallery&g2_view=core.ShowItem&g2_path=%1   [QSA,L]

</IfModule>

# END Url Rewrite section

# BEGIN Url Rewrite section# (Automatically generated.  Do not edit this section)

<IfModule mod_rewrite.c>    
RewriteEngine On    
RewriteBase /drupal5/    
RewriteCond %{REQUEST_FILENAME} -f [OR]    
RewriteCond %{REQUEST_FILENAME} -d [OR]    
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php    
RewriteCond %{REQUEST_FILENAME} !/drupal5/index\.php$    
RewriteRule .   -   [L]    

RewriteCond %{THE_REQUEST} \ /drupal5/gallery/([^?]+)(\?.|\ .)    
RewriteCond %{REQUEST_FILENAME} !/drupal5/index\.php$    
RewriteRule .   /drupal5/index.php?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.
<Files ~ "(\.(inc|module|pl|sh|sql|theme|engine|xtmpl)|Entries|Repositories|Root|scripts|updates)$">
  Order deny,allow
  Deny from all
</Files>

# Set some options.
Options -Indexes
Options +FollowSymLinks

# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php

php_value max_execution_time 360
# Override PHP settings. More exist in sites/default/settings.php, but
# the following cannot be changed at runtime. The first IfModule is
# for Apache 1.3, the second for Apache 2.
<IfModule mod_php4.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value upload_max_filesize           24000000
  php_value post_max_size                 24000000
  php_value max_input_time                240
  php_value file_uploads                    1
  php_value max_execution_time            360
  php_value memory_limit                  30000000


</IfModule>

<IfModule sapi_apache2.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value upload_max_filesize           24000000
  php_value post_max_size                 24000000
  php_value max_input_time                1200
  php_value file_uploads                    1
  php_value max_execution_time            360
  php_value memory_limit                  30000000

</IfModule>

# Reduce the time dynamically generated pages are cache-able.
<IfModule mod_expires.c>
  ExpiresByType text/html A1
</IfModule>

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on

  # Modify the RewriteBase if you are using Drupal in a subdirectory and
  # the rewrite rules are not working properly.
  #RewriteBase /drupal5

  # 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.66 2005/03/20 19:15:00 dries Exp $

and in Gallery2 (my primary executable file for Gallery2 is named main.php not index.php):

# BEGIN Url Rewrite section
# (Automatically generated.  Do not edit this section)
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /gallery2/

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_FILENAME} !/gallery2/main\.php$
    RewriteRule .   -   [L]


    RewriteCond %{THE_REQUEST} \ /gallery2/v/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !/gallery2/main\.php$
    RewriteRule .   /gallery2/main.php?g2_view=core.ShowItem&g2_path=%1   [QSA,L]

</IfModule>

# END Url Rewrite section

php_value post_max_size 10M
php_value upload_max_filesize 10M
php_value memory_limit 58388608

Any help would be appreciated?

-Rob de Santos
afana.com

 
rkdesantos

Joined: 2004-02-18
Posts: 20
Posted: Sun, 2008-03-02 23:41

Anybody around here anymore? Do I need to provide other information?

-Rob de Santos
afana.com

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Mon, 2008-03-17 02:58

First try and disable Clean URL's and URL Rewrite and see if it works. Then if it doesn't post a link to your page so I can take a look.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Mon, 2008-03-17 02:59

First try and disable Clean URL's and URL Rewrite and see if it works. Then if it doesn't post a link to your page so I can take a look.