I am setting up a new site using Drupal 5.3, after constant server errors forced me to switch over from 1&1 hosting. I have copied the databases over, and am installing modules one at a time, starting with Gallery.
I have been trying for some time to get my Gallery URL Rewrite to work correctly. Today it seems like I finally got it to work, but it has produced a new error.
When I go to admin/settings/gallery it reports:
* Gallery2 API version: 7.18 / 1.2
* Overall Status (Installation) [OK]
And in fact the site seems to be operating more or less correctly as far as I can tell. However, if I go to the install page, or any of the other Gallery module menus, I get "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." followed by a long list of errors. This also comes up if I try to configure any of the gallery-created blocks. However Gallery itself seems to work correctly. The full text of the error is below:
*
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 install
+ 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 (modrewriteurlgenerator::_onload)
+ in init.inc at line 147 (modrewriteurlgenerator::initnavigation)
+ in modules/core/classes/GalleryEmbed.class at line 129
+ in /home/dreamcol/public_html/modules/gallery/gallery_base.inc at line 101 (galleryembed::init)
+ in /home/dreamcol/public_html/modules/gallery/gallery_base.inc at line 337
+ in /home/dreamcol/public_html/modules/gallery/gallery_menu/gallery_menu.module at line 37
+ in ??? at line 0
+ in /home/dreamcol/public_html/includes/module.inc at line 406
+ in /home/dreamcol/public_html/includes/menu.inc at line 1221
+ in /home/dreamcol/public_html/includes/menu.inc at line 220
+ in /home/dreamcol/public_html/includes/menu.inc at line 391
+ in /home/dreamcol/public_html/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:164):
o Error (ERROR_MISSING_OBJECT) : Parent 7 path install
+ 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 (modrewriteurlgenerator::_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 /home/dreamcol/public_html/modules/gallery/gallery_base.inc at line 146 (galleryembed::handlerequest)
+ in /home/dreamcol/public_html/modules/gallery/gallery.module at line 383
+ in ??? at line 0
+ in /home/dreamcol/public_html/includes/menu.inc at line 418
+ in /home/dreamcol/public_html/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 install
+ 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 (modrewriteurlgenerator::_onload)
+ in init.inc at line 147 (modrewriteurlgenerator::initnavigation)
+ in modules/core/classes/GalleryEmbed.class at line 129
+ in /home/dreamcol/public_html/modules/gallery/gallery_base.inc at line 101 (galleryembed::init)
+ in /home/dreamcol/public_html/modules/gallery/gallery_block.inc at line 34
+ in /home/dreamcol/public_html/modules/gallery/gallery.module at line 367
+ in ??? at line 0
+ in /home/dreamcol/public_html/includes/module.inc at line 386
+ in /home/dreamcol/public_html/modules/block/block.module at line 693
+ in /home/dreamcol/public_html/includes/theme.inc at line 1018
+ in ??? at line 0
+ in /home/dreamcol/public_html/includes/theme.inc at line 170
+ in /home/dreamcol/public_html/themes/engines/phptemplate/phptemplate.engine at line 171
+ in ??? at line 0
+ in /home/dreamcol/public_html/includes/theme.inc at line 170
+ in /home/dreamcol/public_html/index.php at line 33
If I knew how to manually delete all of the gallery settings that would be a start - I don't know where in the database they are stored. I tried upgrading from beta 5 to beta 6 in case that overwrote some of the settings, but it had no effect.
Thanks for any help you can provide.
Comments
Comment #1
profix898 commentedCould you please provide some details about your rewrite configuration? What did you enter for the 'Show Item' rule in G2? Try to disable all rules except 'Show Item' and set this to 'gallery/v/%path%'. Are you running a single- or multisite Gallery2? What rules were added to your .htaccess file?
Most of the settings are stored in the 'variable' table. You can manually remove all settings by running
DELETE FROM {variable} WHERE name LIKE 'gallery_%'OR disable the gallery module and 'uninstall' it on the 'Modules' page. However some settings are stored in Gallery2 internally, such as the rewrite rules.Comment #2
profix898 commentedThere are three bug report for this issue in the queue (although in different context). Marking this 'duplicate' of http://drupal.org/node/193152 to pool all issues into one.
Comment #3
kokoyote commentedI already had all rules except 'Show Item' disabled, but I had the rule set simply to 'gallery/%path%' I gather this was causing the conflict. since once I changed it, the errors disappeared, and the site is working fine now.
Thank you for the help! I'd advise documenting the instructions for URL rewrite rules more thoroughly, though to make it clear what can be used with the gallery module.
Comment #4
tbendick commentedFixed my problems by turning off the rewrite rules in G2 and then starting over. Had a problem due to a multsite install.