Drupal 5.7 and G2 work, but I see red everywhere

luthier

Joined: 2005-10-05
Posts: 19
Posted: Wed, 2008-03-05 12:06

I had Drupal 5.2 and the Gallery2 module (5.x-1.0) working on my site, then moved servers upgrading to Drupal 5.7 and gallery 5.x-2.2. I did a user sync since it suggested it, and now I'm seeing red in all kinds of Gallery pages.

I tried disabling url rewrite in gallery2, but it just caused more problems with broken links everywhere.

I can't run the report generator, but the following is the code it spits out:

*
  A serious error has occured. This can happen due to an incorrect configuration or a bug in the gallery module. If you plan to submit a bug report to the issue queue at drupal.org consider to include the pre-generated report file.
* Error in function '_gallery_init()' (gallery_base.inc:111):
      o Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
        Error (ERROR_MISSING_OBJECT) : Parent 7 path report
            + in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
            + in modules/core/classes/GalleryCoreApi.class at line 1853 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
            + in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
            + in modules/core/classes/GalleryCoreApi.class at line 1804 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
            + in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
            + in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
            + in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
            + in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 37 (RewriteUrlGenerator::_onLoad)
            + in init.inc at line 147 (ModRewriteUrlGenerator::initNavigation)
            + in modules/core/classes/GalleryEmbed.class at line 129
            + in /path/to/my/site/sites/all/modules/gallery/gallery_base.inc at line 101 (GalleryEmbed::init)
            + in /path/to/my/site/sites/all/modules/gallery/gallery_base.inc at line 332
            + in /path/to/my/site/sites/all/modules/gallery/gallery_menu/gallery_menu.module at line 37
            + in ??? at line 0
            + in /path/to/my/site/includes/module.inc at line 406
            + in /path/to/my/site/includes/menu.inc at line 1221
            + in /path/to/my/site/includes/menu.inc at line 220
            + in /path/to/my/site/includes/menu.inc at line 391
            + in /path/to/my/site/index.php at line 15
*

  A serious error has occured. This can happen due to an incorrect configuration or a bug in the gallery module. If you plan to submit a bug report to the issue queue at drupal.org consider to include the pre-generated report file.
* Error in function 'gallery_handle_request()' (gallery_base.inc:159):
      o Error (ERROR_MISSING_OBJECT) : Parent 7 path report
            + in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
            + in modules/core/classes/GalleryCoreApi.class at line 1853 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
            + in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
            + in modules/core/classes/GalleryCoreApi.class at line 1804 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
            + in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
            + in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
            + in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
            + in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 37 (RewriteUrlGenerator::_onLoad)
            + in init.inc at line 147 (ModRewriteUrlGenerator::initNavigation)
            + in main.php at line 180
            + in main.php at line 94
            + in modules/core/classes/GalleryEmbed.class at line 179
            + in /path/to/my/site/sites/all/modules/gallery/gallery_base.inc at line 141 (GalleryEmbed::handleRequest)
            + in /path/to/my/site/sites/all/modules/gallery/gallery.module at line 385
            + in ??? at line 0
            + in /path/to/my/site/includes/menu.inc at line 418
            + in /path/to/my/site/index.php at line 15
*

  A serious error has occured. This can happen due to an incorrect configuration or a bug in the gallery module. If you plan to submit a bug report to the issue queue at drupal.org consider to include the pre-generated report file.
* Error in function '_gallery_init()' (gallery_base.inc:111):
      o Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
        Error (ERROR_MISSING_OBJECT) : Parent 7 path report
            + in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
            + in modules/core/classes/GalleryCoreApi.class at line 1853 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
            + in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
            + in modules/core/classes/GalleryCoreApi.class at line 1804 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
            + in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
            + in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
            + in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
            + in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 37 (RewriteUrlGenerator::_onLoad)
            + in init.inc at line 147 (ModRewriteUrlGenerator::initNavigation)
            + in modules/core/classes/GalleryEmbed.class at line 129
            + in /path/to/my/site/sites/all/modules/gallery/gallery_base.inc at line 101 (GalleryEmbed::init)
            + in /path/to/my/site/sites/all/modules/gallery/gallery_block.inc at line 34
            + in /path/to/my/site/sites/all/modules/gallery/gallery.module at line 369
            + in ??? at line 0
            + in /path/to/my/site/includes/module.inc at line 386
            + in /path/to/my/site/modules/block/block.module at line 693
            + in /path/to/my/site/includes/theme.inc at line 1018
            + in ??? at line 0
            + in /path/to/my/site/includes/theme.inc at line 170
            + in /path/to/my/site/themes/engines/phptemplate/phptemplate.engine at line 170
            + in ??? at line 0
            + in /path/to/my/site/includes/theme.inc at line 170
            + in /path/to/my/site/index.php at line 33
