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
Posts: 19
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.
Posts: 38
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
Posts: 38
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.
Posts: 19
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:
also the rewrite section in the root directory .htaccess is as follows:
Posts: 19
bump
Posts: 10
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