Serious error instead of 404 error
kylehase - January 3, 2008 - 16:29
| Project: | Gallery |
| Version: | 6.x-1.0 |
| Component: | Code / API |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Just upgraded to 5.x-2.0 2007-Nov-23.
Now loading any invalid ^/gallery/* url displays a very disturbing "serious error" warning when it should simply produce a 404. Valid URLs work just fine. Anyone else noticing this?
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 key
+ 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 /var/www/html/modules/contrib/gallery/gallery_base.inc at line 101 (GalleryEmbed::init)
+ in /var/www/html/modules/contrib/gallery/gallery_base.inc at line 332
+ in /var/www/html/modules/contrib/gallery/gallery_menu/gallery_menu.module at line 37
+ in ??? at line 0
+ in /var/www/html/includes/module.inc at line 406
+ in /var/www/html/includes/menu.inc at line 1221
+ in /var/www/html/includes/menu.inc at line 220
+ in /var/www/html/includes/menu.inc at line 391
+ in /var/www/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:159):
o Error (ERROR_MISSING_OBJECT) : Parent 7 path key
+ 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 /var/www/html/modules/contrib/gallery/gallery_base.inc at line 141 (GalleryEmbed::handleRequest)
+ in /var/www/html/modules/contrib/gallery/gallery.module at line 383
+ in ??? at line 0
+ in /var/www/html/includes/menu.inc at line 418
+ in /var/www/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 key
+ 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 /var/www/html/modules/contrib/gallery/gallery_base.inc at line 101 (GalleryEmbed::init)
+ in /var/www/html/modules/contrib/gallery/gallery_block.inc at line 34
+ in /var/www/html/modules/contrib/gallery/gallery.module at line 367
+ in ??? at line 0
+ in /var/www/html/includes/module.inc at line 386
+ in /var/www/html/modules/block/block.module at line 693
+ in /var/www/html/includes/theme.inc at line 1018
+ in ??? at line 0
+ in /var/www/html/includes/theme.inc at line 170
+ in /var/www/html/themes/engines/phptemplate/phptemplate.engine at line 170
+ in ??? at line 0
+ in /var/www/html/includes/theme.inc at line 170
+ in /var/www/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:111):
o Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
Error (ERROR_MISSING_OBJECT) : Parent 7 path key
+ 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 /var/www/html/modules/contrib/gallery/gallery_base.inc at line 101 (GalleryEmbed::init)
+ in /var/www/html/modules/contrib/gallery/gallery_block.inc at line 34
+ in /var/www/html/modules/contrib/gallery/gallery.module at line 367
+ in ??? at line 0
+ in /var/www/html/includes/module.inc at line 386
+ in /var/www/html/modules/block/block.module at line 693
+ in /var/www/html/includes/theme.inc at line 1018
+ in ??? at line 0
+ in /var/www/html/includes/theme.inc at line 170
+ in /var/www/html/themes/engines/phptemplate/phptemplate.engine at line 170
+ in ??? at line 0
+ in /var/www/html/includes/theme.inc at line 170
+ in /var/www/html/index.php at line 33
#1
See http://codex.gallery2.org/Integration:Drupal:Troubleshooting#Error_.28ER...
Its an issue of the G2 rewrite rules conflicting with Drupal paths in embedded mode. Also note that the error messages should only be visible to admin users.
#2
I had previously fixed the same error using the .htaccess modifications in the link you provided when it occurred in other parts of my site such as http://example.com/admin/gallery where gallery is not the first item but does not resolve the problem for invalid URLs.
You are right though about it only displaying for admins so it's not such a big deal.
#3
This indeed looks like a bug in the module. I'm able to reproduce this on some of my sites. I will take a closer look at it as soon as time permits. Stay tuned.
With the 5.x-1.x series (and earlier) this was a known issue, but it should be fixed in the new module. But I guess I missed something when I wrote this stuff a few months ago :(
Update: Just a reminder for me to look at this ;)
#4
bump ;)
#5
This also occurs in 6.x-1.0. Bump again!
#6
I am still seeing this instead of 404 when a photo is deleted. I am using the following:
drupal 6.14
gallery2 core 1.3
gallery module 6x-1.0
I understand just the admin sees the error but it is ugly looking. Is anyone looking at this or found a work around?
#7
This doesn't just happen for admins, in my experience. I tried to run the gallery plugin on three different websites, and I had the errors appear on all three. It even happened with guests. It must have something to do with permissions.
In the gallery 2 forums, they recommended getting URL Rewriting working. I didn't try it, though. This module runs with too many unacceptable errors, for now.
#8
On my site it just says "Embedded Gallery2 is not available or requested Gallery URL does not exist." Take a look http://photo.lvthunder.com/v/models/nbjskv