*

  A serious error has occured. This can happen due to an incorrect configuration or a bug in the gallery module. If you plan to submit a bug report to the issue queue at drupal.org consider to include the pre-generated report file.
* Error in function '_gallery_init()' (gallery_base.inc:111):
      o Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
        Error (ERROR_MISSING_OBJECT) : Parent 7 path report
            + in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
            + in modules/core/classes/GalleryCoreApi.class at line 1853 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
            + in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
            + in modules/core/classes/GalleryCoreApi.class at line 1804 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
            + in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
            + in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
            + in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
            + in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 37 (RewriteUrlGenerator::_onLoad)
            + in init.inc at line 147 (ModRewriteUrlGenerator::initNavigation)
            + in modules/core/classes/GalleryEmbed.class at line 129
            + in /path/to/my/site/sites/all/modules/gallery/gallery_base.inc at line 101 (GalleryEmbed::init)
            + in /path/to/my/site/sites/all/modules/gallery/gallery_block.inc at line 34
            + in /path/to/my/site/sites/all/modules/gallery/gallery.module at line 369
            + in ??? at line 0
            + in /path/to/my/site/includes/module.inc at line 386
            + in /path/to/my/site/modules/block/block.module at line 693
            + in /path/to/my/site/includes/theme.inc at line 1018
            + in ??? at line 0
            + in /path/to/my/site/includes/theme.inc at line 170
            + in /path/to/my/site/themes/engines/phptemplate/phptemplate.engine at line 170
            + in ??? at line 0
            + in /path/to/my/site/includes/theme.inc at line 170
            + in /path/to/my/site/index.php at line 33
*

  A serious error has occured. This can happen due to an incorrect configuration or a bug in the gallery module. If you plan to submit a bug report to the issue queue at drupal.org consider to include the pre-generated report file.
* Error in function '_gallery_init()' (gallery_base.inc:111):
      o Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
        Error (ERROR_MISSING_OBJECT) : Parent 7 path report
            + in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
            + in modules/core/classes/GalleryCoreApi.class at line 1853 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
            + in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
            + in modules/core/classes/GalleryCoreApi.class at line 1804 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
            + in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
            + in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
            + in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
            + in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 37 (RewriteUrlGenerator::_onLoad)
            + in init.inc at line 147 (ModRewriteUrlGenerator::initNavigation)
            + in modules/core/classes/GalleryEmbed.class at line 129
            + in /path/to/my/site/sites/all/modules/gallery/gallery_base.inc at line 101 (GalleryEmbed::init)
            + in /path/to/my/site/sites/all/modules/gallery/gallery_block.inc at line 34
            + in /path/to/my/site/sites/all/modules/gallery/gallery.module at line 369
            + in ??? at line 0
            + in /path/to/my/site/includes/module.inc at line 386
            + in /path/to/my/site/modules/block/block.module at line 693
            + in /path/to/my/site/includes/theme.inc at line 1018
            + in ??? at line 0
            + in /path/to/my/site/includes/theme.inc at line 170
            + in /path/to/my/site/themes/engines/phptemplate/phptemplate.engine at line 170
            + in ??? at line 0
            + in /path/to/my/site/includes/theme.inc at line 170
            + in /path/to/my/site/index.php at line 33
*

  A serious error has occured. This can happen due to an incorrect configuration or a bug in the gallery module. If you plan to submit a bug report to the issue queue at drupal.org consider to include the pre-generated report file.
