After I activate the module and go to the Gallery settings page, it returns an error when it comes to user sync so I click on the "Sync Users" button and a critical error similar to the following appears:
*
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:96):
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 1845 (galleryfilesystementityhelper_simple::fetchchildidbypathcomponent)
+ in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (gallerycoreapi::fetchchildidbypathcomponent)
+ in modules/core/classes/GalleryCoreApi.class at line 1796 (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 43 (modrewriteurlgenerator::_onload)
+ in init.inc at line 147 (modrewriteurlgenerator::initnavigation)
+ in modules/core/classes/GalleryEmbed.class at line 129
+ in /home/mantraso/public_html/sites/all/modules/gallery/gallery_base.inc at line 86 (galleryembed::init)
+ in /home/mantraso/public_html/sites/all/modules/gallery/gallery_menu/gallery_menu.module at line 120
+ in /home/mantraso/public_html/sites/all/modules/gallery/gallery_menu/gallery_menu.module at line 27
+ in ??? at line 0
+ in /home/mantraso/public_html/includes/module.inc at line 406
+ in /home/mantraso/public_html/includes/menu.inc at line 1221
+ in /home/mantraso/public_html/includes/menu.inc at line 220
+ in /home/mantraso/public_html/includes/menu.inc at line 391
+ in /home/mantraso/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:118):
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 1845 (galleryfilesystementityhelper_simple::fetchchildidbypathcomponent)
+ in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (gallerycoreapi::fetchchildidbypathcomponent)
+ in modules/core/classes/GalleryCoreApi.class at line 1796 (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 43 (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/mantraso/public_html/sites/all/modules/gallery/gallery_base.inc at line 112 (galleryembed::handlerequest)
+ in /home/mantraso/public_html/sites/all/modules/gallery/gallery.module at line 323
+ in /home/mantraso/public_html/sites/all/modules/gallery/gallery_menu/gallery_menu.module at line 81
+ in ??? at line 0
+ in /home/mantraso/public_html/includes/menu.inc at line 418
+ in /home/mantraso/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:96):
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 1845 (galleryfilesystementityhelper_simple::fetchchildidbypathcomponent)
+ in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (gallerycoreapi::fetchchildidbypathcomponent)
+ in modules/core/classes/GalleryCoreApi.class at line 1796 (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 43 (modrewriteurlgenerator::_onload)
+ in init.inc at line 147 (modrewriteurlgenerator::initnavigation)
+ in modules/core/classes/GalleryEmbed.class at line 129
+ in /home/mantraso/public_html/sites/all/modules/gallery/gallery_base.inc at line 86 (galleryembed::init)
+ in /home/mantraso/public_html/sites/all/modules/gallery/gallery_block.inc at line 38
+ in /home/mantraso/public_html/sites/all/modules/gallery/gallery.module at line 308
+ in ??? at line 0
+ in /home/mantraso/public_html/includes/module.inc at line 386
+ in /home/mantraso/public_html/modules/block/block.module at line 689
+ in /home/mantraso/public_html/includes/theme.inc at line 1015
+ in ??? at line 0
+ in /home/mantraso/public_html/includes/theme.inc at line 170
+ in /home/mantraso/public_html/themes/engines/phptemplate/phptemplate.engine at line 170
+ in ??? at line 0
+ in /home/mantraso/public_html/includes/theme.inc at line 170
+ in /home/mantraso/public_html/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:96):
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 1845 (galleryfilesystementityhelper_simple::fetchchildidbypathcomponent)
+ in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (gallerycoreapi::fetchchildidbypathcomponent)
+ in modules/core/classes/GalleryCoreApi.class at line 1796 (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 43 (modrewriteurlgenerator::_onload)
+ in init.inc at line 147 (modrewriteurlgenerator::initnavigation)
+ in modules/core/classes/GalleryEmbed.class at line 129
+ in /home/mantraso/public_html/sites/all/modules/gallery/gallery_base.inc at line 86 (galleryembed::init)
+ in /home/mantraso/public_html/sites/all/modules/gallery/gallery_block.inc at line 38
+ in /home/mantraso/public_html/sites/all/modules/gallery/gallery.module at line 308
+ in ??? at line 0
+ in /home/mantraso/public_html/includes/module.inc at line 386
+ in /home/mantraso/public_html/modules/block/block.module at line 689
+ in /home/mantraso/public_html/includes/theme.inc at line 1015
+ in ??? at line 0
+ in /home/mantraso/public_html/includes/theme.inc at line 170
+ in /home/mantraso/public_html/themes/engines/phptemplate/phptemplate.engine at line 170
+ in ??? at line 0
+ in /home/mantraso/public_html/includes/theme.inc at line 170
+ in /home/mantraso/public_html/index.php at line 33
An error similar to this then appears on all Gallery settings pages EXCEPT the "admin/settings/gallery" page. I cannot configure or fix anything due to these errors.
Comments
Comment #1
profix898 commentedDo you have the gallery_menu.module enabled? If so, please try to install without it first! Does the error still occur? I think this issue is caused by a combination of gallery_menu module and urlrewrite plugin ...
Comment #2
denney commentedOk, I installed WITHOUT the gallery_menu.module and I still get the following error when clicking on the sync users link:
I then go back to the settings page and it displays an error with the "Overall Status" so I click on install again and I only get one error this time:
Comment #3
denney commentedIt appears to have been something to do with my embedded rewrite rules.
I had my rewrite rules start with "gallery/" to make it look neater (eg. Comments at "/gallery/comments/view") and that appears to kill v2 of this module. v1 worked fine with those rewrite rules.
Comment #4
denney commentedOK, URL's with "/gallery" in them work... The offending rewrite rule I had was the "Show Item" rewrite rule....
I had it set to "/gallery/%path%".. That causes ANYTHING with "gallery/??" in the URL to be parsed as a gallery item and NOT as a Drupal menu item (eg. "/admin/settings/gallery/install").
I hope you understood that... I have changed my rewrite rule to "gallery/v/%path%" and all works well.
I guess this is by design so there isn't an issue here. Might be good to make people aware of the fact you can't use "gallery/%path%" as a rewrite rule.