* Error in function '_gallery_init()' (gallery_base.inc:111):
      o Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
        Error (ERROR_MISSING_OBJECT) : Parent 7 path report
            + in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
            + in modules/core/classes/GalleryCoreApi.class at line 1853 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
            + in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
            + in modules/core/classes/GalleryCoreApi.class at line 1804 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
            + in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
            + in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
            + in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
            + in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 37 (RewriteUrlGenerator::_onLoad)
            + in init.inc at line 147 (ModRewriteUrlGenerator::initNavigation)
            + in modules/core/classes/GalleryEmbed.class at line 129
            + in /path/to/my/site/sites/all/modules/gallery/gallery_base.inc at line 101 (GalleryEmbed::init)
            + in /path/to/my/site/sites/all/modules/gallery/gallery_block.inc at line 34
            + in /path/to/my/site/sites/all/modules/gallery/gallery.module at line 369
            + in ??? at line 0
            + in /path/to/my/site/includes/module.inc at line 386
            + in /path/to/my/site/modules/block/block.module at line 693
            + in /path/to/my/site/includes/theme.inc at line 1018
            + in ??? at line 0
            + in /path/to/my/site/includes/theme.inc at line 170
            + in /path/to/my/site/themes/engines/phptemplate/phptemplate.engine at line 170
            + in ??? at line 0
            + in /path/to/my/site/includes/theme.inc at line 170
            + in /path/to/my/site/index.php at line 33

 
luthier

Joined: 2005-10-05
Posts: 19
Posted: Fri, 2008-03-07 09:23

I still haven't been able to fix this. I'm even seeing the error on non-gallery pages such as: /admin/user/access

Not only this, but several features in the previous Module seem to be missing. For example I want to restrict the blocks to display images from certain albums, not the whole gallery. There also seems to be no ability to have a mix of block types. IE: I want one block to display the latest album, and one to display a random image.

Also, for some reason my custom theme is a wreck. I haven't delved into this much, but it appears gallery made some changes to the theme.

Any help or direction would be much appreciated.

 
kylehase
kylehase's picture

Joined: 2005-09-15
Posts: 38
Posted: Fri, 2008-03-21 13:40

I'm seeing the same but perhaps it would be better to post this on the drupal gallery module page here:
http://drupal.org/project/gallery

 
kylehase
kylehase's picture

Joined: 2005-09-15
Posts: 38
Posted: Fri, 2008-03-21 13:49

Think I found a workaround. Well it works for me.
In your .htaccess change /gallery/ to ^/gallery/ this way it only rewrites urls beginning with /gallery and not admin/gallery for example.

 
luthier

Joined: 2005-10-05
Posts: 19
Posted: Wed, 2008-04-02 12:11

Kyle-

Thanks for the feedback. I've been traveling and just found your post.

Are you referring to the .htaccess in the root dir or in the gallery dir? In my setup, I have the gallery in the /pics directory and the only similar line in the .htaccess there says:

RewriteCond %{THE_REQUEST} /pics/gallery/([^?]+)(\?.|\ .)

So I changed this to:

RewriteCond %{THE_REQUEST} ^/gallery/([^?]+)(\?.|\ .)

but it didn't change anything

The following is my complete .htaccess in the gallery directory:

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

    RewriteBase /pics/

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

    RewriteCond %{THE_REQUEST} /pics/d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/pics/main\.php$
    RewriteRule .   /pics/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3   [QSA,L]
    RewriteCond %{THE_REQUEST} /pics/gallery/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/pics/main\.php$
    RewriteRule .   /pics/main.php?g2_path=%1   [QSA,L]
</IfModule>

also the rewrite section in the root directory .htaccess is as follows:

<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} !/index\.php$
    RewriteRule .   -   [L]

    RewriteCond %{THE_REQUEST} /d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/index\.php$
    RewriteRule .   /pics/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3   [QSA,L]
    RewriteCond %{THE_REQUEST} /gallery/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/index\.php$
    RewriteRule .   /index.php?q=gallery&g2_path=%1   [QSA,L]
</IfModule>
 
luthier

Joined: 2005-10-05
Posts: 19
Posted: Sat, 2008-05-10 05:42

bump

 
aquanox24

Joined: 2008-06-25
Posts: 10
Posted: Wed, 2008-08-27 14:20

same problem.

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

works for me!

aquanox